Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Nov 1997 10:05:42 -0600
From:      Jonathan Lemon <jlemon@americantv.com>
To:        hmin@public.cq.sc.cn
Cc:        FreeBSD <freebsd-questions@FreeBSD.ORG>
Subject:   Re: TO access the PROTO_RAW.
Message-ID:  <19971106100542.44789@right.PCS>
In-Reply-To: <3280477C.3DF1@public.cq.sc.cn>; from Huang Min on Nov 11, 1996 at 04:08:29PM %2B0800
References:  <3280477C.3DF1@public.cq.sc.cn>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971106100542.44789>