Archive for the tag 'values'

SBDavid

System Default Values for useradd

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.

SBDavid

Checking all directadmin.conf values

Note that if the value does not exist in the directadmin.conf, it will be the default internal value within DirectAdmin.

Adding a value to the directadmin.conf would override the internal default.
You can always see what values are being used on your system by typing:

/usr/local/directadmin/directadmin c

Variables with default values which are (null) should not be added to the directadmin.conf unless you plan on using them.

If you want to remove that variable, then completely remove it from the directadmin.conf