Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi:
This is one solution: Place the following in one of the login scripts such as /etc/profile
# keep users out
# get the user id
realuser=`/usr/bin/id|/usr/bin/sed -e 's,^[^(]*(,,' -e 's,).*$,,' -e 1q`
case $realuser in
root | nails )
;; # let these users is
*)
exit 0 # terminate the login process
;;
esac
# end caseNow, only root & nails can get into the system. Be careful! Obviously, this can be dangerous if you don't allow at least one valid user in.

![]() |
Writing to/reading from 3...
|
Status of a remote file u...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |