Re: [Hampshire] sudo

Top Page

Reply to this message
Author: Simon Reap
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] sudo
On 21/06/07 17:01, Alan Pope said the following:
> On Thu, 2007-06-21 at 16:39 +0100, Alex wrote:
>
>> On 6/21/07, Simon Reap <Simon.Reap@???> wrote:
>>         'sudo su' will give you a root shell - saves typing in sudo
>>         many times
>>         if you have lots to do as root.

>>
>> I know that, but i've always just used `sudo -s`; I wasn't aware that
>> `sudo su` gave you a shell too - doesn't sound right to me (although
>> i've just tried it and it works, obviously).
>>
>>
>
> sudo su will give you a root prompt without the environment
>
> sudo su - will give you a root prompt *with* the root user environment
>
>

And "sudo -s" will use the current shell, if $SHELL is set, which may
not be what you want (I tend do use sh for root - seems a bit safer than
csh and the like)



This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.