From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ibrahim_Altahan@magna.on.ca Newsgroups: gmane.os.tru64.managers Subject: SUMMARY; Limiting logins Date: Thu, 04 Jul 2002 08:25:00 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1025785498 9506 127.0.0.1 (4 Jul 2002 12:24:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 4 Jul 2002 12:24:58 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17Q5fN-0002TD-00 for ; Thu, 04 Jul 2002 14:24:57 +0200 Original-Received: (qmail 25547 invoked by uid 5); 4 Jul 2002 12:25:23 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 25485 invoked from network); 4 Jul 2002 12:25:23 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (134.167.3.119) by 0 with SMTP; 4 Jul 2002 12:25:23 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GYQ00HZH56AJ1@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 04 Jul 2002 08:25:22 -0400 (EDT) Original-Received: from ns.magna.on.ca (ns.magna.on.ca [206.186.122.2]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GYQ00KGN562EU@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 04 Jul 2002 08:25:14 -0400 (EDT) Original-Received: from decoma-fw-1.magna.on.ca ([172.18.1.10]) by ns.magna.on.ca (8.11.0/8.11.0) with ESMTP id g64CO4e22331 for ; Thu, 04 Jul 2002 08:24:04 -0400 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Lotus Notes Release 5.0.8 June 18, 2001 X-MIMETrack: Serialize by Router on DECCASM01DS/SVR/Decoma(Release 5.0.10 |March 22, 2002) at 07/04/2002 08:25:13 AM Xref: main.gmane.org gmane.os.tru64.managers:837 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:837 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."