[파일][보안] ftp 열고 telnet 막기 (2)
예)
frog:*:1003:999:The Frog:/home/frog:/bin/nologin
# ls -al /bin/nologin
-rwxr-xr-x 1 root wheel 45 Jul 5 18:08 /bin/nologin
-=-=-=-=-=-=-=-=-
# more /bin/nologin
#!/bin/sh
echo “You can not log in!”
exit 0
# more /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.
/bin/sh
/bin/csh
/usr/local/bin/bash
/bin/tcsh
/bin/nologin
1 Response
… [Trackback]
[…] Read More Info here to that Topic: nblog.syszone.co.kr/archives/361 […]