14 Feb
2012
14 Feb
'12
11:26 a.m.
On 14 Feb 11:21, Chris Green wrote:
How can I set the permissions on eth0 to allow me (as opposed to root) to modify it?
I want to use macchanger from a script and I don't want to have to enter my password every time I run the script. I assume it's the same sort of permission that one would need to be able to use ifconfig to change things on a network interface.
Just allow your user no password'd sudo access to macchanger. Though, I would (obviously) question why a normal user would need to change his mac. Anyways, in sudoers: user ALL=(ALL) NOPASSWD: /usr/sbin/macchanger (or similar). -- Brett Parker