- 论坛徽章:
- 0
|
[root@localhost test1]# grep smb /etc/passwd
smb:x:502:0::/home/smb:/bin/bash
[root@localhost test1]# gpasswd -d smb root
Removing user smb from group root
[root@localhost test1]# grep smb /etc/passwd
smb:x:502:0::/home/smb:/bin/bash
[root@localhost test1]# id smb
uid=502(smb) gid=0(root) groups=0(root),502(smb)
[root@localhost test1]# gpasswd -d smb root
Removing user smb from group root
gpasswd: user 'smb' is not a member of 'root'
这里显示smb的GID还是0,也就是说还属于root用户组,可以我已经将smb从root用户组删除了啊,我试着再次从root用户组删除smb,
提示
user 'smb' is not a member of 'root'。
可为什么passwd没有更新,用#id smb 显示出来smb还是属于root用户组 |
|