You are not logged in.
hi,
I have set up my connections disabling network-manager and configuring /etc/network/interfaces. I have also read-protected the file, I guess with chmod 0600, but I am not sure though..
mattia@ThinkCBW:~$ ls -l /etc/network/interfaces
-rw-r----- 1 root root 745 Feb 7 2013 /etc/network/interfacesnow, if I want to type
sudo ifdown [interface]and I hit Tab for autocompletion I get this
sudo ifdown ethsed: can't read /etc/network/interfaces: Permission denied
^C
mattia@ThinkCBW:~$ sudo ifdown wlsed: can't read /etc/network/interfaces: Permission denied
^Chowever if I type myself the name of the interface, the command work as expected.
is it a normal behaviour, is there a way around it without disclosing the content of the file?
thanks
We are a nice, friendly community here and I hope we stay that way.. 
Offline
My /etc/network/interfaces file is 644 - needs to be readable by all, presumably, give it a go.
Linux since 1999
A good general beginners book for Linux :- http://rute.2038bug.com/index.html.gz
A good Debian read :- http://debian-handbook.info/get/now/
Offline
OP is right. /etc/network/interfaces should not be world readable as it can contain sensible information.
Here are my permissions for dir /etc/network
drwxr-xr-x 6 root root 4096 Feb 7 19:36 . <---
drwxr-xr-x 133 root root 12288 Feb 7 19:29 ..
drwxr-xr-x 2 root root 4096 Nov 8 09:25 if-down.d
drwxr-xr-x 2 root root 4096 Jan 11 10:34 if-post-down.d
drwxr-xr-x 2 root root 4096 Jan 11 10:34 if-pre-up.d
drwxr-xr-x 2 root root 4096 Feb 4 13:48 if-up.d
-rw-r----- 1 root root 294 Dec 5 14:52 interfaces
-rw-r----- 1 root root 489 Dec 5 13:30 interfaces.bak
lrwxrwxrwx 1 root root 12 Sep 18 09:42 run -> /run/networkPerhaps permissions for dir /etc/network itself are not correct?
bootinfoscript - emacs primer - I ♥ #!
Offline
Dr. Xaos, I have the same permissions
drwxr-xr-x 2 root root 4.0K Nov 16 20:21 if-down.d/
drwxr-xr-x 2 root root 4.0K Nov 14 23:55 if-post-down.d/
drwxr-xr-x 2 root root 4.0K Nov 14 23:55 if-pre-up.d/
drwxr-xr-x 2 root root 4.0K Dec 3 23:15 if-up.d/
-rw-r----- 1 root root 747 Feb 7 19:40 interfaces
lrwxrwxrwx 1 root root 12 Sep 8 02:17 run -> /run/network/I have even checked el_koraco's tutorial: he suggests chmod 0600, so I would suppose I used that..
anyway I use aliases for the various ifup/idown command so this is not a big issue...but I am curious on the reason of this behaviour..
We are a nice, friendly community here and I hope we stay that way.. 
Offline
Post output of
ls -dl /etc/networkto see the permissions for the dir itself
bootinfoscript - emacs primer - I ♥ #!
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.