[sudo-users] Clarification of maxseq and logging

Todd C. Miller Todd.Miller at sudo.ws
Fri Feb 23 07:09:53 MST 2018


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


More information about the sudo-users mailing list