/etc/passwd 用户配置文件
/etc/group 组配置文件
/etc/login.defs 定义了useradd创建用户时创建的相关参数
/etc/defaults/useradd
/etc/shadow 密码配置文件
两种更改密码方式
passwd
-d, --delete
-l, --lock lock the password for the named account (root only)
-u, --unlock unlock the password for the named account (root only)
-x, --maximum=DAYS maximum password lifetime (root only)
-n, --minimum=DAYS minimum password lifetime (root only)
-w, --warning=DAYS number of days warning users receives before password expiration (root only)
-i, --inactive=DAYS number of days after password expiration when an account becomes disabled (root
chage也可以更改密码参数
chpasswd 批量修改密码
[root@localhost ~]# cat users
zxx:redhat
wjx:redhat
admin:redhat
[root@localhost ~]# chpasswd < users
[root@localhost ~]# echo root:redhat | ch