当前位置: 技术问答>linux和unix
VSFTPD 的anonymous的默认目录怎么改变, 会的帮下小弟啊!
来源: 互联网 发布时间:2015-11-29
本文导语: VSFTPD 的anonymous的默认目录怎么改变,还有怎么锁定本地用户的目录 | # You may specify an explicit list of local users to chroot() to their home # directory. If chroot_local_user is YES, then this list beco...
VSFTPD 的anonymous的默认目录怎么改变,还有怎么锁定本地用户的目录
|
# 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
# (default follows)
chroot_list_file=/etc/vsftpd/chroot_list
vi /etc/vsftpd/chroot_list
写入你要限制目录访问的用户名 如
ftp
ftp1
匿名的在conf里
anon_root=/home
anon_upload_enable=NO
anon_other_write_enable=NO
anon_mkdir_write_enable=NO
anon_world_readable_only=YES
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd/chroot_list
vi /etc/vsftpd/chroot_list
写入你要限制目录访问的用户名 如
ftp
ftp1
匿名的在conf里
anon_root=/home
anon_upload_enable=NO
anon_other_write_enable=NO
anon_mkdir_write_enable=NO
anon_world_readable_only=YES