When I try to connect with to the internet, wvdial and pon write to /etc/ppp/resolv.conf. Applications cannot resolve hostnames. They should be writing to /etc/resolv.conf Reproducible: Always Steps to Reproduce: 1. wvdial 2. (or) pon uwo 3. Actual Results: Modem dials and connects properly, but no internet applications can resolve hostnames. the file /etc/ppp/resolv.conf has been changed instead of /etc/resolv.conf Expected Results: Working internet. (kppp works fine) Have been forced to use kppp for a long time until I discovered why wvdial or pon don't work. As a temporary fix did: # rm /etc/ppp/resolv.conf # ln -s /etc/resolv.conf /etc/ppp/resolv.conf
I think the problem is that /etc/resolv.conf has permissions 640, which means normal users can't read it, so they can't find any DNS servers, so host names lookups fail. chmod 644 /etc/resolv.conf after /etc/init.d/net.ppp0 start fixes it, but is annoying. I've no idea at all why /etc/init.d/net.ppp0 makes /etc/resolv.conf mode 640 (it does so explicitly -- something to with kppp?) Martin, please edit /etc/init.d/net.ppp0 so the /etc/resolv.conf permissions get set correctly. Thanks. Tom
A more ""clean"" solution is to add two scripts into /etc/ppp so you dont have to edit /etc/init.d/net.ppp0 and when a ppp update arrives you lose your changes and need to fix again. Put this two files into /etc/ppp ---- ip-down.local ----- #!/bin/sh /bin/chown root:users /etc/resolv.conf ---- ip-up.local ----- #!/bin/sh /bin/chown root:users /etc/resolv.conf
fixed in 2.4.2_beta3-r1
But it seems to be back again in 2.4.2 (at least it is for me).
what are your permissions of /etc/resolv.conf and /etc/ppp/resolv.conf
What about your umask in /etc/profile?
/etc/resolv.conf has permissions 600, /etc/ppp/resolv.conf has permissions 644. The umask is 022, which should be okay,I think. I'm using the ip-up/down.local mentioned above, and it works for me.
so is this problem fixed for you or not, me is a bit confused ;)
Sorry, I should have been clearer. Everything works fine for me. But I need to use the ip-up.local and ip-down.local scripts mentioned above by Octavio Ruiz, otherwise I get resolv.conf permission problems. Since I need the scripts, I think there's still something wrong. But with the scripts it works great. If no-one else is having problems anymore, it's probably not worth worrying about.
Line 220, net.ppp0- perms are changed in script because kppp was getting busted and overwriting files..see http://devel-home.kde.org/~kppp/faq.html. we had a bug on here about it also, it has since become lost....
I'm running 2.4.2_r2 (the latest) and i'm not using ip-up nor ip-down, and I'm still having this problem. It took me a week to figure out this was causing my fresh qmail install to not send mail out anymore :-((.
Also, bug 37886 seems to address the same problem, but is closed/fixed/resolved. I do not agree, but I can't reopen it (don't know why, but i'm not a bugzilla expert).
*** This bug has been marked as a duplicate of 37886 ***