I am unable to edit
/etc/network/interfacesand/etc/resolv.conffile withvieditor. How can I access the file as a owner?This is my network settings in Windows 7. I want to configure it in ubuntu 12.10. How can I do this?
IP address 192.168.40.31 Subnet mask 255.255.255.0 Default gateway 192.168.40.1 Preferred DNS server 10.230.253.253 Alternet DNS server 203.147.88.2
Asked
Active
Viewed 210 times
0
David Foerster
- 35,754
- 55
- 92
- 145
-
Did you use `sudo vi /etc/network/interfaces`? – troylatroy Oct 23 '13 at 17:57
-
ya i have done this. but its not working. even i $chmod 777 interfaces also not working. (it is a owner file) can i login as root(owner)?? – user205787 Oct 23 '13 at 18:02
2 Answers
1
Try sudo vi /etc/network/interfaces, and sudo vi /etc/resolv.conf that should let you edit the files.
If that doesn't work, try sudo su enter your password, and try editing the files that way.
Mitch
- 106,657
- 24
- 210
- 268
0
If you are using the desktop edition, you could also right click on the Network-Manager icon at the top right. (It should look like a little computer, Wi-Fi symbol, or a set of up/down arrows) In the menu that pops up choose "edit connections". Then enter your information in a manner similar to Windows.
If you're using server, and have no graphical interface installed you might try
sudo nano /etc/network/interfaces and sudo nano /etc/resolve.conf
Control + O will write the changes and Ctrl + X will exit.
Hope this helps. Have a great day.
Argusvision
- 1,681
- 3
- 12
- 27