hurray 发表于 2006-9-18 16:46:09

为什么我使用不了sudo?

以下是我的sudoer文件设置:
sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# User privilege specification
root    ALL=(ALL) ALL
mxf   ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
%wheelALL=(ALL) ALL

# Same thing without a password
%wheelALL=(ALL)       NOPASSWD: ALL

# Samples
# %usersALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %userslocalhost=/sbin/shutdown -h now

已经给了用户mxfroot权限,而且也把mxf放到了wheel组,但是用mxf登录运行sudo总是出错:
$ sudo cd zk/
Sorry, sudo must be setuid root.

请问问题出在什么地方?

gugong 发表于 2006-9-18 20:41:54

2006年09月18日星期一下午20时33分58秒[root@m$ ~]# which sudo
/usr/bin/sudo
2006年09月18日星期一下午20时37分43秒[root@m$ ~]# ll /usr/bin/sudo
---s--x--x1 root root 93736 2004-10-04/usr/bin/sudo*
2006年09月18日星期一下午20时37分48秒[root@m$ ~]#

hurray 发表于 2006-9-19 09:01:47

有点不明白版主的意思,根用户肯定是能使用的了。
但是用一个新建的帐号mxf使用sudo却出现“Sorry, sudo must be setuid root. ”
难道是sudo属性的问题吗?
页: [1]
查看完整版本: 为什么我使用不了sudo?