Solved

"Host Not Found" error w/ non-root KPPP

Posted on 2002-05-12
7
273 Views
Last Modified: 2010-04-20
Hi!
I just installed JAVA and got it running so I could (don't laugh)
play Yahoo games online and use a gnutella program.
Well, now I have a weird problem (that just started today, which is
why I think it has something to do with my Java installation:
When I dial into my ISP using KPPP (non-root), everything seems to work fine
until I try to access the internet, and I get a "host not found" error.
I also can't access my pop mail server, so the whole name lookup
function seems to be lost. However, if I do pull up a termainal,
"su root" and then use KPPP, I AM able to access the internet and
nameserver stuff doesn't cause an error! I don't get it!
Incidentally, when I tried to dial the first time after installing
Java, I got this "can't open lock file" type of error, which I
haven't seen for years...could it be that some permissions were
reset on some items? How can I fix???
THanks!

0
Comment
Question by:haldrik
  • 4
  • 3
7 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 7005974
When, as an ordinary user, you open the PPP connection the DNS data isn't being set up. It is when you open the connection as root, so it's likely that there's some permission problem with KPPP modifying /etc/resolv.conf.

What version of Linux is this?
0
 

Author Comment

by:haldrik
ID: 7006980
Mandrake 8.2.
I'll have a look at this tonight and see if I can give myself permission again on this file and if that helps...I'll let you know!

0
 
LVL 40

Expert Comment

by:jlevie
ID: 7007279
It's been a while since I had an occasion to use KPPP, but my recollection is that KPPP needs to be suid to root in order to fully set up the system when invoked by other than root.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:haldrik
ID: 7008924
Well, I think I got it working, (changed permissions of the resolv.conf to 777 ) but there still seems to be something wrong:
The resolv.conf file is an exact copy of the fstab file , but without any server info. Then, once when I used KPPP as root, the file was modified with two lines of server information at the bottom. But then when I dialed in as a regular user and looked at the file again, it was again an exact replica of the fstab file. Does this file get continually updated and are /dev/hda and other hard drives normally a part of it???? Is it possible that the Yahoo games Java applet (or the java setup itself) could be changing things? I know this may sound nuts, but thats the only thing I've changed before all their weirdness started.



0
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 7009247
Something is wrong, and possibly seriously so. /etc/resolv.conf shouldn't have any of the fstab data in it. That might have happened accidentially (cp to the wrong target, miscue with an editor, etc) or it may indicate a file system problem. To eliminate the later as a possibility I'd recommend rebooting the box with a forced fsck ('touch /forcefsck' and reboot). Do check to make sure that /etc/resolve.conf isn't a symlink to /etc/fstab. It's supposed to be a regular file and 'ls -l /etc/resolv.conf' will tell.

If this system doesn't have a local network and DNS server, then empty /etc/resolv.conf with 'cp /dev/null /etc/resolv.conf' and see if the file contents get screwed up again.

I don't know if the games applet could have done that or not. My approach would be to fix the file and see if the problem reoccurs.
0
 

Author Comment

by:haldrik
ID: 7010086
Well, you were right...the resolv.conf file seems to have been a symlink to the fstab file (I'm the only one using the computer, so I guess it must have been me! Couldn't tell you how I managed to mess that up, though...)
THanks!
0
 
LVL 40

Expert Comment

by:jlevie
ID: 7010192
Dunno how you'd have done that by accident, but at least it's fixed now.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Squid Connection Pools 3 46
AWS CLI - Issue with name display 2 51
nagios 4 php error after installation 6 77
Choosing CentOS 16 57
In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now