Creating New Users in UNIX Machine !!!

Hi

How to create users in the UNIX machine ....

I am the ROOT and i want to create users with normal privileges .

a) Please give the sequence of commands which i need to use.

b) How to set their userid and passwords

Simple user

login as root 
adduser <username> 
-- this is sometimes useradd...you have to watch out depending on your flavour of unix
passwd <username> 
-- change the passwd for the user you have just added

.

More complex user

login as root 
adduser <username> -c <comment> -d <home directory of user> -g <primary group of this user> -G <a comma delimited list of groups to which this user belongs> -m -k <directory to make this new directory look like> -s <users shell>

passwd <username> 
-- change the passwd for the user you have just added

.

[/CODE]

My I also suggest doing a "man" or "info" on the useradd command. My experience has shown that adduser is usually a symlink or alias to useradd.

useradd is easier to use anyways. just prompts you for input.