parse error on command

Ladner, Eric (Eric.Ladner) Eric.Ladner at
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

/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)


-----Original Message-----
From: sudo-users-bounces at [mailto:sudo-users-bounces at] On
Behalf Of Nipple Pincher
Sent: Thursday, November 20, 2003 11:30 AM
To: sudo-users at
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

Do you Yahoo!?
Free Pop-Up Blocker - Get it now
sudo-users mailing list <sudo-users at>
For list information, options, or to unsubscribe, visit:

More information about the sudo-users mailing list