Ok, I got things to work if I used my FQDN:
omacneil www.yourserver.com = NOPASSWD: /usr/cs/2002/omacneil/sbin/update
Mark
MB wrote:
Looks like I forgot to test my answer. It does not seem that you can
use localhost as a hostname in
omacneil localhost=NOPASSWD: /usr/cs/2002/omac
Looks like I forgot to test my answer. It does not seem that you can
use localhost as a hostname in
omacneil localhost=NOPASSWD: /usr/cs/2002/omacneil/sbin/update
Try using ALL and things should work. I use ALL in my sudo file and
have not given it any other thought. My machines are not
> Are you running the "update" command using the full path?
>
> /usr/cs/2002/omacneil/sbin/update
I am prompted for a password if I say:
sudo /usr/cs/2002/omacneil/sbin/update
or if I say
sudo update
which update gives me
/usr/cs/2002/omacneil/sbin/update.
I am aware that the curren
Dan,
Are you running the "update" command using the full path?
/usr/cs/2002/omacneil/sbin/update
Your sudo file allows running the above command only with no password.
Also you should note that a sudo file like this allows for you to get a
root shell via "sudo bash", which may or may not be
4 matches
Mail list logo