paul harrison
2006-07-27 16:39:16 UTC
Hi
I want to allow a user to be able to send test scripts and reports to another
directory outside of their login, and
don't want to give them full account capbilities so as to prevent them from
cd'ing outside of their directory, so I set up the user with rksh(restricted
shell), but apparently this also prevents even sudo from executing the cd
command.
I was trying to
1.. Create a sudo account permission for the user to run 2 shell scripts
as another user
2. Create shell scripts to copy the files to the appropriate directories:
#!/bin/sh
# sql copy script
sudo cd sql(subdirectory within local user)
chmod 777 *
sudo cd /test/sqlrpts /sql (directory path outside of user login)
sudo cp / local subdirectory /sql/*
any help is appreciated. Thanks.
P.
____________________________________________________________
sudo-users mailing list <sudo-***@sudo.ws>
For list information, options, or to unsubscribe, visit:
http://www.sudo.ws/mailman/listinfo/sudo-users
I want to allow a user to be able to send test scripts and reports to another
directory outside of their login, and
don't want to give them full account capbilities so as to prevent them from
cd'ing outside of their directory, so I set up the user with rksh(restricted
shell), but apparently this also prevents even sudo from executing the cd
command.
I was trying to
1.. Create a sudo account permission for the user to run 2 shell scripts
as another user
2. Create shell scripts to copy the files to the appropriate directories:
#!/bin/sh
# sql copy script
sudo cd sql(subdirectory within local user)
chmod 777 *
sudo cd /test/sqlrpts /sql (directory path outside of user login)
sudo cp / local subdirectory /sql/*
any help is appreciated. Thanks.
P.
____________________________________________________________
sudo-users mailing list <sudo-***@sudo.ws>
For list information, options, or to unsubscribe, visit:
http://www.sudo.ws/mailman/listinfo/sudo-users