|
以下是我的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
%wheel ALL=(ALL) ALL
# Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
已经给了用户mxf root权限,而且也把mxf放到了wheel组,但是用mxf登录运行sudo总是出错:
[mxf@localhost home]$ sudo cd zk/
Sorry, sudo must be setuid root.
请问问题出在什么地方? |
|