From owner-freebsd-questions Thu Nov 6 08:06:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA24328 for questions-outgoing; Thu, 6 Nov 1997 08:06:26 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from sumatra.americantv.com (sumatra.americantv.com [207.170.17.37]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA24318 for ; Thu, 6 Nov 1997 08:06:22 -0800 (PST) (envelope-from jlemon@americantv.com) Received: from right.PCS (right.PCS [148.105.10.31]) by sumatra.americantv.com (8.8.5/8.8.5) with ESMTP id KAA21403; Thu, 6 Nov 1997 10:06:13 -0600 (CST) Received: (from jlemon@localhost) by right.PCS (8.6.13/8.6.4) id KAA07064; Thu, 6 Nov 1997 10:05:42 -0600 Message-ID: <19971106100542.44789@right.PCS> Date: Thu, 6 Nov 1997 10:05:42 -0600 From: Jonathan Lemon To: hmin@public.cq.sc.cn Cc: FreeBSD Subject: Re: TO access the PROTO_RAW. References: <3280477C.3DF1@public.cq.sc.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.61.1 In-Reply-To: <3280477C.3DF1@public.cq.sc.cn>; from Huang Min on Nov 11, 1996 at 04:08:29PM +0800 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Nov 11, 1996 at 04:08:29PM +0800, Huang Min wrote: > Doing some basic programming, I know PROTO_RAW can only access by > the root user. Then I know the "ping" program is also using RAW, and > can be used by normal user, how does this happen? Can anyone explain > this to me? thanks -r-sr-xr-x 1 root bin - 122880 Oct 14 1996 /sbin/ping* ^ ping is setuid root, and thus runs with root privs in order to open a raw socket. -- Jonathan