LinuxSir.cn,穿越时空的Linuxsir!

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

sudo认识localhost关键字吗?

[复制链接]
发表于 2004-12-8 15:17:34 | 显示全部楼层 |阅读模式
我在sudoers中加入如下这条语句:
jacky localhost=(ALL) ALL
在本机运行时输入密码后提示如下:
jacky is not allowed to run sudo on xxx.6、………………
但是如果把localhost改为本主机名,就一切ok。
我是看网页上都说可以用localhost,所以我也想试一下,结果不行。

我看sudo的changelog有这么一句话:
- Don't ask the user for a password if the user is not allowed to run
    the command and the authenticate flag (in sudoers) is false.
可是我看sudo的属性如下:
-rws--x--x  root bin  ………………
说明普通用户有权执行sudo啊


为这小事折腾了一下午了,帮帮忙吧。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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