Re: vsftpd虚拟用户的个人配置如何生效?
"Sonnie Hook" <sonnie.hook@gmail.com> writes:
> 我在vsftpd.conf中设置了user_config_dir=/etc/vsftpd/peruser
> 并在 /etc/vsftpd/peruser/ 为虚拟用户创建了同名文件
> 并写了 local_root, write_enable 等参数,
> 但发现均无效,请问是何原因?
具體步驟詳見:/usr/share/doc/vsftpd/EXAMPLE/VIRTUAL_USERS
或可參見我作的筆記:
1. virtual ftp user?
1.1 create logins.txt with:
,----
| user1
| password
| user2
| password
`----
1.2 create db file
# db3_load -T -t hash -f logins.txt /etc/vsftpd/vsftpd_login.db
# chmod 600 /etc/vsftpd/vsftpd_login.db
1.3 create /etc/pam.d/ftp,
,----
| auth required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login
| account required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login
`----
1.4 set /etc/vsftpd.conf,
,----
| pam_service_name=ftp # /etc/pam.d/ftp
|
| guest_enable=YES
| guest_username=virtual ## 將要映射至的本地用戶名
`----
--
William
Work without a vision is slavery, Vision without work is a pipe dream,
But vision with work is the hope of the world.
Reply to: