Wednesday, October 10, 2012

FTP site command



UMASK for ftp can be set globally by adding the proper value for umask in the file /etc/ftpd/ftpaccess


But how can umask be used from a client system to be executed on the remote server instead of the global setting?

To send some commands from client to server where it can be executed.

For eg) To set UMASK for a user on the remote server, use 


ftp> site UMASK



SITE command can be used for a number of other operations as well as seen in the ftp help menu



ftp> site help

214-The following SITE commands are recognized (* =>'s unimplemented).
   UMASK           GROUP           INDEX           GROUPS
   IDLE            GPASS           EXEC            CHECKMETHOD
   CHMOD           NEWER           ALIAS           CHECKSUM
   HELP            MINFO           CDPATH
214 Direct comments to ftp-bugs@solaris1.
ftp>


No comments:

Post a Comment