vsftp 를 처음 설치하는데.. 알ftp 로 로그인 후에....다른 디렉토리 접근 못하게..

myhong74의 이미지

vsftp 를 설치하고..
ftp 계정을 하나 만들어서.. 알 ftp 로..로그인을 했는데요..
자신의 home 디렉토리 말고도 아무 디렉토리 막 들어가서..
파일이 다운로드 되네요.....

죄송합니다만.. 이런거는 어떻게 막아야 되는건가요???

조언좀 부탁드립니다.

serialx의 이미지

# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may restrict local users to their home directories.  See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
chroot_local_user=NO
#
# 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

/etc/vsftpd.conf

내용을 참고하세요.

chroot 를 enable 하면 됩니다.

익명 사용자의 이미지

chroot을 yes한담에
그밑에 /etc/vsftpd.chroot_list란 파일에
chroot 적용할 유저를 써넣으면 됩니다