Server/기타

[Linux] CentOS 7 FTP ( ISSUE : 500 OOPS vsftpd: refusing to run with writable root inside chroot() )

sangjun-pro 2022. 4. 4. 15:51

외부에서 iptime DNS 를 이용하여 FTP를 붙으려했을때 아래와 같은 오류가 발생.

 

명령: USER root
응답: 331 Please specify the password.
명령: PASS *******
응답: 500 OOPS: vsftpd: refusing to run with writable root inside chroot()
오류: 치명적 오류: 서버에 연결하지 못함

아래 파일에서 [ allow_writeable_chroot=YES ] 를 추가 후 restart 시 해결.

[root@localhost ~]# vi /etc/vsftpd/vsftpd.conf
    101 #chroot_local_user=YES
    102 chroot_list_enable=YES
    103 allow_writeable_chroot=YES
    104 # (default follows)
    105 chroot_list_file=/etc/vsftpd/chroot_list
[root@localhost ~]# systemctl restart vsftpd