Mar 28, 2003 #1 3102677826 MIS Joined Mar 28, 2003 Messages 2 Location CO We have user with terminal emulators, using tcp/ip, how i force unique logins ??
Mar 28, 2003 1 #2 Annihilannic MIS Joined Jun 22, 2000 Messages 6,317 Location AU 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. Upvote 0 Downvote
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.
Mar 28, 2003 Thread starter #3 3102677826 MIS Joined Mar 28, 2003 Messages 2 Location CO OK. tanks for yuor help Upvote 0 Downvote