Permission error, need to send file without any path info

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
jimtheDA
504 Command not implemented
Posts: 6
Joined: 2011-08-23 20:51
First name: James
Last name: III

Permission error, need to send file without any path info

#1 Post by jimtheDA » 2011-08-23 21:04

Hi there, I need to put a file to a server without using the STOR command [disregard STOR command, actual problem is sending any path info, even a single slash before the filename]. Is this possible with Filezilla? Testing with same server via DOS, works fine with "put" command. I'm not allowed to send any part of the pathname either...
Last edited by jimtheDA on 2011-08-24 21:21, edited 1 time in total.

User avatar
boco
Contributor
Posts: 24656
Joined: 2006-05-01 03:28
Location: Germany

Re: Permission error, need to send file without using STOR

#2 Post by boco » 2011-08-24 00:12

The commandline FTP uses STOR also. FTP doesn't know a PUT command. Type DEBUG in the commandline FTP to enable display of actual commands.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

jimtheDA
504 Command not implemented
Posts: 6
Joined: 2011-08-23 20:51
First name: James
Last name: III

Re: Permission error, need to send file without using STOR

#3 Post by jimtheDA » 2011-08-24 16:54

Command line ftp definitely knows a PUT command because I just used it successfully, check out the screen shot.

https://picasaweb.google.com/lh/photo/G ... directlink

I need to upload to the server of a major US healthcare provider. There are hundreds of clients uploading files to this architecture without using STOR. I spoke with the lead programmer who told me to use a PUT in ftp commandline as a backup, which worked fine (it sent in ascii instead of binary, but it still decrypted ok.).

Again, anyway to use PUT or SEND instead of STOR with filezilla?

User avatar
boco
Contributor
Posts: 24656
Joined: 2006-05-01 03:28
Location: Germany

Re: Permission error, need to send file without using STOR

#4 Post by boco » 2011-08-24 19:51

check out the screen shot.
''Sorry, that page was not found.''
Again, anyway to use PUT or SEND instead of STOR with filezilla?
FileZilla is an FTP and SFTP client. There exist no PUT and SEND commands for FTP.

By ftp commandline, you surely mean the Windows ftp.exe? Every PUT command you enter there is internally translated into a STOR before it's sent to the server. Make a test: Before typing your actual PUT, type DEBUG and press Return. Then you'll see the actual commands sent to the FTP server.

Example from my local one:
ftp> lcd c:\
Local directory now C:\.
ftp> debug
Debugging On .
ftp> binary
---> TYPE I
200 Type set to I.
ftp> put ntldr
---> PORT 10,0,0,3,252,138
200 PORT Command successful.
---> STOR ntldr
150 File status okay; about to open data connection with 10.0.0.3 for receiving data.
226 Closing data connection with 10.0.0.3, 0 bytes received.
ftp: 250048 bytes sent in 0,08Seconds 3205,74Kbytes/sec.
ftp>
You see how the put command issued by me is translated into a STOR command the server understands? Uploading to an FTP server is, to my knowledge, only possible through the STOR and APPE commands.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

jimtheDA
504 Command not implemented
Posts: 6
Joined: 2011-08-23 20:51
First name: James
Last name: III

Re: Permission error, need to send file without using STOR

#5 Post by jimtheDA » 2011-08-24 20:00

https://lh3.googleusercontent.com/-SKH3 ... ttempt.JPG

Hmm, I'll need to try it with the debug on...

So, is the translation done on the client side or the server side. If on the client side, and STOR is actually sent to the server, then the Lead Programmer I talked to doesn't know what she is talking about. If, on the other hand, the PUT is being sent by the client and translated on the server side, then the description of permissions that she gave me is probably accurate and I still need a client that sends PUT instead of STOR.
Last edited by jimtheDA on 2011-08-24 20:06, edited 1 time in total.

User avatar
boco
Contributor
Posts: 24656
Joined: 2006-05-01 03:28
Location: Germany

Re: Permission error, need to send file without using STOR

#6 Post by boco » 2011-08-24 20:05

Yes, your PUT command is translated into a STOR before it's sent to the server. However it won't show you unless you switch debugging on (see my log).
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

jimtheDA
504 Command not implemented
Posts: 6
Joined: 2011-08-23 20:51
First name: James
Last name: III

Re: Permission error, need to send file without using STOR

#7 Post by jimtheDA » 2011-08-24 20:42

Hmm, I wonder what the permission issue is:

Here is the failed attempt from filezilla:

