In Lucid, there is a new version of sudo that allows you to do something useful (and long-awaited).
With the correct configuration, you can now have sudo show an asterisk (*) when you type a letter (just like any other password entry).
This makes it a lot easier both for new users who expect some kind of visual feedback when they type, and anyone who can’t remember whether they pressed that key or not 🙂
I realise some people will say “oh no! What a security risk”, however in my opinion, it is only a star you are seeing and if you have a strong enough password, having a person see the number of stars is not really going to matter, it is the same as when you enter your password for PolicyKit.
The steps to do it are simple, however make sure you pay attention to them!
- Open a Terminal (Applications>Accessories>Terminal) and type in:
- Type your password in (you won’t see any visual feedback, yet!) and click Enter
- Now, find the line that reads:
Defaults env_resetAnd replace it with:
- Finally press Ctrl-X, press Y and then press Enter (or if you have changed your default text editor, just save the file as usual)
- sudo should now be set up correctly, open up a new Terminal and try it out:
sudo echo "It works!"
If at the end, you receive a message saying something like
'>>> /etc/sudoers: syntax error near line 8 <<<'