|
|
发表于 2007-7-12 08:35:03
|
显示全部楼层
gpasswd -a user vboxusers
也可以修改/etc/group实现...
如果我们想把user这个用户归属到root用户组,所以我们还能修改/etc/group 的办法来达到目的;找到/etc/group 中的root开头的一行,按其规划加入lanhaitun;
root:x:0:root,lanhaitun
然后执行 grpconv 命令来同步/etc/group 和/etc/gshadow两个文件的内容;
[root@localhost ~]# grpconv
查看user归属组的信息;
[root@localhost ~]# id user
uid=508(user) gid=508(user) groups=508(user),0(root)
google下更改组就可以找到太多的相关资料 |
|