LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
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


Reply
  Search this Thread
Old 12-14-2015, 05:31 PM   #1
zainab shihab
LQ Newbie
 
Registered: Dec 2015
Posts: 3

Rep: Reputation: Disabled
/etc/network/interfaces: Permission denied


Hi
i can't open /etc/network/interfaces
i want to connect to wifi using DHCP
my os is Angström distribution
root@khepera4_1092:~# /etc/network/interfaces
-sh: /etc/network/interfaces: Permission deniedd
*******
and
error2
root@khepera4_1092:~# /etc/init.d/networking stop
Deconfiguring network interfaces... /etc/network/interfaces:92: duplicate option
ifdown: couldn't read interfaces file "/etc/network/interfaces"
done.
what i do??
 
Old 12-14-2015, 05:44 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Try
Code:
$EDITOR /etc/network/interfaces
 
Old 12-14-2015, 05:55 PM   #3
zainab shihab
LQ Newbie
 
Registered: Dec 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
Try
Code:
$EDITOR /etc/network/interfaces
i use it and this output


root@khepera4_1092:~# $EDITOR /etc/network/interfaces








1 # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
2
3 # The loopback interface
4 #
5 auto lo
6 iface lo inet loopback
7
8 #
9 # wired interfaces
10 #
11
12 #auto eth0
13 #iface eth0 inet dhcp
14 #iface eth1 inet dhcp
15
16 #
17 # Wireless interfaces
18 #
19
20 # Example of an unencrypted (no WEP or WPA) wireless connection
21 # that connects to any available access point:
22 #
23 #allow-hotplug wlan0
"/etc/network/interfaces" 94L, 2203C
what i do
 
Old 12-14-2015, 05:58 PM   #4
zainab shihab
LQ Newbie
 
Registered: Dec 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
Try
Code:
$EDITOR /etc/network/interfaces
this output
E325: ATTENTION
Found a swap file by the name "/etc/network/.interfaces.swp"
owned by: root dated: Tue Jun 18 06:23:25 2013
file name: /etc/network/interfaces
modified: YES
user name: root host name: khepera4_1092
process ID: 911
While opening file "/etc/network/interfaces"
dated: Tue Jun 18 05:43:40 2013

(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.

(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /etc/network/interfaces"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/etc/network/.interfaces.swp"

to avoid this message.

Swap file "/etc/network/.interfaces.swp" already exists!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't open etc/network/interfaces : permission denied or something? arjukjan84 Linux - Newbie 11 11-13-2014 07:10 PM
Why kde boot slow because /etc/network/interfaces denied user internet conection? cesarbergara Linux - Software 4 10-11-2014 01:16 PM
Access to /etc/network/interfaces denied jbis2k Linux - Newbie 3 02-24-2013 08:21 PM
Windows Network Denied Permission bensebnem Linux - Networking 5 04-22-2008 04:26 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 06:57 AM


All times are GMT -5. The time now is 01:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration