Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62864 - ppp-2.4.2-r2 leaves bad permissions on /etc/resolv.conf
Summary: ppp-2.4.2-r2 leaves bad permissions on /etc/resolv.conf
Status: RESOLVED DUPLICATE of bug 37886
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-04 16:23 UTC by Brian Rupe
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Rupe 2004-09-04 16:23:08 UTC
Emerged ppp-2.4.2-r2 and dialup is successful, but it leaves the /etc/resolv.conf file chmod 640 with owner/group of root. Since user apps need to be able to read this file (ie: ssh) in order to resolve targets, this is highly annoying. I have gone in to the /etc/conf.d/net.ppp0 and disabled PEERDNS yet the remote DNS is still being applied and that is when the permissions get changed on the file.

Reproducible: Always
Steps to Reproduce:
1. cd /usr/portage/net-dialup/ppp/
2. emerge ppp-2.4.2-r2.ebuild
3. configure /etc/conf.d/net.ppp0
4. /etc/init.d/net.ppp0 start
5. ls -la /etc/resolv.conf

Actual Results:  
resolv.conf is set as 640 (-rw-r-----)

Expected Results:  
resolv.conf should be set as 644 (-rw-r--r--)

after ppp0 comes up, chomd 644 /etc/resolv.conf fixes user-level applications 
DNS failures...
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2004-09-19 13:31:23 UTC
I think your /etc/ppp/ip-up script is to blame. Could you confirm that?
Comment 2 Daniel Black (RETIRED) gentoo-dev 2004-09-27 03:22:40 UTC
dup - yes this should of been fixed ages ago.

*** This bug has been marked as a duplicate of 37886 ***