[K12OSN] Solution? Managing Identical logins

Martin Woolley sysadmin at handsworth.bham.sch.uk
Wed Feb 2 08:43:13 UTC 2005

On Tuesday 01 Feb 2005 6:39 pm, Robert Arkiletian wrote:
> Attention script writers:
> I just had an idea. Is it possible to run a script at beginning of login
> that would do this
> #!/bin/sh
> if [$USER != root]
> then
>    if [who | grep $USER]  #this line needs some help
>    then
>       #abort login (not sure how to do this)
>    fi
> fi
> 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 fail.

There is a posting about this very subject here
Martin Woolley
ICT Support
Handsworth Grammar School
Isis Astarte Diana Hecate Demeter Kali Inanna

This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity 
to whom they are addressed. If you have received this email 
in error please notify postmaster at bgfl.org

The views expressed within this email are those of the 
individual, and not necessarily those of the organisation

More information about the K12OSN mailing list