1834645 Members
2121 Online
110069 Solutions
New Discussion

Signon's

 
Raj Mithal
New Member

Signon's

Is there a way to stop the same userid from logging on with the same userid more then once on the same server.
We are running a HPUX10.20
aaa
2 REPLIES 2
Steve Steel
Honored Contributor

Re: Signon's

Hi


You need to script it

a script that would enable this:

count=`who | grep $LOGNAME | wc -l`
if [ $count -gt 1 ]
then exit
fi

which should be included in either the users' .profile or the system
wide profile


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Wodisch
Honored Contributor

Re: Signon's

Hello Raj,

you have to take into account that we have at least four different ways to logon:
- serial terminals: getty
- network: telnetd
- network: rlogind
- network: dtlogind (=CDE)

The first three can be checked using the "/etc/profile" approach of the previous reply (attention: ONLY for Bourne-shell, Korn-shell, and POSIX-shell, but NOT for C-shell), but for graphical login a'la CDE you have to put that test into "/etc/dt/login/Xsetup"!

HTH,
Wodisch