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

CHOWN Using FTP

Status
Not open for further replies.

jmanj

Programmer
May 20, 2003
298
US
In other platform I can send/receive files and also can send
command native to that platform using ftp. In Sun Solaris how
can you do the same like sending a file then send a unix command CHOWN to change ownership of the file. Here's some sample ftp command I used to do...

user xxxx
password
ASCII
Put c:\data\text.txt /myrool/text.txt
quote etc
quit


where etc is the native command

Thanks for any help..

jmanj
 
since ftp is part of an ARPA protocol that is pretty much standard across platforms, you should be able to do it the same way as you do in DOS. Microsoft, however, may have implemented something that isn't part of the standard and therefore unavailable on other systems.

ftping to a Solaris 7 box and doing a remotehelp lists these commands as being available (with the exception of the ones with an asterisk):

USER,PORT,RETR,MSND*,ALLO,DELE,SITE*,MKD,XPWD,PASS,PASV, STOR, MSOM*,REST*,CWD,SYST, XMKD, CDUP,ACCT*, TYPE, APPE, MSAM*, RNFR, XCWD, STAT*,RMD, XCUP, REIN*, STRU, MLFL*, MRSQ*, RNTO, LIST, HELP,XRMD, STOU, QUIT, MODE, MAIL*,MRCP*, ABOR, NLST, NOOP, PWD
 
most Unix implementations of FTP SERVER do NOT allow for commands to be run at all.

Some will allow only a very restricted number of commands to be run with the QUOTE command.

and for example AS400 FTP server will allow almost all type of commands to be executed.


Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
The list of commands (with the exception of the ones with an asterisk) in my post are supported by ftp's quote on a solaris 7 system.
 
Thanks Guys,

I guess I don't have any option here to change ownership of
a file. I found out that ther are a lot of ftp commands not
implemented in our server.

Thanks.

jmanj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top