sudo without password on Linux

run sudo visudo to config.


# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# Allow i88ca to execute any command without password
i88ca ALL=(ALL) NOPASSWD:ALL

# Allow goyun to run ‘/bin/kill’ and ‘systemctl’ commands:
goyun ALL = NOPASSWD: /bin/systemctl restart httpd.service, /bin/kill

Popular posts from this blog

How to get Active Transactions and Locks from MySQL

Example of a PAC file