Neminath
July 9th, 2008, 07:27 AM
I have a perl script which executes some privileged commands.
So use sudo for that but the script has become interactive by asking for sudo password each time; which i do not want.
I found one way to avoid this is editing sudoers file giving permission for the invoking user to execute it as root. I tried doing this by entering into that still things are not working.
My sudoers file currently reads :
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults
Defaults !lecture,tty_tickets,!fqdn
# User privilege specification
root ALL=(ALL) ALL
neminath ALL=(ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
%neminath ALL=(ALL) ALL
how do i make it work any changes to my file ?
So use sudo for that but the script has become interactive by asking for sudo password each time; which i do not want.
I found one way to avoid this is editing sudoers file giving permission for the invoking user to execute it as root. I tried doing this by entering into that still things are not working.
My sudoers file currently reads :
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults
Defaults !lecture,tty_tickets,!fqdn
# User privilege specification
root ALL=(ALL) ALL
neminath ALL=(ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
%neminath ALL=(ALL) ALL
how do i make it work any changes to my file ?