为了在Ubuntu加装KDE4.1后不受gnome干扰,我新建了一个用户专门来上KDE。但是发现这个用户不能用sudo。如何给这个用户sudoer权限呢?比较好的方法是什么,
我注意到原来的用户——姑且叫user1,在组user1中,新建的user2在组user2中,而且在/erc/group中两者都属于adm组,那为什么前者能sudo,后者不能sudo?
我又发现在/etc/group中还有组lpadmin和admin,他们是只包含user1,admin和adm有什么区别吗?
关于新建用户的组权限的问题
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
- chinesejerry
- 帖子: 510
- 注册时间: 2007-10-06 3:48
- 来自: 霍格沃茨魔法学校葛莱芬多学院
- 联系:
关于新建用户的组权限的问题
Because...nobody really uses an operating system,
people use...programs...on their computer.
And the only mission in life of an operating system is to helps those programs run.
----Linus
people use...programs...on their computer.
And the only mission in life of an operating system is to helps those programs run.
----Linus
-
- 论坛版主
- 帖子: 21308
- 注册时间: 2007-08-02 20:29
- 系统: 窓辺とうこ
- chinesejerry
- 帖子: 510
- 注册时间: 2007-10-06 3:48
- 来自: 霍格沃茨魔法学校葛莱芬多学院
- 联系:
-
- 帖子: 458
- 注册时间: 2006-11-27 12:25
- be00
- 帖子: 805
- 注册时间: 2008-07-28 19:51
- 来自: 长沙
- 联系:
用一个可以sudo的用户,执行:
sudo adduser 你的新用户 admin
在 man sudo_root里面有解释
sudo adduser 你的新用户 admin
在 man sudo_root里面有解释
我想增加一个用户用来备用,比如当前用户的密码忘了,用“系统管理-用户和组”增加以后,当前用户竟然不能sudo了,用上述命令后正常了。ALLOWING OTHER USERS TO RUN SUDO
By default, only the user who installed the system is permitted to run
sudo. To add more administrators, i. e. users who can run sudo, you
have to add these users to the group 'admin' by doing one of the fol-
lowing steps:
* In a shell, do
sudo adduser username admin
- 自由建客
- 帖子: 13468
- 注册时间: 2008-07-30 23:21
- 系统: Debian stable AMD64
- Vivi.FFix
- 帖子: 94
- 注册时间: 2008-08-11 1:38
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系: