Question : ubuntu sudo no password
Answered by : robin-dittrich
# Run the following command
sudo visudo
# Add the following to the bottom of the file and substitute 'username'
# for your own linux username
username ALL=(ALL) NOPASSWD:ALL
Source : https://phpraxis.wordpress.com/2016/09/27/enable-sudo-without-password-in-ubuntudebian/ | Last Update : Sat, 30 Oct 21
Question : sudoer sudo no password NOPASSWORD
Answered by : leonard
#RECOMMENDED
cp /etc/sudoers /root/sudoers.bak
visudo
leonard ALL = NOPASSWD: /bin/systemctl restart httpd.service, /bin/kill
#NOT RECOMMENDED
cp /etc/sudoers /root/sudoers.bak
visudo
leonard ALL=(ALL) NOPASSWD:ALL
#TEST
sudo ls -ls /root
Source : https://www.cyberciti.biz/faq/linux-unix-running-sudo-command-without-a-password/ | Last Update : Mon, 20 Jun 22