Error Writing /etc/network/interfaces Permission Denied
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Can't write to '/etc/network/interfaces' file in Ubuntu up vote 2 down vote favorite 1 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 linux file-permissions ubuntu-12.04 share|improve this question edited Oct 6 '12 at 14:19 Peachy 518317 asked Oct 4 '12 at 9:38 Arminas Keraitis migrated from stackoverflow.com Oct 5 '12 at 13:46 This question came from our site for professional and enthusiast programmers. URL to a video is a bad idea. People should be able to see the entire question right here on StackOverflow. Plus, what if the video gets deleted tomorrow? Consider editing your question to include the actual problem. –ArjunShankar Oct 4 '12 at 9:52 add a comment| 2 Answers 2 active oldest votes up vote 3 down vote 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 share|improve this answer edited Oct 14 '12 at 7:14 answered Oct 6 '12 at 14:32 Peachy 518317 add a comment| up vote 0 down vote try using sudo or edit as root share|improve this answer answered Oct 4 '12 at 10:58 hackwa 31 add a comment| Your
Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie can't open etc/network/interfaces : permission denied or something? User Name Remember Me? Password Linux - Newbie This Linux forum is for members that are new to Linux. Just starting out and have a question? If it is not in the man pages or the how-to's this is the place! Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community http://superuser.com/questions/483863/cant-write-to-etc-network-interfaces-file-in-ubuntu today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A http://www.linuxquestions.org/questions/linux-newbie-8/can't-open-etc-network-interfaces-permission-denied-or-something-849672/ Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 12-11-2010, 04:23 AM #1 arjukjan84 LQ Newbie Registered: Dec 2010 Posts: 1 Rep: can't open etc/network/interfaces : permission denied or something? hi i can't apen etc/network/interfaces file comes some permission denied what can I do ?? arjukjan84 View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by arjukjan84 12-11-2010, 02:05 PM #2 GrapefruiTgirl LQ Guru Registered: Dec 2006 Location: underground Distribution: Slackware64 Posts: 7,594 Rep: Please create your own thread for your issue in the future. I have moved your post to a thread of its own, so that your issue remains separate from that of the creator of the other thread. This makes
26th, 2012, 10:47 PMI'm a completely new to Ubuntu server and am having a hard time connecting the server to the https://ubuntuforums.org/archive/index.php/t-2033728.html internet. I first ran ping -n 8.8.8.8 connect:Network is unreachable Then I ran ifconfig Link encap:Local Loopback inet addr:127.0.0.1 Mask 255.0.0.0 inet6 addr: ::1/28Scope:host UP LOOPBACK RUNNING MTU:16436 RX packets:192 errors:0 dropped:0 overruns:0 frame:0 TX packets:192 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:15360 (15.2KB) TX bytes:15360 (15.3KB) Here is ouput for sudo lspci -n error writing 00:00.0 0600: 8086:2580 (rev 04) 00:02.0 0300: 8086:2582 (rev 04) 00:1d.0 0c03: 8086:2658 (rev 03) 00:1d.1 0c03: 8086:2659 (rev 03) 00:1d.0 0c03: 8086:265a (rev 03) 00:1d.0 0c03: 8086:265b (rev 03) 00:1d.0 0c03: 8086:265c (rev 03) 00:1e.0 0604: 8086:244e (rev d3) 00:1e.0 0401: 8086:266e (rev 03) 00:1f.0 0601: 8086:2640 (rev 03) 00:1f.0 0101: 8086:2651 (rev 03) error writing /etc/network/interfaces 00:1f.0 0c05: 8086:266a (rev 03) 00:0b.0 0200: 8086:1654 (rev 03) lshw-c network returns WARNING: you should run this program as super-user. *-network DISABLED description:Ethernet interface product: NetXtreme BCM5705_2 Gigabit Ethernet vender: Broadcom Corporation physical id:b bus info:pci@0000:0a:0b.0 logical name: eth0 capabilities: bus_master_cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion= 3.121 firmware=5705-v3.18 latency=32 mingnt=64 multicast=yes port=twister pair lsmod code returned this Module Size Used By e100 37213 0 dm_crypt 23125 1 ppdev 17113 0 psmouse 87603 0 snd_intel8x0 38570 0 snd_ac97_codec 134826 1 snd_intel8x0 ac97_bus 12730 1 snd_ac97_codec snd_pcm 97188 2 snd_intel8x0, snd_ac97_codec serio_raw 13211 0 snd_timer 29990 1 snd_pcm snd 78855 4 snd_intel8x0, snd_ac97_codec, snd_pcm,snd_timer soundcore 15091 1 snd snd_page_alloc 18529 2 snd_intel8x0, snd_pcm ext2 73795 1 parport_pc 32866 1 mac_hid 13253 0 lp 17799 0 parport 46562 3 ppdev, parport_pc,lp usbhid 47199 0 hid 99559 1 usbhid tg3 152032 0 i915 468651 1 floppy 70365 0 drm_kms_helper 46978 1 i915 drm 242038 2 i915,dr