Bugzilla – Bug 339
Expiration Date for Sudo Rules
Last modified: 2017-05-13 13:48:34 MDT
> I was wondering what the possibility of introducing a "drink by" date to > a specific sudo rule is... > > For instance... > > root ALL=(ALL) ALL YYYYmmddhhmm > > And the functioning would basically check to see if the time is less > than or equal to the timestamp given in the sudo file before giving > access. It would be pretty useful in some enterprise settings I would > imagine.
As long as you also build this support for LDAP-based rules Something like this: objectClass: sudoRole cn: temp-something sudoCommand: /bin/cat sudoOption: noexec sudoUser: joe sudoHost: foo sudoExpire: YYYYMMDDHHMM
Beginning with sudo 1.7.5 the LDAP-based rules support sudoNotBefore and sudoNotAfter attributes. This is not currently available for files-based sudoers.
Is it possible to get rule expiration for files-based sudo rules similar to what is available for LDAP?
Sudo 1.8.20 supports "not before" and "not after" settings for file-based sudoers.