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

Konrad Meyer konrad at tylerc.org
Thu Apr 24 01:15:35 UTC 2008


Quoth Thomas M Steenholdt:
> Jesse Keating wrote:
> > On Wed, 2008-04-23 at 20:33 +0300, Axel Thimm wrote:
> >> In a nutshell: Keep things as are, but if there really is a command
> >> that is used by "normal" users move that out of sbin or make a symlink
> >> (commands that used to live in sbin and moved out are for example
> >> ping and traceroute)
> > 
> > If we were to keep things the way they are, we need to munge sudo so
> > that it takes into account the sbin paths.  Continually doing "sbin foo"
> > and getting foo not found is infuriating to no end, combined with the
> > guessing game of "is it /sbin or /usr/sbin I must call out on this
> > system this week".
> > 
> > 
> +1
> 
> This is exactly what we need for this problem.
> 
> /Thomas

I don't know if other people use this at all or not, but something I find 
incredibly useful about having sbin and friends in PATH is that I can 
tab-complete many of the sbin commands I use on a regular basis. This 
convenience means one of the first things I add to my .bashrc on a new 
account anywhere is 'export PATH="$PATH:/sbin:/usr/sbin"'.

Having sudo look in /sbin and /usr/sbin does not address tab-completion in 
bash.

Regards,
-- 
Conrad Meyer <konrad at tylerc.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20080423/09488406/attachment.sig>


More information about the fedora-devel-list mailing list