Before testing (later, as I'm at work on a xp machine at the moment) I just woundered if someone with more scripting knowledge then me could have a quick look & let me know if the following looks ok?
#!/bin/sh
#
# Simple OEM-type user setup script
#
zenity --info --text="Welcome to user setup."
# Collect user login and full name and make user account
theusername=$(zenity --entry --text "Please enter a username - No Spaces, just letters only please." --entry-text "")
thefullname=$(zenity --entry --text "Please enter your name." --entry-text "")
useradd -c $thefullname -d /home/$theusername $theusername
# Collect and set user password
thepwd=$(zenity --entry --text "Please enter a password you would like to use." --entry-text "")
echo $thepwd | passwd $theusername --stdin
# Optional - make a sudo user
add $theusername sudo



