Nov 17, 2002 #1 sclganesh IS-IT--Management Joined Nov 17, 2002 Messages 11 Location IN I would like to restrict no of logins per user as 2. Kindly help.
Nov 17, 2002 #2 olded Programmer Joined Oct 27, 1998 Messages 1,065 Location US Hi: Assumingg LOGNAME is set, how about placing this line in /etc/profile: [ `w -h -s| cut -d" " -f1 | grep "^$LOGNAME$" | wc -l` -gt 2 ] && exit 0 Upvote 0 Downvote
Hi: Assumingg LOGNAME is set, how about placing this line in /etc/profile: [ `w -h -s| cut -d" " -f1 | grep "^$LOGNAME$" | wc -l` -gt 2 ] && exit 0
Dec 5, 2002 Thread starter #3 sclganesh IS-IT--Management Joined Nov 17, 2002 Messages 11 Location IN Thank you very much. The script is working OK. Upvote 0 Downvote