Summary: disabling logins

From: Ricky Kris <rickytc60_at_yahoo.com>
Date: Wed Feb 27 2002 - 13:32:27 EST
 I got a few responses, thanx to  Mike Salehi who pointed out I could use /etc/nologin - (It was simple!!)
Also thanx to         Paul LaMadeleine  and Scott McCool  
 Paul suggested:
add the following to the top to /etc/profile 

if [ "`who am i|awk '{print $1}'`" = "$LOGNAME" ]
then
    echo "Not authorized to login directly."
    exec sleep 2
fi

---------Original post-----------

 

Hi,

I need to disable direct login for users and allow only su access to certain machines (Solaris 2.6). I already have /var/adm/loginlog and some scripts that track user activity but the network security policy requires the users to be able to only su and not directly logon to 'these machines'. Am I missing something really simple here or do I need to configure something like ssh? Any ideas would help... 

TIA
Yahoo! Greetings - Send FREE e-cards for every occasion!
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Yahoo! Greetings - Send FREE e-cards for every occasion!
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Feb 27 13:52:07 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:35 EST