VSFTP做FTP服务器时比较经常使用系统用户(与数据库结合暂时自己也没去配过^_^),做为系统用户登录时需要将其锁定到自己目录下,有两种方法
一、默认VSFTPD.CONF(RHEL4)没有明显列出其中以下选项
# lock user in home directory chroot_local_user=YES |
二、当然也可以使用 chroot_list_enable=YES与chroot_list_file=/etc/vsftpd.chroot_list结合起来使用。
其中原始配置的一部分是这样的
# 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_local_user=YES #chroot_list_enable=YES # (default follows) #chroot_list_file=/etc/vsftpd.chroot_list |
补:顺便说下监听端口的修改,一般比较少人修改VSFTPD的listen port的
listen_port=2121
阅读(4891) | 评论(0) | 转发(0) |