Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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!

share|improve this question
add comment

3 Answers

You would have to be careful with this (especially if you specify the "NOPASSWD:" option.

access the sudoers file:

sudo visudo

Add 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 - http://www.unix.com/unix-dummies-questions-answers/127273-allow-user-use-specific-root-command.html

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

share|improve this answer
add comment

Yes, you can change network settings as a standard user. Yet you have to use sudo. Sorry. Just ask to be added to sudoers.

share|improve this answer
1  
This answer would benefit from citing supporting documentation, or a more detailed explanation, for how you are sure this is not possible. Right now it's unclear if you are really sure this cannot be done, or if you're just expressing your belief that it cannot. –  Eliah Kagan Jul 23 '12 at 2:05
add comment

In 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.

  1. Start>Run>CMD>COMPMGMT.MSC
  2. System Tools>Local Users and Groups>Groups
  3. Double click "Network Configuration Operators" and click on "Add".
  4. Specify the user who needs IP configuration change rights.
share|improve this answer
2  
This is useful information for Windows users, but this question (and indeed, this whole site) is about Ubuntu. It would be better for you to post this information on a Windows or general computing site. It doesn't answer the question that was asked here (which is about how to do this in Ubuntu). –  Eliah Kagan Aug 1 '12 at 6:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.