Have I just got the syntax of the quote command wrong, or am I looking at something configured with ftp on one end or the other? I don't have access to look at vsftpd.conf and the SA is out on vacation, but I really dont' think that's it.
C:\temp\upload>ftp myserver Connected to myserver.myorganization.org. 220 (vsFTPd 2.0.5) User (myserver.myorganization.org:(none)): estevens 331 Please specify the password. Password: 230 Login successful. ftp> pwd 257 "/home/estevens" ftp> cd upload 250 Directory successfully changed. ftp> pwd 257 "/home/estevens/upload" ftp> ls 200 PORT command successful. Consider using PASV. 150 Here comes the directory listing. test1.lis testit upltst1.txt upltst2.txt upltst3.txt upltst4.txt 226 Directory send OK. ftp: 71 bytes received in 0.00Seconds 71000.00Kbytes/sec. ftp> quote chmod 777 upl*.txt 500 Unknown command. ftp> quote chmod 777 upltst1.txt 500 Unknown command.
sabre150 wrote:Obsolutely. In fact, ssh was and still is my first choice, but if we run into resistance (don't ask ...) I was looking for something that could be done without haveing to get the SA involved to do any more configuration (gen the keys, place them in secured directories, etc). Everthing I've seen says the 'quote' command should work.
Have you considered using ssh and scp (both part of OpenSSH) rather than ftp? You can use scp to securely copy the files from your client to the server (ftp is not secure) and ssh to securely change the permissions if you need to change them.
Dude wrote:And so it does. I had been using "help quote" or "? quote", which just told me what quote does . Duh! The result of "quote help" explains the mixed results I was seeing.
The FTP quote command sends a command to the remote FTP server, not the remote operating system. What you are most likely experiencing is that the remote FTP server does not understand the chmod command.
You can see what the remote FTP server understands by typing quote help.
To solve your problem, you may have to edit /etc/vsftpd/vsftpd.conf on FTP server and setYep, I'd gone as far down that road as I could, but I don't have root access to even see how it is configure.