能否将登录用户加入到root用户组?
Tofloor
poster avatar
darkknight1988
deepin
2017-03-17 18:43
Author
我尝试在deepin上开发, 编译东西的时候会往 /usr/local/lib 等目录写入东西, 但会报错没权限, 于是我想把用户直接加入到root用户组deepin@deepin-pc:~/code$ sudo usermod -G root deepin
deepin@deepin-pc:~/code$ groups
deepin sambashare vboxsf

但没法成功, 这是bug还是系统限制?
Reply Favorite View the author
All Replies
avatar
justforlxz
deepin
2017-03-17 19:15
#1
sudo gpasswd -a $USER root

下次登录就能看到root组了。
Reply View the author
avatar
darkknight1988
deepin
2017-03-17 20:11
#2
https://bbs.deepin.org/post/136173
sudo gpasswd -a $USER root

下次登录就能看到root组了。

生效了, 谢谢。注销后再登陆才能看到变动
Reply View the author