PLEASE READ THIS FIRST:
Echoing asterisks gives away information:
1) Password length, and
2) Makes it easier to video-tape keypresses by syncing them with screen feedback.
We will open the /etc/sudoers file and change a setting.
IMPORTANT: Use extreme caution when editing /etc/sudoers file. Never edit the sudoers file with a normal text editor (leafpad,gedit,mousepad..).
Always use the visudo command as described here. If the sudoers file has improper syntax, you will be left with a system where it’s impossible to obtain elevated or root privileges. The visudo command opens a text editor like you would with normal text files, but the command also validates the syntax of the file upon saving it.This prevents configuration errors in the sudoers file from blocking sudo operations, which could be your only method of obtaining root privileges.
Press Ctrl + Alt + T to open a Terminal window and type in
Code:
sudo visudo
Use the arrow keys on your keyboard to move the cursor to the end of the following line:
Code:
Defaults env_reset
Code:
Defaults env_reset,pwfeedback
Another way to do it (choose one of them):
You can also press Enter after env_reset to make a new line and type the following on the new line:
Code:
Defaults pwfeedback
NOTE: The space between Defaults and pwfeedback should be a tab.
When you type in Defaults press TAB key on your keyboard to add space and then type in pwfeedback
Once you're done editing press Ctrl + O to write out the changes.
You will be asked for the File Name to Write at the bottom. Press Enter to accept the default.
When it's saved Press Ctrl + X to close the nano editor.
Now type in
Code:
sudo -k
Finally type in
Code:
sudo su