If your aim is only to write a script to automate the "adduser" functionality try using "Expect" automation tool. If you search http://expect.nist.gov/ you may get the script file that you are looking for. --bye rk