2012-11-26

vsftpd設定

[root@CentOS /]# vi /etc/vsftpd/vsftpd.conf


anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=002
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
chroot_local_user=YES
chroot_list_enable=YES

#可離開家目錄的帳號列表
chroot_list_file=/etc/vsftpd/chroot_list
listen=YES

pam_service_name=vsftpd
userlist_enable=YES
userlist_deny=NO

#允許連線的帳號列表
userlist_file=/etc/vsftpd/user_list
tcp_wrappers=YES

#Custom
local_max_rate=307200
use_localtime=YES
banner_file=/etc/vsftpd/welcome.txt
max_clients=3
max_per_ip=2

#指定帳號登陸後之目錄
user_config_dir=/etc/vsftpd/userconf


[root@CentOS /]# mkdir /etc/vsftpd/userconf/

[root@CentOS /]# vi /etc/vsftpd/userconf/帳號


內容為指定目錄
例如local_root=/var/www/html

1 則留言:

  1. Borgata Hotel Casino & Spa - Mapyro
    Borgata Hotel Casino 경산 출장안마 & 천안 출장안마 Spa locations, 동해 출장안마 rates, amenities: expert Atlantic 양주 출장마사지 City research, only at Hotel and Travel Index. Realtime driving directions 오산 출장마사지 to Borgata

    回覆刪除