You can create a simple script like this.
Code:
#! /bin/bash -
echo "*********************************************************************"
echo "* *"
echo "* Logins denied on this host *"
echo "* *"
echo "*********************************************************************"
sleep 5
exit
Call it something like
/usr/local/bin/nulLogin and make that the default shell for the users you want locked out, by entering it in
/etc/passwd for each appropriate user.
eg:
Code:
test01:x:3456:3456::/home/test01:/usr/local/bin/nulLogin
--- rod.