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
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
Post a Comment