LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1334|回复: 2

如何加入sudoers,文档看不明白

[复制链接]
发表于 2005-4-4 14:14:30 | 显示全部楼层 |阅读模式
每次sudo都说我不是sudoers组,我在用户和组中将普通用户加入sudoer组也不行。以下是我的/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
发表于 2005-4-4 14:26:11 | 显示全部楼层
你的sudo.conf只描述了root用户,你加这个
ALL ALL=NOPASSWORD: ALL
回复 支持 反对

使用道具 举报

发表于 2005-4-4 14:35:36 | 显示全部楼层
tony@tony:~$ 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

# User privilege specification
root    ALL=(ALL) ALL
tony    ALL=(ALL) NOPASSWD:ALL
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表