Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#14876 - [ppp] script sets resolv.conf rights wrong
Attached to Project:
Arch Linux
Opened by Pasi Luostarinen (betek) - Saturday, 30 May 2009, 07:52 GMT
Last edited by Jan de Groot (JGC) - Monday, 09 November 2009, 08:01 GMT
Opened by Pasi Luostarinen (betek) - Saturday, 30 May 2009, 07:52 GMT
Last edited by Jan de Groot (JGC) - Monday, 09 November 2009, 08:01 GMT
|
Detailswhen pppd gets and ip address the /etc/ppp/ip-up is called and that calls /etc/ppp/ip-up.d/00-dns.sh script that copies new resolv.conf file to /etc. The resolv.conf have only read rights to root so users cannot use dns anymore. one sollution would be to add chmod ugo+r /etc/resolv.conf line to 00-dns.sh script.
|
This task depends upon
Closed by Jan de Groot (JGC)
Monday, 09 November 2009, 08:01 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 2.4.4-9.
Monday, 09 November 2009, 08:01 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 2.4.4-9.
In the past resolv.conf was saved in /etc/ppp with the permissions root:root 644 as needed and a symlink to this file was set in /etc.
Now resolv.conf is saved directly in /etc, but with the permissions root:root 600. If I chmod this file to 644 manually, the permissions are always reset to 600, if I disconnect with pppoe-stop and reconnect with pppoe-start.
As a workaround I had to modify the script /usr/sbin/pppoe-start and add a `chmod 644 /etc/resolv.conf` after the "Connected!" message.
I won't deal with rp-pppoe's stupidness at all (the package is superfluous anyway, so I'll completely ignore it) and only fix this in ppp by adding a proper chmod call to the 00-dns.sh script. I don't know when I'll get to that, in the meantime add a chmod 644 /etc/resolv.conf at the end of /etc/ppp/ip-up.d/00-dns.sh.
I don't think, that creating a backup of resolv.conf at every ppp(oe) connection is necessary, especially because this backup is still saved in /etc/ppp. Though /etc/ppp/resolv.conf is always copied to /etc. Why not keep /etc/ppp/resolv.conf as a backup (also not really necessary) and keep /etc/resolv.conf untouched. I'd say this would be more KISS like and save disk space. If someone needs more copies of resolv.conf for different DNS servers, these copies can be made manually.