Re: [Hampshire] sudo

Top Page
Author: Alan Pope
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] sudo

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x57859100.hantslug.org.uk.21099': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Thu Jun 21 17:01:45 2007 BST
gpg: using DSA key 1E38DD6257A4363C
gpg: Can't check signature: No public key
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


Cheers,
Al.

>