Neil Bothwick wrote:
> On Sun, 28 Feb 2010 13:06:43 +0800, ubiquitous1980 wrote:
>
>   
>>> Some ENV variables are unset by sudo.
>>>       
>
> You can alter that behaviour in /etc/sudoers. I have
>
> Defaults:%wheel !env_reset
>
> and don't see this.
>
>   
>>> But anyway, "sudo su" makes zero sense :P
>>>       
>
>   
>> sudo su makes sense if you want to use the root account while having the
>> root account locked.
>>     
>
> The root account is hardly locked if you can log into it with sudo su
> (or sudo screen) but sudo -s or sudo -i make more sense in this
> situation.
>
>
>   
localhost ubiquitous1980 # passwd -l root
Password changed.
localhost ubiquitous1980 # exit
exit
ubiquitous1...@localhost ~ $ su
Password:
su: Authentication failure
ubiquitous1...@localhost ~ $ sudo su
Password:
Your account has expired; please contact your system administrator
su: User account has expired
(Ignored)
localhost ubiquitous1980 #

Reply via email to