Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting permissions using rsh

Status
Not open for further replies.

Jimbo2112

IS-IT--Management
Mar 18, 2002
109
GB
Hi All,

I am trying to run a find routine on the server from within script being run on a client. I use:

rsh "server" find "files" exec "copy to temp area"

But I get a permission denied error when it runs the find command. Any ideas why I am getting this? Is there a switch or command that I can run to override file permissions? I have umask 0 set in the script.

Cheers

Jimbo
 
Hi,

I would check the permissions of the directories and files on the server where you are trying to run the find command. The user you are running as must have permsission to read these files and read access on the directory(s) where these files exist before you can copy them. Also check that the user has write access to the area where where the files are being copied to.
You can't overide file permissions unless you own the files that you are trying to change or you are running as root.
If you don't understand how to check UNIX file permissions post again to let us know.

MB.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top