一、题目要求:
二、具体步骤:
1.
groupadd -g 2000 shengcan
2.
groupadd -g 2001 caiwu
3.
groupadd -g 2002 jishu
4.
useradd -g shengcan -G jishu,caiwu -u 2000 lee
id lee #查看lee用户的uid和gid是否一致
5.
useradd -s /sbin/nologin linux
6.
useradd -G caiwu westos
groups westos
7.
useradd tabadmin
usermod -aG root tabadmin
groups tabadmin
8.
echo "tabadmin:westos" |chpasswd
chage -M 30 lee
chage -l tabadmin
echo "linux:westos" |chpasswd
echo "westos:westos" |chpasswd
echo "lee:westos" |chpasswd
chage -M 30 lee
chage -M 30 linux
chage -M 30 westos
chage -l lee
su lee