- Create the user's home directory (default is /home/username and copy
the files from /etc/skel into it.
- Create a group with the same name as the user and place the user in it.
- Prompt for a password for the user
- Prompt for additional information on the user
- it is different from # useradd command
for more :
http://unix.stackexchange.com/questions/121071/what-does-adduser-do-that-useradd-doesnt
# adduser - [options] name
# adduser tom
# adduser -c name
add a comment for the user
# adduser -d name
Create a new home-directory
# adduser -e name
Date for the account to be disabled
# adduser -g name
Primary Group name or group number for the userâs default group
# adduser -m name
Create the home directory
# adduser -M name
do not create the home directory
# adduser --disabled-login name
Do not run passwd to set the password. The user won't be able
to use her account until the password is set
# adduser --disabled-password name
Like --disabled-login, but logins are still possible but not using password
authentication
# adduser --gecos GECOS name
Set the gecos field for the new entry generated. adduser will
not ask for finger information if this option is given
regards,
T.Dhanasekar
_____________________________________
ILUGC List: //www.freelists.org/list/ilugc
ILUGC Web: http://ilugc.in/