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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ftp access denied on file put

Status
Not open for further replies.

pjb

Programmer
May 1, 2001
148
US
I am getting an access denied message when trying to ftp put a file from UNIX to a windows NT machine. This is probably because a file with the same name exists in the target windows directory. However, the file is there because I previously put it there with the same UNIX ftp put that I am trying to run now. On the windows target side, the permissions on the existing file are
-rwxrw-rw- 1 root root. Also, I am unable to do an ftp delete on the file from UNIX. If I go into the windows machine and delete it, then my ftp from UNIX will work. Is there any option on the UNIX ftp that will allow me to overwrite the file when I do a put? And yes, I did search this site and did not find an answer.
 
Im just taking a SWAG at this as I do not run ftp jobs on the UNIX side. I know that when puting a file that has the same file name, windows will prompt you asking if you want to replace the file. Since you are on the UNIX side I am assuming that you don't see this prompt. This prompting is know as "Interactive mode." When I create FTP jobs on the windows side, I have to disable Interactive Mode by using the -i switch in my FTP code. Try using -i when doing your put. I usually use the when creating script files so my command line looks like FTP -i -s:scriptfile.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top