/etc/passwd
/*name:password:UID:GID:GECOS:directory:shell*/
/etc/shadow
login name
encrypted password
date of last password change
minimum password age
maximum password age
password warning period
password inactivity period
account expiration date
reserved field
/etc/group
/*group_name:password:GID:user_list*/
/etc/skel
/etc/default/useradd
GROUP=100 /*users组*/
HOME=/home /*家目录路径*/
INACTIVE=-1 /*口令过期 仍然不登录 锁定账号*/
EXPIRE= /*过期时间*/
SHELL=/bin/bash /*默认的shell*/
SKEL=/etc/skel /*家目录配置文件模板路径*/
CREATE_MAIL_SPOOL=yes /*自动创建邮箱*/
/etc/login.defs
PASS_MAX_DAYS /*默认密码配置*/
PASS_MIN_DAYS
PASS_MIN_LEN
PASS_WARN_AGE
MAIL_DIR /var/spool/mail /*默认邮箱路径*/
UID_MIN /*UID GID默认范围*/
UID_MAX /*用户指定能超过这个范围*/
SYS_UID_MIN
SYS_UID_MAX
GID_MIN
GID_MAX
SYS_GID_MIN
SYS_GID_MAX
ENCRYPT_METHOD SHA512 /*加密算法*/
本文来自投稿,不代表Linux运维部落立场,如若转载,请注明出处:http://www.178linux.com/95948