[sudo-users] Sudo 1.7.4 env_reset with -i and -s

Doug Warner doug at warner.fm
Tue Sep 14 11:04:08 EDT 2010

With versions of sudo < 1.7.4 I could have local users that used both "sudo
-s" to preserve their home directory and "sudo -i" to get root's environment.
 With sudo >= 1.7.4 (1.7.4p3 currently) I'm having a hard time coming up with
the proper options to set to gain that functionality back.

If I set "Defaults env_keep += HOME" then "sudo -s" works, but "sudo -i"
doesn't (it doesn't get root's home directory).

Any other ideas on what I can do if I want to otherwise keep env_reset set?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: OpenPGP digital signature
URL: </pipermail/sudo-users/attachments/20100914/2a592545/attachment.bin>

More information about the sudo-users mailing list