System Default Values for useradd

The primary tool used to add new users to your Linux system is useradd. This command pro-
vides an easy way to create a new user account and set up the user’s HOME directory structure all at once. The useradd command uses a combination of system default values and command line parameters to define a user account.

To see the system default values used on your Linux distribution, enter the useradd command with the -D parameter.

root@dell:~# /usr/sbin/useradd -D
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/sh
SKEL=/etc/skel
CREATE_MAIL_SPOOL=no

The -D parameter shows what defaults the useradd command uses.

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.