|
visudo
配置的内容为:
Host_Alias SERVER = 192.168.1.22/255.255.255.0
User_Alias TEST = test, test2
Cmnd_Alias NETWORKING = /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient, /usr/bin/net, /sbin/iptables, /usr/bin/rfcomm, /usr/bin/wvdial, /sbin/iwconfig, /sbin/mii-tool
Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig
TEST SERVER=NETWORKING, SERVICES
执行后的情况为:
[test@RHEL5 ~]$ sudo ifconfig
口令:
test is not allowed to run sudo on RHEL5. This incident will be reported.
请问问题出现在哪里?或是我配置错误? |
|