Linux has super Administrators and ordinary users, each user when the basic settings after the establishment can be tested by the following explanations
[Email protected] ~]# useradd vforbox [[email protected] ~]# grep ' ^vfor '/etc/passwd //See if Add success vforbox:x:502:502: :/home/vforbox:/bin/bash
- Basic settings for new users with/etc/login.defs and/etc/default/useradd two files when we create new users
[[email protected] ~]# cat/etc/login.defs //View some basic properties of the user Mail_dir /var/spool/mail //mailbox default directory Storage Pass_max_ days 99999 //password need to change the time pass_min_days 0 //password how long to change Pass_min_len 5 //password Minimum length pass_warn_age 7 //password expires days before sending a warning message uid_min //Default account start minimum UID number Uid_max 60000//MAX UID limit gid_min 500 ///Default account start minimum number of GID Gid_max 60000//MAX UID limit create_home Yes// whether to establish user root directory, default is yes, otherwise no no
[[email protected] ~]# Cat/etc/default/useradd //view user default settings # useradd defaults filegroup=100//Default user group for 100home=/ Create_home//Default user root directory, the established directory Inactive=-1//Whether start, 1 means start Expire=shell=/bin/bash//default Shellskel=/etc/skel// Default root directory content Create_mail_spool=yes//whether to create a mailbox directory Yes Yes, no no
Basic Settings for Linux users