parse error on command

mlh at zip.com.au mlh at zip.com.au
Fri Nov 21 21:24:52 EST 2003


On Thu, 20 Nov 2003 12:57:36 -0600
"Ladner, Eric (Eric.Ladner)" <Eric.Ladner at chevrontexaco.com> wrote:

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

Good advice, Eric, but do not use /usr/bin/cd.
Just do 'cd', as /usr/bin/cd doesn't work.

Matt


More information about the sudo-users mailing list