Why doesn't sudo read /root/profile?

Marius Gedminas marius at pov.lt
Thu Dec 17 16:02:11 UTC 2009


On Thu, Dec 17, 2009 at 08:56:44AM -0700, Rick Morneau wrote:
> Whenever I "sudo" or "sudo su root", my PATH variable is
> some kind of minimal default instead of what's specified in
> /root/.profile.  Is there some way to provide a real root
> environment when using "sudo"?

Perhaps you want to use 'sudo -i' instead of 'sudo -s'.

Marius Gedminas
-- 
I'll maintain that XML should never be used for something that is written by
humans, just as you shouldn't try to use it as a programming language, although
people have been so in love with XML that they've tried to do both.
        -- Bruce Eckel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20091217/69ffad06/attachment.sig>


More information about the ubuntu-users mailing list