FTP 500 OOPS: cannot change directory
-------- SELINUX 의 정책이 문제이군요
# setsebool -P ftp_home_dir 1
페도라 코어 4 까실때 SELinux 로 설정했다면 디폴트로 사용자의 home 디렉토리에 쓰기를 막아놓는다.
SELinux 설정에서 FTP 부분을 변경하자.
# service vsftpd restart
home 디렉토리의 읽고쓰기를 1(True)로 변경하시고 vsftpd 를 재시작.
# setsebool -P ftpd_disable_trans 1
FTP 에 관하여 SELinux 정책을 아예 적용하지 않는 옵션을 설정
"500 oops: cannot change directory"
Trying to ftp in to a Fedora Core 5 box using a local username. Password is accepted, but the connection is then closed with this error message.
This is because of SELinux's policies. To fix it, issue (as root):
setsebool -P ftp_home_dir=1
The -P flag ensures the value is saved after reboot.
------------------------------------------------------------------------------
ftp 정상적인 세팅 상태에서 로그인 후
500 OOPS: cannot change directory
와 같은 메세지가 출력되며 접속이 끊어질 경우 다음과 같이 하면 됩니다.
/etc/selinux/config 에서
SELINUX=permissive
와 같이 바꾸면 됩니다. SELINUX의 Deny를 permissive로..
즉 메세지만 로그에 남기고 접근을 허용하는 것이지요.
enforcing이 기본인데 이것은 접근을 차단하는 것입니다.
'승진이와 정보 > 리눅스' 카테고리의 다른 글
| mplayer 설치하기! 사이트 링크 (0) | 2008/01/10 |
|---|---|
| Xlib: connection to ":0.0" refused by server 에러.. (0) | 2007/11/13 |
| sed명령어와 정규표현식을 써서 원하는 문자나 문자열 바꾸기~~!! (0) | 2007/11/12 |
| 슈퍼유저 계정 만들기 (0) | 2007/11/10 |
| vmware 설치 후에 windows와 linux에 핑이 오가지 않는 문제 해결 (0) | 2007/11/06 |
| FTP 500 OOPS: cannot change directory (0) | 2007/10/24 |
이올린에 북마크하기
이올린에 추천하기


