问题:使用root用户为jishu01用户授权sudo,systemctl仍无权限
sudo配置主要情况如下
# visudo
Cmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yum
Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig, /usr/bin/systemctl start, /usr/bin/systemctl stop, /usr/bin/systemctl reload, /usr/bin/systemctl restart, /usr/bin/systemctl status, /usr/bin/systemctl enable, /usr/bin/systemctl disable
Cmnd_Alias DELEGATING = /bin/chown, /bin/chmod, /bin/chgrp, /bin/setfacl, /bin/getfacl
Cmnd_Alias FILES = /bin/mkdir, /bin/touch, /usr/bin/vi, /usr/bin/vim
jishu01 ALL=(ALL) SOFTWARE, SERVICES, DELEGATING, FILES
运行结果及详细报错内容
我尝试过其他命令,均有权限执行