I'm running unbuntu 12.04. I want a script to be able to run "ip link blah blah...".
works as intended, but
gets me : RTNETLINK answers: Operation not permitted
I have these lines in my sodoers file:
myusername ALL = (ALL:ALL) NOPASSWD: ALL %mygroup ALL = (ALL:ALL) NOPASSWD:/sbin/ip, /bin/ip
There are no lines following this except a timeout for the timestamp, and the default reference to /etc/sudoers.d
/etc/sudoers.d is empty except for the default README file.
NOPASSWD does not seem to be working either. I have tried moving the lines around so that the timeout and sudoers.d lines are before the ones I mostly care about, with no effect.
What have I missed?