Re: how to change default sudo-io location; iolog_dir ; iolog_file
"Todd C. Miller" <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <[email protected]> |
The problem with using /var/log/sudo-io/$hostname/$username/$epochtime
is that you can easily run multiple commands a second. You will
probably need to use a mktemp-style suffix to avoid collisions.
The following works for me:
Defaults iolog_dir = /var/log/sudo-io/%{hostname}/%{user}
Defaults iolog_file = %s.XXXXXX
This will store the I/O logs in /var/log/sudo-io/$hostname/$username
where each one is named by the epoch time followed by a random
suffix to avoid collisions.
It should be supported by sudo 1.8.0 and above.
If you don't want the random suffix you can remove the XXXXXX but
if there is a collision, sudo will overwrite the old I/O log which
is probably not what you want.
- todd
____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users