Nov 17, 2002 #1 sclganesh IS-IT--Management Nov 17, 2002 11 IN I would like to restrict no of logins per user as 2. Kindly help.
Nov 17, 2002 #2 olded Programmer Oct 27, 1998 1,065 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 Nov 17, 2002 11 IN Thank you very much. The script is working OK. Upvote 0 Downvote