service command hangs when run via sudo
Greg Fenton
greg_fenton at yahoo.com
Thu Oct 31 12:57:18 EST 2002
I have configured one user account to be able to run:
service tomcat4 restart
without need for a password. That script (on RH7.3) hangs when it gets
to the command:
initlog -q -c 'su -s /bin/bash - tomcat4 -c "/usr/bin/dtomcat4
stop"'
The above service command works fine when run as root.
My sudoers config is:
Host_Alias LOCAL = localhost, my_machine, 127.0.0.1
User_Alias USER1 = my_user
Cmnd_Alias SERVICE = /sbin/service tomcat4 restart
USER1 LOCAL=(root) NOPASSWD: SERVICE
Any ideas?
Thanks in advance,
greg_fenton.
=====
Greg Fenton
greg_fenton at yahoo.com
__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/
More information about the sudo-users
mailing list