/sbin:/usr/sbin in mortal's PATH

Horst von Brand vonbrand at inf.utfsm.cl
Tue May 9 13:51:00 UTC 2006


Chris Tyler <chris at tylers.info> wrote:
> Here's a related issue with the PATHs (which is why I change
> the /etc/profile on my systems): a simple 'su' won't munge the superuser
> directories into the PATH, because /etc/profile isn't invoked. If the
> superuser directories are in the default PATH, a plain 'su' becomes a
> lot more useful (and yes, 'su -' works, but then you lose the current
> directory). An alternative would be to put path munging code
> in /etc/bashrc (or, somehow, the PAM config for 'su').

"su -" is safer...

Or use sudo(1)
-- 
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513




More information about the fedora-devel-list mailing list