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