tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Ibrahim_Altahan@magna.on.ca
Subject: SUMMARY;  Limiting logins
Date: Thu, 04 Jul 2002 08:25:00 -0400	[thread overview]
Message-ID: <OF9D500898.911E2001-ON85256BEC.0043E879@magna.on.ca> (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."




                 reply	other threads:[~2002-07-04 12:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox