parse error on command
Ladner, Eric (Eric.Ladner)
Eric.Ladner at chevrontexaco.com
Thu Nov 20 13:57:36 EST 2003
Write a shell script that's executable only by root and let them execute
the shell script
Vi /usr/local/bin/some_script
-------------
#!/bin/ksh
/usr/bin/cd /usr/app
/usr/app/app stop
-------------
Chmod 700 /usr/local/bin/some_script
Chown root:sys /usr/local/bin/some_script
(ignore the pervasive outlook capatilization)
Eric
-----Original Message-----
From: sudo-users-bounces at sudo.ws [mailto:sudo-users-bounces at sudo.ws] On
Behalf Of Nipple Pincher
Sent: Thursday, November 20, 2003 11:30 AM
To: sudo-users at sudo.ws
Subject: parse error on command
I would like the user bob to run the following command as root.
(/usr/bin/cd /usr/app;/usr/app/app stop)
Every attemp at setting up my sudoers file for this command comes up
with a parse error. Is this even possible in sudo?
My sudoers line looks something like this
bob bobserver = (root) (/usr/bin/cd /usr/app;/usr/app/app stop)
I have tried escaping out "(", ";", and ")" to no avail.
Thanks in advance
NP
---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
____________________________________________________________
sudo-users mailing list <sudo-users at sudo.ws>
For list information, options, or to unsubscribe, visit:
http://www.sudo.ws/mailman/listinfo/sudo-users
More information about the sudo-users
mailing list