Operating System - HP-UX
1833873 Members
4689 Online
110063 Solutions
New Discussion

Intermittent permission denied when performing an ftp

 
SOLVED
Go to solution
Shawn Jones_4
Occasional Advisor

Intermittent permission denied when performing an ftp

I have a mainframe job that is performing an ftp to an 11.0 server. The job is attempting to overwrite 4 files that already exist. When the job runs, the first 3 files complete successfully, but the forth file recieves a permission denied message and fails. When the job is rerun, it will successfully ftp the forth file. All 4 files are being ftp'd to the exact same path. Access for the ftp id is being given through group permissions. The group permissions on the dir are rwx and the files are rw. These are not new files, they are being overwritten each time the job is run. Has anyone had any experience with intermittent permission denied errors with ftp, and if so do you have any suggestions on resolving them, besides just rerunning the job?
2 REPLIES 2
Steven E. Protter
Exalted Contributor
Solution

Re: Intermittent permission denied when performing an ftp

take a look at the permssions on the actual file you are trying to overwrite:

ll filename

You may see that the group or other permissions when you get the error are not rw.

depending on the ftp/user configuration it may be using the other permissions, not the group permissions.

Also, it could be that the system has a process open on that forth file. The lsof command can be used to determine that.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Shawn Jones_4
Occasional Advisor

Re: Intermittent permission denied when performing an ftp

Steven thanks....the process issue is the problem.