# 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
#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