How to Make Your Sudo Password Visible in Ubuntu

HomeUbuntuHow to Make Your Sudo Password Visible in Ubuntu

How to Make Your Sudo Password Visible in Ubuntu

Ubuntu — and other Linux distros — is anĀ assertive operating system. Only a user with administrator privileges who can make any changesĀ on the system. If you are just an ordinary user, you can’t even execute some exclusive commands and viewing files under the root (/) directory.

In Ubuntu, there is a command called “sudo”. The command enables users to access some exclusive command that technically only available for administrator (root). Users can only run the “sudo” command if they are listed as a sudoer.

Every sudoerĀ will be asked for administrator password every time they run the “sudo” command on the terminal. By default, you can’t see anything on the terminal even if you have typed some characters on it. There’s no dot or star sign to indicate you’ve typed something.

That’s not a serious problem, actually. But, you may want to show the dots sign to indicate you’ve typed your password on terminal to run the “sudo” command. If so, you can edit “sudoers” file which is located at /etc/sudoers. Type the following command to do that

$sudo pico /etc/sudoers

Edit the “sudoers” file by adding “pwfeedback” option. Example is shown below

change

Press ctrl+x to exit and apply the change. Now, please try to run the “sudo” command and see what’s happen

sudo

hand-picked weekly content in your inbox

.

related posts

1 COMMENT

  1. This is the wrong way to edit sudo, its a file that manages basically all permissions on your OS, you need to edit it carefully, therefore the preferred method would be:
    >$ sudo EDITOR=(eg. nano, pico) visudo
    ># EDITOR = (eg. nano, pico) visudo
    or if you prefer to use VIM then just sudo visudo.

    P.S: Visudo makes sure to not save twice or saved the buffer after additional edits etc…

LEAVE A REPLY

Please enter your comment!
Please enter your name here