From owner-freebsd-newbies Wed Apr 28 17:48:22 1999 Delivered-To: freebsd-newbies@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id B769B14F42 for ; Wed, 28 Apr 1999 17:48:17 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id UAA04721; Wed, 28 Apr 1999 20:45:53 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199904290045.UAA04721@cc942873-a.ewndsr1.nj.home.com> Subject: Re: Ping Error Question In-Reply-To: from John at "Apr 28, 99 08:16:11 pm" To: freebsd-root@i-zone.demon.co.uk (John) Date: Wed, 28 Apr 1999 20:45:53 -0400 (EDT) Cc: freebsd-newbies@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org John wrote, > In article <3.0.6.32.19990421222306.00794b50@mail.trlinks.com>, Rhavenn > StormWing writes > >I just got pppd to work right and now when I try and ping > >anything(including the localhost) I get this error: > > > >ping: sendto: Permission denied (this is repeated over and over) > > > >I am running FreeBSD3.1 . I have my resolv.conf file set to my ISP's > >nameserver which I thought was about it > >to get IP address mapping. > > > >Could someone explain to me what that error message means and point me in > >the right direction to solving it? > > > > > >Thanks for any help in advance! :) > > > > wherever ping lives is not in your path. Locate ping, go to the > directory, and then ./ping localhost > > what is the output of set from your shell? echo $PATH will give you the > same answer. This is not really a question for newbies, but I think I know what the problem is. First, ping obviously _is_ in the user's path if they are getting that message. If it were not, they would get a response like, ping: Command not found. What I do think the problem is is that ping does is not owned by root with the suid bit set. Make sure that when you look at ping's permissions it looks like this, % ls -l /sbin/ping -r-sr-xr-x 1 root bin 139264 Feb 28 21:45 /sbin/ping That is make sure it is owned by root AND there is that little 's' in the permissions string, '-r-sr-xr-x'. Ping will give an error like you are getting if it is not suid. If that is not the problem, take the original question to the -questions list. HTH. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message