* [gentoo-dev] DNS not working except as root
@ 2001-05-11 20:42 Collins Richey
2001-05-11 22:27 ` Daniel Robbins
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Collins Richey @ 2001-05-11 20:42 UTC (permalink / raw
To: gentoo-dev
Unfortunately you don't have enough doc anywhere for me to puzzle
this out on my own. I can find no logs with errors related to this.
A normal user is denied access to DNS requests, which means that you
can only gain internet access with specific ip addresses.
Where are the controls for permitting DNS requests?
This is a repeat, but this should be really basic.
Thanks,
Collins Richey
Denver area
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] DNS not working except as root
2001-05-11 20:42 [gentoo-dev] DNS not working except as root Collins Richey
@ 2001-05-11 22:27 ` Daniel Robbins
2001-05-12 12:01 ` [gentoo-dev] su not working / email Sebastian Werner
2001-05-12 5:11 ` [gentoo-dev] DNS not working except as root Achim Gottinger
2001-05-12 5:49 ` Achim Gottinger
2 siblings, 1 reply; 9+ messages in thread
From: Daniel Robbins @ 2001-05-11 22:27 UTC (permalink / raw
To: gentoo-dev
On Fri, May 11, 2001 at 08:50:02PM -0600, Collins Richey wrote:
> Unfortunately you don't have enough doc anywhere for me to puzzle
> this out on my own. I can find no logs with errors related to this.
>
> A normal user is denied access to DNS requests, which means that you
> can only gain internet access with specific ip addresses.
>
> Where are the controls for permitting DNS requests?
>
> This is a repeat, but this should be really basic.
Well, DNS requests are normally done with the gethostbyname() or gethostbyname_r()
syscall; maybe you could write a simple test program or strace a basic program like
ping to get some idea of what permission issue is causing the problem? We have an
strace ebuild in the Portage tree.
Best Regards,
--
Daniel Robbins <drobbins@gentoo.org>
President/CEO http://www.gentoo.org
Gentoo Technologies, Inc.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] DNS not working except as root
2001-05-11 20:42 [gentoo-dev] DNS not working except as root Collins Richey
2001-05-11 22:27 ` Daniel Robbins
@ 2001-05-12 5:11 ` Achim Gottinger
2001-05-12 8:43 ` Collins Richey
2001-05-12 5:49 ` Achim Gottinger
2 siblings, 1 reply; 9+ messages in thread
From: Achim Gottinger @ 2001-05-12 5:11 UTC (permalink / raw
To: gentoo-dev
Collins Richey wrote:
>
> Unfortunately you don't have enough doc anywhere for me to puzzle
> this out on my own. I can find no logs with errors related to this.
>
> A normal user is denied access to DNS requests, which means that you
> can only gain internet access with specific ip addresses.
>
> Where are the controls for permitting DNS requests?
>
> This is a repeat, but this should be really basic.
>
hrm, give /tmp a sticky bit, that fixed various problems I had here as a
normal user.
bye achim~
> Thanks,
> Collins Richey
> Denver area
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://www.gentoo.org/mailman/listinfo/gentoo-dev
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] DNS not working except as root
2001-05-12 5:11 ` [gentoo-dev] DNS not working except as root Achim Gottinger
@ 2001-05-12 8:43 ` Collins Richey
2001-05-12 9:02 ` Achim Gottinger
0 siblings, 1 reply; 9+ messages in thread
From: Collins Richey @ 2001-05-12 8:43 UTC (permalink / raw
To: gentoo-dev
On Sat, 12 May 2001 12:41:15 +0200 AGottinger@t-online.de (Achim
Gottinger) wrote:
> Collins Richey wrote:
> >
> > A normal user is denied access to DNS requests, which means
> that you can only gain internet access with specific ip
addresses.
> >
> > Where are the controls for permitting DNS requests?
> >
> hrm, give /tmp a sticky bit, that fixed various problems I had
> here as a normal user.
>
/tmp was already 1777, but your second post fixed most of the
problem, ie /etc/resolv.conf was 600 now 644.
Now I can browse with konqueror using names instead of ip
addresses.
I still have one minor problem that I have seen before. Some
distros have the problem, some don't. I still can't use the
name for my mail server under sylpheed, just the ip address. On
my Sybil (Caldera 3.1 Beta) distro, this works, but
/etc/resolv.conf, etc., looks pretty much the same.
This isn't a biggie. I've never figured it out.
Thanks,
---
Collins Richey
Denver area
gentoo system
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] DNS not working except as root
2001-05-12 8:43 ` Collins Richey
@ 2001-05-12 9:02 ` Achim Gottinger
2001-05-12 9:30 ` Collins Richey
0 siblings, 1 reply; 9+ messages in thread
From: Achim Gottinger @ 2001-05-12 9:02 UTC (permalink / raw
To: gentoo-dev
Collins Richey wrote:
>
> On Sat, 12 May 2001 12:41:15 +0200 AGottinger@t-online.de (Achim
> Gottinger) wrote:
>
> > Collins Richey wrote:
> > >
>
> > > A normal user is denied access to DNS requests, which means
> > that you can only gain internet access with specific ip
> addresses.
> > >
> > > Where are the controls for permitting DNS requests?
> > >
>
> > hrm, give /tmp a sticky bit, that fixed various problems I had
> > here as a normal user.
> >
>
> /tmp was already 1777,
You should also set the sticky bit (chmod +t /tmp). I had a problem with
netscape here.
Netscape created a file called /tmp/ndebug as root. As I tried to start
netscape as a
normal user it segfaulted. I added the sticky bit and now all files
created in /tmp are
owned by root automatic, so normal users can overwrite such files
without problems.
Before that fix I could not start gnome a s a normal user (the file that
caused the problem was /tmp/languages in this case)
After the fix it worked.
but your second post fixed most of the
> problem, ie /etc/resolv.conf was 600 now 644.
>
> Now I can browse with konqueror using names instead of ip
> addresses.
>
> I still have one minor problem that I have seen before. Some
> distros have the problem, some don't. I still can't use the
> name for my mail server under sylpheed, just the ip address. On
> my Sybil (Caldera 3.1 Beta) distro, this works, but
> /etc/resolv.conf, etc., looks pretty much the same.
did you assign your hostname to 127.0.0.1 in /etc/hosts or to your real
IP adress?
(just a suggestion). I will make a package for sylpheed so I can try
that here.
bye achim~
>
> This isn't a biggie. I've never figured it out.
>
> Thanks,
> ---
> Collins Richey
> Denver area
> gentoo system
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://www.gentoo.org/mailman/listinfo/gentoo-dev
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] DNS not working except as root
2001-05-12 9:02 ` Achim Gottinger
@ 2001-05-12 9:30 ` Collins Richey
0 siblings, 0 replies; 9+ messages in thread
From: Collins Richey @ 2001-05-12 9:30 UTC (permalink / raw
To: gentoo-dev
[snips ]
On Sat, 12 May 2001 16:32:01 +0200 AGottinger@t-online.de (Achim
Gottinger) wrote:
> Collins Richey wrote:
> >
> > On Sat, 12 May 2001 12:41:15 +0200 AGottinger@t-online.de
> (Achim
> > Gottinger) wrote:
> >
> > > Collins Richey wrote:
> > > >
> >
> > > > A normal user is denied access to DNS requests, which
> > > > means that you can only gain internet access with
specific
> > > ip addresses.
> > > >
> > /tmp was already 1777,
> You should also set the sticky bit (chmod +t /tmp). I had a
> problem with
> netscape here.
> I added the sticky bit and now all
> files created in /tmp are owned by root automatic, so normal
users
> can overwrite such files without problems. Before that fix
I could
> not start gnome a s a normal user
>
ok, I misread your post, have set the sticky bit.
> but your second post fixed most of the problem, ie
> /etc/resolv.conf was 600 now 644. Now I can browse with
> konqueror using names instead of ip addresses.
> >
> > I still have one minor problem that I have seen before.
> > Some distros have the problem, some don't. I still can't
> > use the name for my mail server under sylpheed, just the ip
> > address.
>
> did you assign your hostname to 127.0.0.1 in /etc/hosts or to
> your real IP adress? (just a suggestion). I will make a
package
> for sylpheed so I can try that here.
>
My hosts file has my local lan ip address for my hostname
--
Collins Ridhey
Denver area
gentoo system
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] DNS not working except as root
2001-05-11 20:42 [gentoo-dev] DNS not working except as root Collins Richey
2001-05-11 22:27 ` Daniel Robbins
2001-05-12 5:11 ` [gentoo-dev] DNS not working except as root Achim Gottinger
@ 2001-05-12 5:49 ` Achim Gottinger
2 siblings, 0 replies; 9+ messages in thread
From: Achim Gottinger @ 2001-05-12 5:49 UTC (permalink / raw
To: gentoo-dev
Collins Richey wrote:
>
> Unfortunately you don't have enough doc anywhere for me to puzzle
> this out on my own. I can find no logs with errors related to this.
>
> A normal user is denied access to DNS requests, which means that you
> can only gain internet access with specific ip addresses.
>
> Where are the controls for permitting DNS requests?
>
> This is a repeat, but this should be really basic.
Collins, this is the final fix I think, after I did a full build test
here I had exactly the same problems you had.
DNS did not work here because my /etc/resolv.conf file had a 600
permission. I changed that to 644 and then it worked.
I hope this solution works for you too.
bye achim~
>
> Thanks,
> Collins Richey
> Denver area
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://www.gentoo.org/mailman/listinfo/gentoo-dev
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2001-05-13 5:13 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-11 20:42 [gentoo-dev] DNS not working except as root Collins Richey
2001-05-11 22:27 ` Daniel Robbins
2001-05-12 12:01 ` [gentoo-dev] su not working / email Sebastian Werner
2001-05-12 23:14 ` Justus Pendleton
2001-05-12 5:11 ` [gentoo-dev] DNS not working except as root Achim Gottinger
2001-05-12 8:43 ` Collins Richey
2001-05-12 9:02 ` Achim Gottinger
2001-05-12 9:30 ` Collins Richey
2001-05-12 5:49 ` Achim Gottinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox