Tech_Info/SAP2007. 4. 12. 10:39

Symtom :
User (xxx.xxx.xxx.xxx:(none)): oracle
530 User oracle access denied...
Login failed.
ftp>

시스템에 텔넷은 되는데 ftp는 안되는 상황이다. password도 넣기 전에 아예 denied 된다.

Solution :
/var/adm/syslog/syslog.log 를 확인해보면 아래와 같이 나온다.
Apr 12 10:33:55 dbsr01 ftpd[22792]: FTP LOGIN REFUSED (bad shell) FROM xxx.xxx.xxx[xxx.xxx.xxx], oracle
Apr 12 10:35:13 dbsr01 ftpd[22792]: FTP session closed

그래서 /etc/password 파일을 확인해보면
oracle:OG9YaovxIniZ6:300:3000::/oracle:/bin/ksh 이라고 되어 있다.

syslog.log에 bad shell 이라고 나와 있는 것을 잘 보면... 뭔가 쉘 관련된 문제인거 같다.
그래서 /bin/ksh 를... /usr/bin/ksh 로 하면 잘된다. ^^

Opinion :
텔넷은 되는데 ftp는 안되는 걸로 봐서 로그인셀이 link로 걸려있으면 FTP에서는 인식을 못하는 것으로 생각된다.

Ps :
/etc/ftpd/ftpaccess, /etc/ftpd/ftpusers 도 같이 확인한다.
ftpusers에 나열된 user는 ftp 사용을 하지 못한다.

Posted by 알 수 없는 사용자