Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SCO UNIX unique login 1

Status
Not open for further replies.
Mar 28, 2003
2
CO
We have user with terminal emulators, using tcp/ip, how i force unique logins ??

 
In /etc/profile, perhaps something like:

[tt]if [ `w | nawk '$1 == "'$LOGNAME'"' | wc -l` -gt 1 ]
then
echo "You are already logged in."
sleep 3
exit
fi[/tt]

It checks the output of w for more than one login with the same username. Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top