useradd or adduser?
adduser
I can never remember if I should use adduser or useradd. So I
created this page to be a quick reminder. From the man pages:
adduser, addgroup - add a user or group to the system
DESCRIPTION
adduser and addgroup add
users and groups to
the system according to command line options and
configuration information in
/etc/adduser.conf. They are friendlier front ends to the low
level tools like useradd, groupadd and usermod
programs, by default
choosing Debian policy
conformant UID and GID values, creating
a home directory with skeletal configuration, running a custom
script,
and other features. adduser and addgroup can be run in one of
five modes:
useradd - create a new user or update default new user
information
DESCRIPTION
useradd is
a low level utility for adding users. On Debian, administrators should usually use
adduser(8) instead.
When
invoked without the -D option, the useradd command creates a new user
account using the values specified on the command line
plus the
default values from the system. Depending on command line options, the
useradd command will update system files and may
also
create the new userĀ“s home directory and copy initial files.