Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As I wrote in subject - How to prevent non-root user from changing IP address and network parameters?

It's on Ubuntu 12.04.

I followed instructions on Sitepoint's link, in Disable the Network Manager and ‘hard-code’ a static IP address section, but that does not works - end user is still capable to change network parameters.

Can you help me please how to solve my problem?

share|improve this question

What if you did

sudo chown root /etc/network/interfaces


sudo chmod 555 /etc/network/interfaces

Chmod changes the permissions, to read and execute only. that maens no one has the power to write to the file unless they sudo

chown makes the file the roots and stops other user from messing with it.

I think this will work...


I don't know why this wont work

nano /etc/NetworkManager/NetworkManager.conf


try this to remove the manager

sudo apt-get purge network-manager
share|improve this answer
it is root 555 already – user198003 Mar 21 '13 at 5:52
How is the info being changed? – wlraider70 Mar 21 '13 at 11:46
don't get you... file /etc/network/interfaces is already owned by root and permissions of it are 555 – user198003 Mar 21 '13 at 12:56
You said " end user is still capable to change network parameters." How, by terminal, networkmanager ect? – wlraider70 Mar 21 '13 at 15:07
yes, non-root user can change network parameters using network manager and i have to avoid that somehow. – user198003 Mar 21 '13 at 15:23

Your Answer


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.