Re: Clarification of maxseq and logging

"Todd C. Miller" <[email protected]>
Newsgroups gmane.comp.tools.sudo.user
Message-ID <[email protected]>
On Thu, 22 Feb 2018 19:00:18 +0000, Scott Birl wrote:

> maxseq has now been set to 370 (AA) in my environment.
> The man page says %{seq} expands every two numbers/characters make up the dir
> ectory structure, with the given example 0100A5 becoming 01/00/A5.
>
> Questions:
>
> By setting maxseq to 370 on server1, can I assume (with a value of 0000AA) th
> e first two directories will always be 00/00 and the third directory to range
>  from 00 to AA?  (Effectively a total of 372 directories underneath /var/log/
> sudo-io).  I should not expect a structure of /var/log/sudo-io/[00-AA]/[00-AA
> ]/[00-AA]/
>
> By setting maxseq to 370 on server2, I should expect 00/00/[00-AA] per user, 
> correct?

That is correct.  The sequence number is formatted as a 6-digit
base-36 number with leading zeroes.  So for a maxseq of 370 the
pathnames will be 00/00/00 - 00/00/AA.

 - todd
____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.