vsftp配置文件

1、vsftp.conf配置文件

vi  /etc/vsftpd/vsftpd.conf
## 以下是具体内容:
anonymous_enable=NO
local_enable=YES
local_root=/foura/ftpdata/
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=YES
listen_ipv6=NO
listen_port=21
pam_service_name=vsftpd
userlist_enable=YES
userlist_deny=NO
chroot_local_user=YES
allow_writeable_chroot=YES
chroot_list_enable=NO

2、vsftpd的pam文件

vi /etc/pam.d/vsftpd
## 以下是具体内容:
#%PAM-1.0
session    optional     pam_keyinit.so    force revoke
auth       required	pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed
auth       include	password-auth
account    include	password-auth
session    required     pam_loginuid.so
session    include	password-auth
#auth required /lib64/security/pam_userdb.so db=/etc/vsftpd/vuser
auth       required	pam_nologin.so
#account required /lib64/security/pam_userdb.so db=/etc/vsftpd/vuser
posted @ 2024-06-21 10:15  小白的日常  阅读(50)  评论(0编辑  收藏  举报