○ 환경
- 프로그램 : Vmware, GNS3, 알FTP
- host1 : 10.10.10.10
- host2 : 20.20.20.10
○ 실습
- host2에 FTP 서버 구축
- host1에서 FTP 서버 접속 시 root 계정 접속 가능, 익명 접속 불가,
상위 폴더 이동 불가
○ 설치
yum install vsftpd
○ 설정
- host2에서 /etc/vsftpd/vsftpd.conf파일에서 설정
anonymous_enable=YES -> anonymous_enable=NO로 변경(익명 연결을 거부)
- 아래 주석처리된 것을 풀면 상위 폴더로의 이동이 막힌다.
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
- /etc/vsfptd에서
ftpusers, user_list 파일에서 root를 주석처리하면 root로 접속이 가능해진다