FTP上傳作業環境

僅允許上傳,不能下載或刪除。

vim /etc/vsftpd.conf 加入 user_config_dir=/etc/vsftpd/vsftpd_user_conf

vim /etc/vsftpd/vsftpd_user_conf/username 加入 cmds_denied=DELE,RNFR,RNTO,RMD,RETR,MKD,APPE

ABOR - abort a file transfer
CWD - change working directory
DELE - delete a remote file
LIST - list remote files
MDTM - return the modification time of a file
MKD - make a remote directory
NLST - name list of remote directory
PASS - send password
PASV - enter passive mode
PORT - open a data port
PWD - print working directory
QUIT - terminate the connection
RETR - retrieve a remote file
RMD - remove a remote directory
RNFR - rename from
RNTO - rename to
SITE - site-specific commands
SIZE - return the size of a file
STOR - store a file on the remote host
TYPE - set transfer type
USER - send username

參考

增加以下設定才會顯示utf8 feature utf8_filesystem=YES