在CentOS中,我如何将user1指定为目录/var/www/html,将user2指定为目录/ home / user3 2,并将默认的user3和所有其他内容指定为home目录?
我的配置文件有以下/etc/vsftpd/vsftpd.conf:
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
chroot_local_user=YES
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list发布于 2011-04-08 14:03:48
您应该使用虚拟用户设置;看看这里,这里有我要做的例子。查看local_root=/var/ftpserver/或pam.d,并将其更改为mysql。在那里,您应该能够对目录进行定制,等等。
发布于 2011-04-24 22:51:53
您可以访问用户标准位置中的WEB文件夹-通过使用
mount --bind
然后,它使用vsftpd着色帐户。别忘了在fstab中添加条目
https://serverfault.com/questions/257242
复制相似问题