Setting the root password, (bash_completion <-> sudo)
sounder at paul.sladen.org
Fri Sep 17 16:02:47 UTC 2004
On Fri, 17 Sep 2004, Tristan Rhodes wrote:
> > I suppose he's talking about bash autocompletion feature, if you want to
> > execute root commands with sudo
I have bash_completion turned on for sudo and the like; it completes on the
basis of /sbin/:/usb/sbin:/usr/local/sbin (the path that you would have
setup if you were root) and exactly like you'd expect. If bash_completion
isn't on by default it would probably be worth enabling /just/ the sudo
specific code to keep people happy and comfortable using sudo.
> sudo su -
> Then Bash auto-completion works with the right path.
Unfortunately, this loses most the advantages of using sudo... :-(
Is there no safe way to travel? Nottingham, GB
More information about the ubuntu-users