求Ubuntu下的/etc/sudoers文件

其他Linux/Unix/BSD/OSX等发行版讨论
回复
头像
smartliu
帖子: 174
注册时间: 2006-08-04 11:10
系统: Arch, macOS, Windows
来自: Jinan, Shandong, China
联系:

求Ubuntu下的/etc/sudoers文件

#1

帖子 smartliu » 2007-12-16 11:31

现在用了gentoo,比较怀念过去在ubuntu下的sudo。虽然不难,但想看看Ubuntu下怎么配置的。LiveCD的好像和安装在硬盘上的有点不同。

能不能把配置贴一下?谢谢!
2007年10月成功用Ubuntu 10.04 Beta 4光盘引导起来我的DELL XPS M1330,开启了我在私人电脑上的Linux生涯。
2007年12月无法忍受Ubuntu的龟速,开始使用Gentoo。
2008年3月,显卡坏掉,人在国外上学而DELL只提供大陆境内保修服务,无奈在当地买了台MacBook,自此8年远离了Linux的世界。
2015年,用工资买了Lenovo ThinkPad X250,我又回来啦……哈哈哈!!!
http://liuf.net
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#2

帖子 oneleaf » 2007-12-16 21:35

# /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.
# Defaults

Defaults !lecture,tty_tickets,!fqdn

# Uncomment to allow members of group sudo to not need a password
# %sudo ALL=NOPASSWD: ALL

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
头像
smartliu
帖子: 174
注册时间: 2006-08-04 11:10
系统: Arch, macOS, Windows
来自: Jinan, Shandong, China
联系:

#3

帖子 smartliu » 2007-12-17 7:30

Thanks, Oneleaf.
2007年10月成功用Ubuntu 10.04 Beta 4光盘引导起来我的DELL XPS M1330,开启了我在私人电脑上的Linux生涯。
2007年12月无法忍受Ubuntu的龟速,开始使用Gentoo。
2008年3月,显卡坏掉,人在国外上学而DELL只提供大陆境内保修服务,无奈在当地买了台MacBook,自此8年远离了Linux的世界。
2015年,用工资买了Lenovo ThinkPad X250,我又回来啦……哈哈哈!!!
http://liuf.net
头像
vvoody
帖子: 749
注册时间: 2007-01-21 20:10

#4

帖子 vvoody » 2008-02-12 21:36

gentoo下没sudo?
回复