差異處
這裏顯示兩個版本的差異處。
下次修改 | 前次修改 | ||
vsftp [2016/10/18 22:14] jz 建立 |
vsftp [2016/11/29 01:15] (目前版本) jz |
||
---|---|---|---|
行 1: | 行 1: | ||
- | 僅允許上傳,不能下載或刪除 | + | ====== FTP上傳作業環境 ====== |
+ | |||
+ | 僅允許上傳,不能下載或刪除。 | ||
+ | |||
+ | vim /etc/vsftpd.conf | ||
+ | 加入 user_config_dir=/etc/vsftpd/vsftpd_user_conf | ||
vim /etc/vsftpd/vsftpd_user_conf/username | vim /etc/vsftpd/vsftpd_user_conf/username | ||
- | cmds_denied=DELE,RNFR,RNTO,RMD,RETR,MKD | + | 加入 cmds_denied=DELE,RNFR,RNTO,RMD,RETR,MKD,APPE |
<code> | <code> | ||
+ | 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 | ||
</code> | </code> | ||
+ | |||
+ | 參考 | ||
+ | |||
+ | * https://yulun.me/2013/setup-vsftpd-for-upload-homework-on-ubuntu/ | ||
+ | |||
+ | ===== UTF8 ===== | ||
+ | |||
+ | 增加以下設定才會顯示utf8 feature | ||
+ | utf8_filesystem=YES |