Hi guis,
I would like to Know how to create a new user account with examples.
I refered some books ,but they r not clear.
Can any body of u provide me a shell script to create a new user account.
any help pls 
cheers
Ravi Raj Kumar
Hi guis,
I would like to Know how to create a new user account with examples.
I refered some books ,but they r not clear.
Can any body of u provide me a shell script to create a new user account.
any help pls 
cheers
Ravi Raj Kumar
The O/S might help us here!!!!
well,
I know that we can create by using "useradd" command.But i want it to be done by a shell script.
cheers
Ravi raj kumar
First of all I would recommend you to read the rules of these forums, specially Rule # 9 which states
Secondaly, I would ask the same question which johnf has asked you earlier, i.e. which OS?

hi,
Thank you for your kind recommendation.
I am using SCO unix.
cheers
Ravi Raj Kumar
why don't you try to merge all the questions that you have in one post ? I got confused when surfing through the threads.
Script ? Hm.. useradd is script. On most Unix system is interactive :
useradd ravi
Please choose home dir :
etc.....otherwise use man useradd and see the available options, put them in simple shell script and call it.
My point is that there are many ways to do it ( more than one "Perl"
) so use the freedom that UNIX gives to explore, search, try, fail, try again, read the man, etc. That's the most exciting part of *X
A a superuser, use the 'scoadmin' command, then select 'account manager', Select 'Add new user' under the 'User' tab.
I think [ if I remember correct ] this works,
useradd -u<uid> -g <group> -d <home_dir> -m