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.

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 http://www.sitepoint.com/ubuntu-12-04-lts-precise-pangolin-networking-tips-and-tricks/, 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

1 Answer 1

What if you did

sudo chown root /etc/network/interfaces

and/or

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

Edits:

I don't know why this wont work

nano /etc/NetworkManager/NetworkManager.conf

managed=false

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

 
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.