* SUMMARY; Limiting logins
@ 2002-07-04 12:25 Ibrahim_Altahan
0 siblings, 0 replies; only message in thread
From: Ibrahim_Altahan @ 2002-07-04 12:25 UTC (permalink / raw)
The best answer came from Dennis, thank you. Add the following line in
the top of /etc/profile
#
# (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC.
# ALL RIGHTS RESERVED
#
#
# OSF/1 Release 1.0
trap "" 2 3
export LOGNAME TERM
#---------------------- START SESSION LIMIT ----------------------
EXCLUDELIST="/etc/profile.session.exclude"
if [ ! -z "$LOGNAME" ]; then
if [ `grep -w $LOGNAME $EXCLUDELIST` ]; then
:
else
LOGCNT=`who | grep -w $LOGNAME | wc -l`
if [ "$LOGCNT" -gt "1" ]; then
clear
echo "\n\n\n...Only ONE session allowed per
user...\n\n\n"
exit 1
fi
fi
fi
#----------------------- END SESSION LIMIT -----------------------
....the rest of the global profile......
Ibrahim
"CONFIDENTIALITY NOTE: This message contains information which may be
privileged or confidential. If you are not the intended recipient, please
delete the e-mail and any attachments and notify us immediately by return
e-mail to the sender. Thank you in advance for your assistance."
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-07-04 12:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-04 12:25 SUMMARY; Limiting logins Ibrahim_Altahan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox