[sudo-users] Sudo 1.7.4 env_reset with -i and -s
doug at warner.fm
Tue Sep 14 12:25:37 EDT 2010
On 09/14/2010 11:45 AM, Todd C. Miller wrote:
> In message <4C8F8EE8.1020808 at warner.fm>
> so spake Doug Warner (doug):
>> 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 >=3D 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
> That is an unintentional change that will be addressed in sudo
> 1.7.5. Below is a diff that addresses this (as well as interactions
> with set_home and always_set_home).
Thanks for the patch. It looks like now I still need to specify "Defaults
env_keep += HOME", but both "sudo -i" and "sudo -s" drop me to the expected
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 190 bytes
Desc: OpenPGP digital signature
More information about the sudo-users