The method we use is to add some "special sauce" to the users .profile file. 
The following code works for ksh:

if test "$LOGNAME" != "special"
then
set -- `who | grep -v "\`who am i\`" | grep "^$LOG "`
[ -n "$*" ] && abort "$1 is already logged on at $2"
fi

where "special" is the name of a user who has this profile but needs the 
ability to have multiple sessions. For obvious reasons, *never* assign a 
profile with the above code to any of the "system" users, e.g. daemon or root.

Cheers

Andrew.
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to