[K12OSN] Solution? Managing Identical logins

Robert Arkiletian robark at telus.net
Tue Feb 1 18:39:43 UTC 2005

Attention script writers:
I just had an idea. Is it possible to run a script at beginning of login that
would do this


if [$USER != root]
   if [who | grep $USER]  #this line needs some help
      #abort login (not sure how to do this)

basically check to see if the user is already logged in and abort login if true.
I am not familiar with bash script writing. It's on my to learn list. 

At least this way the student who is already logged on with the username will
not get kicked off. Only the second attempt to login with the same username will

Robert Arkiletian

More information about the K12OSN mailing list