On Sun, Feb 28, 2010 at 11:52 AM, Denis Dupeyron <[email protected]> wrote:
> On Sun, Feb 28, 2010 at 12:20 PM, William Hubbs <[email protected]> wrote:
>> I am starting this thread because I don't understand why people are
>> using sudo and su together.  They are completely separate utilities that
>> do the same thing.  AFAIK, it should be either "sudo -i" or "su -", but
>> not "sudo su -" which I have seen quite often.  "sudo su -" is redundant
>> because "su -" does the same thing as "sudo -i".
>>
>> "sudo -s", afaik, gives you a root shell but does not clear
>> out the environment first.
>>
>> Am I completely missing something?
>
> Some systems are configured with a random root password. After a while
> you get tired of doing 'sudo <command>' all the time and would like to
> become root but you can't because you don't know the root password.
> One way around that is 'sudo su -' which allows to become root using
> your user password.

Try "sudo -s" or "sudo -i" if you want sudo to clean your environment.

>
> Denis.
>
>

Reply via email to