1.用户相关
https://blog.csdn.net/wj78080458/article/details/86217037 添加用户useradd
https://blog.csdn.net/yilovexing/article/details/78793858 删除用户userdel
https://blog.51cto.com/13438667/2061590 Linux用户user,组group详解
1.1查询用户和组;
cat /etc/passwd|grep user1
cat /etc/shadow|grep user1
1.2添加用户;
useradd -d /home/other -u 600 -g group_name -c "test user" user02 新建用户并设定用户的家目录、uid、备注
1.3删除用户;
userdel user1
2.组相关
https://www.cnblogs.com/diantong/p/9436027.html 添加组groupadd
https://blog.csdn.net/yexiangCSDN/article/details/80757836 删除组groupdel
2.1 查询组信息;
cat /etc/group|grep loggrp
cat /etc/gshadow|grep loggrp
2.2 添加组;
groupadd -g 400008 group_name
2.3 删除组
groupdel group_name