Setting the root password
John
dingo at coco2.arach.net.au
Fri Sep 17 15:02:24 UTC 2004
Tristan Rhodes wrote:
>>> there's one we missed, please let us know which.
>>
>>
>> I suppose he's talking about bash autocompletion feature, if you want to
>> execute root commands with sudo and you don't have /sbin and /usr/sbin
>> in your normal user's path, you don't cannot use the "TAB" key and you
>> need to type the whole command.
>
>
> I got the path set correctly by typing
>
> sudo su -
>
> Then Bash auto-completion works with the right path. Can't live
> without auto-completion!
>
> Tristan Rhodes
>
That's one way, but it should "just work."
I've seen advice to install stuff:
sudo apt-get install stuff
apt-get expects to find stuff in a directory listed in ${PATH} and some
of the stuff it expects to find is in one of the sbin directories.
Putting sbin in everyone's path as advocated by mdz is one way, but I
have a slightly queasy feeling about that. Patching sudo to do it right
strikes me as sound.
More information about the ubuntu-users
mailing list