Adding new users

Tush tush at yahoo.com
Fri Mar 22 15:29:06 PST 2002


ira mendell wrote:

>useradd -m<newuser> -n<newuser> -p<newuser password> -u<newuser>
>
For a new user say tushar:)
userid=tushar
grp=users
homedir=/home/users/tushar
othergrps=pkgmanager
uid=1001
realName="Tushar T"

useradd -c ${realName} -m -d $homedir -g $grp -G ${othergrps} -s /bin/bash -u $uid $userid

The -m creates the home dir and copies the /etc/skel dir.

Let me know if i am missing something.

For more options try "man useradd".

--Tushar.


-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list