Unlikely. /S sends commands to FTP servers, not to the underlying Linux / Windows / whatever server. Unless you know what FTP software the server is running, and that it will pass those commands on to the OS (which would be a really really bad idea if it was a public server!).I'm not sure what command Unix servers implement, but supposing it's CHMOD, couldn't you (Charles) cook up something using "IFTP /S" (which uses "QUOTE", I believe) and an alias?
alias ftpchmod `iftp /s chmod ...`
It might be ... via the SITE command. I googled a couple examples of "SITE CHMOD ...". As an anonymous user, I don't have access to prospero's SITE command.Ah. I had ass-u-med that that functionality was exposed by the FTP protocol.
v:\> iftp /v anonymous:firstname.lastname@example.org Connecting to FTP server. Connected. 220 (vsFTPd 3.0.2) USER anonymous 331 Please specify the password. 230 Login successful. PWD 257 "/" v:\> iftp /s help help 214-The following commands are recognized. ABOR ACCT ALLO APPE CDUP CWD DELE EPRT EPSV FEAT HELP LIST MDTM MKD MODE NLST NOOP OPTS PASS PASV PORT PWD QUIT REIN REST RETR RMD RNFR RNTO SITE SIZE SMNT STAT STOR STOU STRU SYST TYPE USER XCUP XCWD XMKD XPWD XRMD 214 Help OK. v:\> iftp /s site site 550 Permission denied. TCC: FTP protocol error: 550 Permission denied. "site"
ftp> quote help site 214 Syntax: SITE <sp> subcommand <sp> parameters (issues a server specific FTP command)
v:\> iftp /s help site help site 214 Syntax: SITE <sp> subcommand <sp> parameters (issues a server specific FTP command)
v:\> iftp /s site zone site zone 210 UTC-300
I hope it works. FWIW, CHMOD seems to be built-into SFTP (client side); at least it is in my PSFTP (Putty) client.Thank you, Vince. I'll play with it sometime tomorrow, but I suspect that's exactly what I wanted. (Probably doesn't even deserve a plugin; a simple alias would suffice.)
|Thread starter||Similar threads||Forum||Replies||Date|
|Done FTP / HTTP URLs in directory aliases||Suggestions||2|
|Done Set permissions for FTP files||Suggestions||0|
|P||In ftp operations time stamps should be copied||Suggestions||0|
|D||Done FTP retry on timeout||Suggestions||0|
|S||Declined FTP: related enhancements||Suggestions||2|