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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris Tyler <chris@xxxxxxxxxxx> 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

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux