> > > The script they call acts similar to this
> > > 
> > > user="$1"
> 
> case $user in
> user1)
>       do stuff
>       ;;
> user2)
>       do stuff
>       ;;
> 
> user3)
>       do stuff
>       ;;
> *)
>       invalid user stuff
>       ;;

A solution that scales would use a regex that checks input for chars
not allowed in a username, and confirms the length of input doesn't
exceed the max length for a username.

Reply via email to