16 Aug
2010
16 Aug
'10
8:43 p.m.
On Mon, Aug 16, 2010 at 06:45:55PM +0100, Tim Green wrote:
On 16 August 2010 17:34, Chris G <cl@isbd.net> wrote:
I tend to use 'sudo -s' when I want to do a series of things as root, it generally works fine but I have just noticed a minor issue. It doesn't set a proper root environment so that you still have the environment of the user who sudo'ed to root - in particular there is the PATH which may have all sorts of oddities on it and HOME is still set to your home directory.
sudo su -
Aha, brilliant, thanks. It's obvious when you think about it but I'd somehow got hooked on 'sudo -s'. -- Chris Green