LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /etc/network/interfaces: Permission denied (https://www.linuxquestions.org/questions/linux-newbie-8/etc-network-interfaces-permission-denied-4175561449/)

zainab shihab 12-14-2015 04:31 PM

/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??:confused:

Emerson 12-14-2015 04:44 PM

Try
Code:

$EDITOR /etc/network/interfaces

zainab shihab 12-14-2015 04:55 PM

Quote:

Originally Posted by Emerson (Post 5464256)
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

zainab shihab 12-14-2015 04:58 PM

Quote:

Originally Posted by Emerson (Post 5464256)
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!


All times are GMT -5. The time now is 12:09 PM.