用户组管理
cat /etc/group:查看用户组
groupadd Hades:增加一个名为Hades的用户组
groupmod -n Ylem Hades:修改用户组Hades的组名为Ylem
groupdel Ylem:删除用户组Ylem
groups:查看当前用户的用户名
groups Ylem:查看Ylem的用户组
用户管理
cat /etc/passwd:查看用户
useradd John:增加一个用户名为John的用户
useradd John -c student:为John指定一段注释性【c】(student)的描述{如果没有指定组则系统会自动创建一个John组}
useradd John -g 1st:指定John归属用户组【g】为1st
useradd John -c student -g 1st:为John指定一段注释性【c】(student)的描述,指定归属用户组【g】为1st
usermod -l Hades Ylem:修改用户名Ylem为Hades
usermod -c Codeman Ylem:修改用户Ylem的用户描述为Codeman
usermod -g root Ylem:修改用户Ylem的用户组为root
userdel Ylem:删除用户Ylem
passwd:为用户设置密码
passwd Ylem:为Ylem设置密码
如有侵权,邮箱联系,实属抱歉。
此只为学习个人笔记整理,同时如有转载请注明出处。
联系邮箱:wengyao1234@outlook.com
一同学习测开技企鹅群(闲聊,水群,广告勿扰):826471103