Skip to main content

password less sudo

how to make a password less sudo script

Add the entry in the /etc/sudoers like below
<username> ALL=(ALL) NOPASSWORD: <abs path to the shell>

Ex -
[root@c712f6n06 ~]# cat /etc/sudoers | grep freq_governer.sh
smpici ALL=(ALL)        NOPASSWD: /home/smpici/sachin/freq_governer.sh

Comments

Popular posts from this blog