Anyone know if it is possible to have a "Standard User" account make IP changes (via GUI or terminal) without requiring the admin (sudo) password?
I want the user to be able to change interface from and to DHCP + set a static config (IP,mask, DG, DNS).
Thanks!
3 Answers
You would have to be careful with this (especially if you specify the "NOPASSWD:" option.
access the sudoers file:
sudo visudoAdd the following line to the sudoer file:
user ALL = (root) {path/to/command} I believe you could use this to specify a user (or users) that could run a specific command.
Source -
Full Disclosure - I have used this before (for other purposes). But I haven't tried to specify multiple users, or commands dealing with making changes to network interfaces.
Hope this helps
Yes, you can change network settings as a standard user. Yet you have to use sudo. Sorry. Just ask to be added to sudoers.
1In Windows OS, we can give the privilege to a standard user for making TCP/IP configuration changes, such as, changing IP configuration from DHCP to Manual, also changing IP, Subnet Mask, Default Gateway, DNS severs, etc. The user has to be added in "Network Configuration Operators" groups.
The user can also disable/enable/repair Network Connections.
- Start>Run>CMD>COMPMGMT.MSC
- System Tools>Local Users and Groups>Groups
- Double click "Network Configuration Operators" and click on "Add".
- Specify the user who needs IP configuration change rights.