I just want to set to default /etc/network/interfaces
but I can't because I get a Permission denied
error when I try to write to it:
auto lo
iface lo inet loopback
I just want to set to default /etc/network/interfaces
but I can't because I get a Permission denied
error when I try to write to it:
auto lo
iface lo inet loopback
In Ubuntu or Linux in general, files inside root /
is owned by root. A user would therefore need root privileges to access those files.
Since you're trying to write to /etc/network/interfaces
file, you do need to be root or have root privileges. To do so, use the sudo
command which is used to perform file operations on files that the Root User would only be allowed to change.
Open a terminal with Ctrl+Alt+T and run:
sudo gedit /etc/network/interfaces
This will open Gedit, you can then make the necessary changes to the file.
Note: Since Gedit is a graphical application, it is recommended to run sudo
graphically with gksu
. Therefore, you can also do it this way:
gksu gedit /etc/network/interfaces