您的位置:首页 > 运维架构

vsftpd 500 OOPS: cannot change directory:/home/***

2014-04-28 17:31 423 查看
这是新版 vsftpd加了安全认证引起的

只要在/etc/vsftpd.conf

多加一个设置就可以了

allow_writeable_chroot=YES

------------------------------------

/etc/vsftpd.conf

listen=YES

background=YES

listen_address= 你的IP

max_clients=20

anonymous_enable=NO

local_enable=YES

write_enable=NO

anon_upload_enable=NO

anon_mkdir_write_enable=NO

anon_other_write_enable=NO

one_process_model=NO

chroot_local_user=YES

allow_writeable_chroot=YES

guest_enable=YES

guest_username=vuser

pam_service_name=vsftpd.vu

user_config_dir=/www/host/conf

/www/host/conf/ 下面是用户名文件,一个用户名对应一个文件

比如admin用户

anon_world_readable_only=NO

write_enable=YES

local_root=/www/abc.com/

anon_upload_enable=YES

anon_umask=0000

file_open_mode=0767

local_umask=0744

anon_other_write_enable=YES

anon_mkdir_write_enable=YES

nopriv_user=vuser

/etc/pam.d/vsftpd.vu

64位的设置 注意看下pam_userdb.so 文件在那个目录

auth required /lib/x86_64-linux-gnu/security/pam_userdb.so db=/www/host/vsftpd

account required /lib/x86_64-linux-gnu/security/pam_userdb.so db=/www/host/vsftpd
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