1. VI나 다른 편집기를 이용하여, noshell이라는 이름으로 빈파일을 생성합니다.
#vi /bin/noshell
:wq
#vi /etc/shells
/bin/bash
/sbin/nologin
/bin/ash
/bin/bsh
/bin/ksh
/usr/bin/ksh
/usr/bin/pdksh
/bin/tcsh
/bin/csh
/bin/noshell ->추가
:wq

2. /etc/passwd 파일을 오픈하여서, 쉘접속을 허용하지 않을 계정을 선택하여,
사용할 쉘을 위에서 만들어준 /bin/noshell 로 변경하여 하여 저장 합니다.

#vi /etc/passwd
test:x:500:500::/home/test:/bin/noshell
:wq

위와 같이 설정후 ftp와 ssh의 접속테스트를 해보면, FTP는 접속이 되어지나,
ssh의 접속은 접속이 안되는것을 확인 하실수 있습니다.

원문 : http://letmelove.net/blog/74

참고 : http://www.shiftkey.org/tc?page=2
크리에이티브 커먼즈 라이센스
Creative Commons License

Posted by shiftkey

2008/05/16 15:39 2008/05/16 15:39
,
Response
No Trackback , No Comment
RSS :
http://shiftkey.org/rss/response/142


블로그 이미지

Shiftkey가 살아가는 이런 저런 이야기......

- shiftkey

Notices

Archives

Authors

  1. shiftkey

Calendar

«   2012/05   »
    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 30 31    

Site Stats

Total hits:
160861
Today:
136
Yesterday:
156