1834153 Members
1995 Online
110064 Solutions
New Discussion

/etc/sudoers.local

 
Phil Boone
New Member

/etc/sudoers.local

I've setup /etc/sudoers.local to execute /apps/autosys_np3/install/auto_install
on our N-class server np3. The purpose of this is to re-install the Autosys software.

My question is - What further step(s) must be taken to activate this local config change so that the autosys auto_install script gets executed?

I wouldn't think that a reboot would be necessary, but, i've had little experience with this /etc/sudoers.local setup.


Thanks in advance for any suggestions/advice/answers

Phillip Boone
HP Unix/SMG Admin
1 REPLY 1
Paul Sperry
Honored Contributor

Re: /etc/sudoers.local

By default, sudo requires that a user authenticate him or herself before running a command. This behavior can be modified via the NOPASSWD tag. Like a Runas_Spec, the NOPASSWD tag sets a default for the commands that follow it in the Cmnd_Spec_List. Conversely, the PASSWD tag can be used to reverse things. For example:

ray rushmore =
NOPASSWD: /bin/kill, /bin/ls, /usr/bin/lprm

would allow the user ray to run /bin/kill, /bin/ls, and /usr/bin/lprm
as root on the machine rushmore as root without authenticating
himself. If we only want ray to be able to run /bin/kill without a
password the entry would be:

ray rushmore = NOPASSWD: /bin/kill, PASSWD: /bin/ls, /usr/bin/lprm