Linux
[LINUX] 500 OOPS: cannot change directory 에러 발생시
말괄량이현이
2013. 5. 7. 11:13
[증상]
[root@test sysconfig]# ftp localhost
Connected to CMMOBIGEN.
220 (vsFTPd 2.2.2)
530 Please login with USER and PASS.
Name (localhost:root): hpk
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/home/hpk
Login failed.
[해결책]
setsebool 을 이용하여 FTP접속시 디렉토리 접근을 할수 있게 변경
#setsebool -P ftp_home_dir 1
#service vsftpd restart
#setsebool -P ftpd_disable_trans 1