Hi there,
I installed lots of packages on my ubuntu and since then my network only works for root; all other users are not allowed to access it, e.g.:
Code:
mm@moondust:~$ ping www(dot)google(dot)ch
ping: icmp open socket: Operation not permitted
mm@moondust:~$ sudo ping www(dot)google(dot)ch
PING www(dot)l(dot)google(dot)com (72.14.235.99) 56(84) bytes of data.
64 bytes from google(dot)com (72.14.235.99): icmp_seq=1 ttl=241 time=325
IMHO there are two reasons for this behavior:
a) I (a setup script?) accidentally modified the owner of all files and folders within /etc (and some other top-level folders like /var) to be my normal user, not root
b) which made me some trouble with /etc/sudoers first, which I repared in recovery mode.
Ok, b) is caused by a)...
After recognizing that fault I turned the owner of /etc/* back (???) to root:root, but there's some magic missing. It seems *NOT* to be a problem with wrong IPTABLE config or anything like that. I guess there's still a file with the wrong access rights set.
- Does anybody know, which files are necessary for network access and which owners/access rights these files must have?
- Or is there a command on ubuntu to reset all this stuff to system default?
- Do all top-level folders have root:root as owner by default?
Here some more info:
Code:
mm@moondust:~$ uname -a
Linux moondust 2.6.15-28-386 #1 PREEMPT Thu May 10 09:45:43 UTC 2007 i686 GNU/Linux
mm@moondust:~$ ifconfig
eth0 Protokoll:Ethernet Hardware Adresse 00:02:3F:93:4B:88
inet Adresse:192.168.0.101 Bcast:192.168.0.255 Maske:255.255.255.0
inet6 Adresse: fe80::202:3fff:fe93:4b88/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5962 errors:0 dropped:0 overruns:0 frame:0
TX packets:6466 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:5242244 (4.9 MiB) TX bytes:1011653 (987.9 KiB)
Interrupt:225 Basisadresse:0x6800
lo Protokoll:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:372 (372.0 b) TX bytes:372 (372.0 b)
Sorry for all the (DOT)s, but it's my first post and thus URLs are not allowed...
Thanks for any help!!
Enoch