Why doesn't sudo read /root/profile?
wrschram at gmail.com
Thu Dec 17 16:03:18 UTC 2009
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"?
Yes, use "sudo su -" and you are set! Note that if you want a root shell
with your own (user) environment, you can use "sudo -s". That way, you
have a fully functional environment, without unnecessary cluttering the
More information about the ubuntu-users