-------- 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이 기본인데 이것은 접근을 차단하는 것입니다.


출처 : http://breathair.tistory.com/8

2008/02/12 12:16 2008/02/12 12:16
Posted by Junios

트랙백 보낼 주소 : http://junios.net/tc/trackback/209

<< PREV : [1] : ... [68] : [69] : [70] : [71] : [72] : [73] : [74] : [75] : [76] : ... [184] : NEXT >>

BLOG main image
Junios World by Junios

카테고리

전체 (184)
주저리 (60)
Tips (8)
적어놓기 (7)
Hacking (1)
Programming (104)
(1)

최근에 받은 트랙백

글 보관함

달력

«   2012/02   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      
Total : 105348
Today : 195 Yesterday : 188