13:32:32 Status: Connecting to 162.119.233.124:21...
13:32:32 Status: Connection established, waiting for welcome message...
13:32:32 Trace: CFtpControlSocket::OnReceive()
13:32:32 Response: 220-Sun Microsystems Inc. SunOS 5.10 Generic January 2005
13:32:32 Trace: CFtpControlSocket::OnReceive()
13:32:32 Response: 220-
13:32:32 Response: 220-===================================================================
13:32:32 Response: 220-This is a private computer system. Access to and use requires
13:32:32 Response: 220-explicit current authorization and is limited to business use.
13:32:32 Response: 220-All users express consent to monitoring by system personnel to
13:32:32 Response: 220-detect improper use of or access to the system, system personnel
13:32:32 Response: 220-may provide evidence of such conduct to law enforcement officials
13:32:32 Response: 220-and/or company management.
13:32:32 Response: 220-===================================================================
13:32:32 Response: 220-
13:32:32 Response: 220 czspap3.crdc.kp.org FTP server ready.
13:32:32 Trace: CFtpControlSocket::SendNextCommand()
13:32:32 Command: USER kf10744
13:32:32 Trace: CFtpControlSocket::OnReceive()
13:32:32 Response: 331 Password required for kf10744.
13:32:32 Trace: CFtpControlSocket::SendNextCommand()
13:32:32 Command: PASS *******
13:32:32 Trace: CFtpControlSocket::OnReceive()
13:32:32 Response: 230 User kf10744 logged in. Access restrictions apply.
13:32:32 Status: Connected
13:32:32 Trace: CFtpControlSocket::ResetOperation(0)
13:32:32 Trace: CControlSocket::ResetOperation(0)
13:32:32 Trace: CFileZillaEnginePrivate::ResetOperation(0)
13:32:32 Trace: CFtpControlSocket::FileTransfer()
13:32:32 Status: Starting upload of M:\dmcmacct\KP FTP X-Fer\TEST_L49_Deduction_Input.pgp
13:32:32 Trace: CFtpControlSocket::SendNextCommand()
13:32:32 Trace: CFtpControlSocket::ChangeDirSend()
13:32:32 Command: CWD /
13:32:32 Trace: CFtpControlSocket::OnReceive()
13:32:32 Response: 550 /: Permission denied.
13:32:32 Trace: CFtpControlSocket::SendNextCommand()
13:32:32 Trace: CFtpControlSocket::MkdirSend
13:32:32 Trace: state = 4
13:32:32 Command: MKD /
13:32:32 Trace: CFtpControlSocket::OnReceive()
13:32:32 Response: 550 /: Permission denied.
13:32:32 Trace: CFtpControlSocket::MkdirParseResonse
13:32:32 Trace: state = 4
13:32:32 Trace: CFtpControlSocket::ResetOperation(2)
13:32:32 Trace: CControlSocket::ResetOperation(2)
13:32:32 Trace: CFtpControlSocket::ParseSubcommandResult(2)
13:32:32 Trace: CFtpControlSocket::ChangeDirSubcommandResult()
13:32:32 Trace: CFtpControlSocket::SendNextCommand()
13:32:32 Trace: CFtpControlSocket::ChangeDirSend()
13:32:32 Command: CWD /
13:32:32 Trace: CFtpControlSocket::OnReceive()
13:32:32 Response: 550 /: Permission denied.
13:32:32 Trace: CFtpControlSocket::ResetOperation(2)
13:32:32 Trace: CControlSocket::ResetOperation(2)
13:32:32 Trace: CFtpControlSocket::ParseSubcommandResult(2)
13:32:32 Trace: FileTransferSubcommandResult()
13:32:32 Trace: CFtpControlSocket::SendNextCommand()
13:32:32 Trace: FileTransferSend()
13:32:32 Command: SIZE /TEST_L49_Deduction_Input.pgp
13:32:32 Trace: CFtpControlSocket::OnReceive()
13:32:32 Response: 550 /TEST_L49_Deduction_Input.pgp: Permission denied.
13:32:32 Trace: FileTransferParseResponse()
13:32:32 Trace: CFtpControlSocket::SendNextCommand()
13:32:32 Trace: FileTransferSend()
13:32:32 Command: MDTM /TEST_L49_Deduction_Input.pgp
13:32:32 Trace: CFtpControlSocket::OnReceive()
13:32:32 Response: 550 /TEST_L49_Deduction_Input.pgp: Permission denied.
13:32:32 Trace: FileTransferParseResponse()
13:32:32 Trace: CFtpControlSocket::SendNextCommand()
13:32:32 Trace: FileTransferSend()
13:32:32 Trace: CFtpControlSocket::SendNextCommand()
13:32:32 Trace: CFtpControlSocket::TransferSend()
13:32:32 Trace: state = 1
13:32:32 Command: TYPE I
13:32:32 Trace: CFtpControlSocket::OnReceive()
13:32:32 Response: 200 Type set to I.
13:32:32 Trace: CFtpControlSocket::TransferParseResponse()
13:32:32 Trace: code = 2
13:32:32 Trace: state = 1
13:32:32 Trace: CFtpControlSocket::SendNextCommand()
13:32:32 Trace: CFtpControlSocket::TransferSend()
13:32:32 Trace: state = 2
13:32:32 Command: PASV
13:32:32 Trace: CFtpControlSocket::OnReceive()
13:32:32 Response: 227 Entering Passive Mode (162,119,233,124,125,35)
13:32:32 Trace: CFtpControlSocket::TransferParseResponse()
13:32:32 Trace: code = 2
13:32:32 Trace: state = 2
13:32:32 Trace: CFtpControlSocket::SendNextCommand()
13:32:32 Trace: CFtpControlSocket::TransferSend()
13:32:32 Trace: state = 4
13:32:32 Command: STOR /TEST_L49_Deduction_Input.pgp
13:32:32 Trace: CTransferSocket::OnConnect
13:32:32 Trace: CTransferSocket::TransferEnd(1)
13:32:33 Trace: CFtpControlSocket::TransferEnd()
13:32:33 Trace: CFtpControlSocket::OnReceive()
13:32:33 Response: 553 /TEST_L49_Deduction_Input.pgp: Permission denied.
13:32:33 Trace: CFtpControlSocket::TransferParseResponse()
13:32:33 Trace: code = 5
13:32:33 Trace: state = 6
13:32:33 Trace: CFtpControlSocket::ResetOperation(2)
13:32:33 Trace: CControlSocket::ResetOperation(2)
13:32:33 Trace: CFtpControlSocket::ParseSubcommandResult(2)
13:32:33 Trace: FileTransferSubcommandResult()
13:32:33 Trace: CFtpControlSocket::ResetOperation(2)
13:32:33 Trace: CControlSocket::ResetOperation(6)
13:32:33 Error: Critical file transfer error
13:32:33 Trace: CFileZillaEnginePrivate::ResetOperation(6)




