remove or disable password on linux

In the Linux system there are several applications that require the use of a password, especially if you want to change the configuration on the Linux system or to update/upgrade the system.

To disable the password request when accessing from the terminal, simply add the user and application whose password we want to bypass.

add the following line to the sudoers file. (/etc/sudoers)
myusername ALL = NOPASSWD: /usr/sbin/iftop, /usr/bin/gedit, /usr/bin/nano, /usr/bin/service, /usr/bin/nmap

put it on the bottom line of the sudoers file, then save.


in the example above, you are no longer asked for a password when giving a command, for example nmap = sudo nmap -N 192.168.1.0/24

 



0 Response to "remove or disable password on linux"

Post a Comment