Try removing the spaces after NOPASSWD. Also, you can put all the commands on one line.
invitado ALL = NOPASSWD: /usr/bin/aptitude, /usr/bin/X11/wireshark, /usr/bin/wireshark, /usr/sbin/traceroute, /usr/sbin/tcpdump
Edit: Also, I think /usr/bin/aptitude/usr/bin/X11/wireshark was probably wrong. That should be 2 commands, /usr/bin/aptitude and /usr/bin/X11/wireshark.
发布评论
评论(1)
尝试删除 NOPASSWD 后面的空格。另外,您可以将所有命令放在一行上。
编辑:
另外,我认为
/usr/bin/aptitude/usr/bin/X11/wireshark
可能是错误的。这应该是 2 个命令,/usr/bin/aptitude
和/usr/bin/X11/wireshark
。Try removing the spaces after NOPASSWD. Also, you can put all the commands on one line.
Edit:
Also, I think
/usr/bin/aptitude/usr/bin/X11/wireshark
was probably wrong. That should be 2 commands,/usr/bin/aptitude
and/usr/bin/X11/wireshark
.