Adding /sbin and /usr/sbin to everyone's path in F10

Axel Thimm Axel.Thimm at ATrpms.net
Fri Apr 25 07:03:21 UTC 2008


On Thu, Apr 24, 2008 at 11:57:26PM -0700, Pete Zaitcev wrote:
> On Thu, 24 Apr 2008 04:43:26 +0200, Ralf Corsepius <rc040203 at freenet.de> wrote:
> > On Wed, 2008-04-23 at 21:58 -0200, Thomas M Steenholdt wrote:
> 
> > [...] I really fail why
> > extending their personal accounts' $PATH is demanding to much for this
> > audience.
> 
> It's not personal account's PATH, it's what su gives you without
> a dash. That's why I have to comment #if [ "$EUID" = "0" ]; then
> in every /etc/profile on every system forever and ever. I wish
> it was just ~/.bashrc like you're imagining.

$ PATH=$PATH:blah
$ su
Password: 
# echo $PATH | grep -l blah
(standard input)

su w/o dash inherits your PATH, so no need to tweak all the profiles
on your system.
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20080425/bd93c59e/attachment.sig>


More information about the fedora-devel-list mailing list