Tuesday, April 5, 2011

vsftpd: restrict user access

vsftpd Configuration File: /etc/vsftpd/vsftpd.conf
virtual_use_local_privs=YES
user_config_dir=/etc/vsftpd/vsftpd_user_conf/

例如限制使用者 kitty,僅允許其上傳檔案,不可以複蓋檔案、下載檔案。編輯其設定檔如下:
User configuration file: /etc/vsftpd/vsftpd_user_conf/kitty

dirlist_enable=YES
cmds_allowed=PWD,TYPE,LIST,CWD,CDUP,PASV,STOR,QUIT
file_open_mode=0400
chmod_enable=NO

No comments:

Post a Comment