오랜만에 RedHat 계열의 리눅스를 설치해볼 기회가 생겼다. ftp 서버가 원하는 데로 동작하지 않아서 찾아본 결과, SELinux때문이었다.
SELinux를 사용하는 경우, ftp daemon에서 아래와 같은 error를 출력하는 경우가 있다.
500 OOOPS: cannot change directory …
이 경우, 아래와 같이 SELinux policy를 변경하면 해결이 된다.
> su -
> getsebool -a | grep ftp
> setsebool -P ftp_home_dir on
> getsebool -a | grep ftp
No comments:
Post a Comment