ifdown em1 Users cannot control this device. Allow users to control em1 device

Eric Leschinski asked:

I want to allow users to control the em1 device in Linux:

When I run this command:

ifdown em1 

em1 is the embedded ethernet card 1, I want the user to be able to turn off the ethernet card.

On Fedora 17, I get this error message:

Users cannot control this device

I want a certain user to be able to run a certain command on Linux without giving rights to other users. What is the best way to do that?

My answer:

Add this line to /etc/sysconfig/network-scripts/ifcfg-em1:


Then any user can run ifup em1/ifdown em1.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.