Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44316 - Name resolution for dialup net.ppp0 doesn't work for normal users
Summary: Name resolution for dialup net.ppp0 doesn't work for normal users
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-03-10 19:47 UTC by Gustavo Ramos
Modified: 2004-05-07 15:31 UTC (History)
1 user (show)

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 Gustavo Ramos 2004-03-10 19:47:04 UTC
When the option PEERDNS is "yes" in /etc/conf.d/net.ppp0, the file /etc/resolv.conf is written with 640 permissions, owner=root and group=root. This block normal users from name resolution.

* Temporary workaround: set PEERDNS="no" in /etc/conf.d/net.ppp0 and set manually the file /etc/resolv.conf

* Definitive fix: Make sure the script that changes /etc/resolv.conf doesn't change the group, or that the script change the written group to users.


Reproducible: Always
Steps to Reproduce:
Comment 1 Gustavo Ramos 2004-03-10 19:54:22 UTC
There are some side-effects or symptoms when having such a broken dialup connection: 

* Neither dig, host, nslookup nor ping say that it can't access /etc/resolv.conf. Rather it just fail, either with timeouts or with messages like 'can't resolve foo.com'... Should these effects be filed in one bug for each program?

Well, I don't know exactly how this part of the name resolution works, but it should say that it can't access /etc/resolv.conf

I think that very possibly the name resolution takes place inside the kernel, so here is my 'emerge info':



Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.4.22-gentoo-r5)
=================================================================
System uname: 2.4.22-gentoo-r5 i686 Intel(R) Celeron(TM) CPU                1066MHz
Gentoo Base System version 1.4.3.13p1
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
CHOST="i486-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acl acpi alsa apache2 apm avi berkdb bonobo crypt cups directfb doc dvd encode esd flash foomaticdb freetds gdbm ggi gif gnome gnomedb gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imlib joystick jpeg kerberos libg++ libgda libwww lirc mad md5sum mdb mikmod mmx motif mozilla mpeg mysql nas ncurses nls odbc oggvorbis opengl oss pam pdflib perl png postgres ppds python quicktime readline samba sdl slang spell sqlite sse ssl svga tcltk tcpd truetype unicode wxwindows x86 xml xml2 xmms xv zlib"
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2004-05-05 21:07:05 UTC
fixed in rc-scripts cvs
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-05-07 15:31:12 UTC
okay, baselayout-1.9.0 is in portage