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

Thomas M Steenholdt tmus at tmus.dk
Thu Apr 24 01:23:28 UTC 2008


Konrad Meyer wrote:
> 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,
> 

bash can be persuaded to provide tab-completion for rather exotic 
situations... Including stuff like "service ht[TAB]"...

/Thomas




More information about the fedora-devel-list mailing list