哪位帮个忙,看个文件

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

哪位帮个忙,看个文件

#1

帖子 yohu » 2007-01-20 12:39

运行一下sudo cat /etc/sudoers
然后把结果给我看看,谢谢~~
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#2

帖子 bones7456 » 2007-01-20 12:46

zaw@zaw:~$ sudo cat /etc/sudoers
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults

Defaults !lecture,tty_tickets,!fqdn

# User privilege specification
root ALL=(ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

#3

帖子 yohu » 2007-01-20 12:49

谢谢!
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
头像
TualatriX
帖子: 359
注册时间: 2006-11-17 20:07
来自: 杭州/宁波
联系:

#4

帖子 TualatriX » 2007-01-20 12:51

我想知道怎么编辑这个文件 让其他用户也支持SUDO。
IMTX:http://imtx.cn/

LDCN(已经关闭):http://linuxdesktop.cn/

Ubuntu Tweak:http://ubuntu-tweak.com/
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

#5

帖子 yohu » 2007-01-20 12:56

sudo vi /etc/sudoers
保存的时候要:w!
然后addgroup 用户名 admin
应该是这样吧。

我现在有问题,为什么我sudo不用密码?如何设置需要输入密码?
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

#6

帖子 yohu » 2007-01-20 13:10

是一直不需要密码,不是因为输过密码,我想请教一下这个设置在什么地方?
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
头像
dogfox
论坛版主
帖子: 5311
注册时间: 2006-09-02 14:18
来自: 汉桑城
联系:

#7

帖子 dogfox » 2007-01-20 13:37

重启X即可
全世界linux爱好者联合起来 !
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

#8

帖子 yohu » 2007-01-20 21:55

晕,我说了,是一直不需要密码,重启也是一样的。我想知道怎么控制这个。
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

#9

帖子 yohu » 2007-01-21 2:25

问题解决,之前把自己添加到sudo组里了,从sudo组去掉就ok了。
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
回复