How to prevent non-root user from changing IP address and network parameters?

Tags:

Answer: 1

11 hours ago

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?

Added by: Al Wintheiser

Answer: 2

36 hours ago

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
Added by: Glenna Feest

Popular Search

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9