usermod可以使用useradd所有参数
-L 锁定用户,不让其登录
-U 解锁
#修改用户的gid
[root@wy ~]# id wyy2
uid=501(wyy2) gid=503(wyy2) 组=503(wyy2)
[root@wy ~]# usermod -g 502 wyy2
[root@wy ~]# id wyy2
uid=501(wyy2) gid=502(grp1) 组=502(grp1)
本文出自 “linux” 博客,转载请与作者联系!
原文:http://warm51fun.blog.51cto.com/3884274/1891569