Why doesn't sudo read /root/profile?

Rick Morneau ram at eskimo.com
Fri Dec 18 15:50:18 UTC 2009


On Thu, Dec 17, 2009 at 06:02:11PM +0200, Marius Gedminas wrote:
> 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
>

Yes!  Thanks!  (to you and to all the others that replied)


-- 

Regards,

Rick Morneau
ram at eskimo.com






More information about the ubuntu-users mailing list