We help IT Professionals succeed at work.

FTP: 550 Access Denied

Decarn
Decarn used Ask the Experts™
on
Hi,

I have just set up FTP service on Windows XP on a stand alone computer. I  am using Windows XP command prompt to do a ftp into the local host.

My default FTP folder is C:\Inetpub\ftproot and I can 'put'  and 'delete' a file. I can also mkdir but I cannot delete the directory that I created. I also cannot put the file into the directory that I created. Any ideas?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
The folder that you want to delete, is it empty?
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
You don't have write permission on the directory you created.  And you can't create or change permissions remotely with Windows FTP.

Commented:
This previous thread discusses(and resolves) the "FTP: 550 Access Denied" error, and although the problem is not quite the same as yours the ideas may help ...the firewall issue, for example >>
"IIS 6.0 FTP error 550, Access is Denied":
http://www.experts-exchange.com/Web/Web_Servers/IIS/Q_21758365.html

Also....
550 Access denied. Why I cannot upload to FTP?
http://www.experts-exchange.com/Networking/Misc/Q_21460728.html

Author

Commented:
Hi Guys,

Figured out a few issues. I am able to use RM to remove the empty directory and I can put and delete the file if I go to the exact path name. Problem is I can't put or delete if I am not at the exact path name. Please refer to the code.

I'm doing a FTP on the same FTP computer with XP firewall off.
C:\>ftp fj80076
Connected to FJ80076.
220 Microsoft FTP Service
User (FJ80076:(none)): administrator
331 Password required for administrator.
Password:
230 User administrator logged in.
ftp> pwd
257 "/" is current directory.
ftp> mkdir folderA
257 "folderA" directory created.
ftp> put abc.txt /folderA/
200 PORT command successful.
550 /folderA: Access is denied.
ftp> cd folderA
250 CWD command successful.
ftp> pwd
257 "/folderA" is current directory.
ftp> put abc.txt
200 PORT command successful.
150 Opening ASCII mode data connection for abc.txt.
226 Transfer complete.
ftp: 11 bytes sent in 0.00Seconds 11000.00Kbytes/sec.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
abc.txt
226 Transfer complete.
ftp: 9 bytes received in 0.00Seconds 9000.00Kbytes/sec.
ftp> cd ..
250 CWD command successful.
ftp> del folderA
550 folderA: Access is denied.
ftp> cd /folderA/
250 CWD command successful.
ftp> del abc.txt
250 DELE command successful.
ftp> cd ..
250 CWD command successful.
ftp> rm folderA
250 RMD command successful.
ftp>

Open in new window

Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
Looks like perfectly normal FTP to me.  Unlike Windows Explorer, plain command line FTP will Not delete a directory that is not empty.  GUI FTP programs like CoreFTP do all that for you in the background like Windows Explorer does.  Command line FTP doesn't automate anything for you.

Author

Commented:
Hi Dave,

Please refer to commands below. You mean it's normal too?

ftp> put abc.txt /folderA/
200 PORT command successful.
550 /folderA: Access is denied.
Fixer of Problems
Most Valuable Expert 2014
Commented:
You're trying to 'put' a file to a directory, it's a mismatch.  In a 'put', the second parameter, if used, is to be the file name on the remote system.  See here for commands for plain FTP: http://www.nsftools.com/tips/MSFTP.htm .  Plain FTP is Very simple minded.  GUI FTP programs do a lot behind the scenes for us.  If you use something like CoreFTP, it has a message window where you can see the actual commands it is executing.  To 'put' a file to a directory, it changes to that directory before sending the file.

Author

Commented:
Thanks especially to Dave.

Didn't know that plain windows FTP command line can't copy a file directly to a directory. I thought if Linux can so can Windows. I thought wrong.