Here's the email I received.


"There are commands that out server will not allow causing problems. The server will not allow STOR, CWD, or MKD.
Can you make the software just put a file after login?

Thank you,
Jane Doe
Lead Technical Programmer"


Obviously she's wrong and the STOR command works fine. See below (hopefully it works).

https://lh4.googleusercontent.com/-u62A ... tempt2.JPG

I think the problem is the slash. She has also said that their server will only accept a filename without any path information. This would explain why filezilla fails where command line succeeds. There is no slash before the filename in the STOR command when using commandline ftp. Filezilla doesn't seem to allow me to perform a manual transfer without putting a slash in "remote path" option box...

I want to transfer to the current remote directory without changing directories or sending any path info at all, is this possible?

User avatar
botg
Site Admin
Posts: 32342
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Permission error, need to send file without using STOR

#8 Post by botg » 2011-08-24 21:17

"There are commands that out server will not allow causing problems. The server will not allow STOR, CWD, or MKD.
Can you make the software just put a file after login?
"putting" a file without STOR nor APPE nor STOU is just not possible.

jimtheDA
504 Command not implemented
Posts: 6
Joined: 2011-08-23 20:51
First name: James
Last name: III

Re: Permission error, need to send file without any path inf

#9 Post by jimtheDA » 2011-08-24 21:22

Yeah, I know. She's totally wrong about that.

I think the problem is sending pathname information. I think the slash before the filename is crucial difference between the successful commandline attempt and the failed filezilla attempt.

But I don't know how to get rid of the slash with filezilla.

User avatar
botg
Site Admin
Posts: 32342
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Permission error, need to send file without any path inf

#10 Post by botg » 2011-08-25 06:02

I wonder, why does the server disallow "CWD /"? I bet if you use the PWD command, it says it is in "/".

User avatar
boco
Contributor
Posts: 24656
Joined: 2006-05-01 03:28
Location: Germany

Re: Permission error, need to send file without any path inf

#11 Post by boco » 2011-08-25 07:51

I wonder, why does the server disallow "CWD /"?
Pathetic attempt to disallow directory changes. There are far better ways to do that (lock user into Home using permissions, for example). I wonder if they covered XCWD, too?
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

jimtheDA
504 Command not implemented
Posts: 6
Joined: 2011-08-23 20:51
First name: James
Last name: III

Re: Permission error, need to send file without any path inf

#12 Post by jimtheDA » 2011-08-25 16:16

Any ideas on how to get around the requirement of putting a / in the remote path box when doing a manual transfer in filezilla?

The server update that I'm helping them troubleshoot is actually being postponed because so many of we clients are filezilla users...

User avatar
botg
Site Admin
Posts: 32342
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Permission error, need to send file without any path inf

#13 Post by botg » 2011-08-25 20:12

Can you please post the output of the PWD command?

Post Reply