Date: Thu, 06 Nov 1997 11:53:06 +0200 From: Nadav Eiron <nadav@barcode.co.il> To: hmin@public.cq.sc.cn Cc: FreeBSD <freebsd-questions@FreeBSD.ORG> Subject: Re: TO access the PROTO_RAW. Message-ID: <34619382.2896@barcode.co.il> References: <3280477C.3DF1@public.cq.sc.cn>
next in thread | previous in thread | raw e-mail | index | archive | help
Huang Min wrote: > > Hi, sir, > > 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 > > Huang Min Ping has the suid bit on. This means that while it runs, its effective UID is changed to that of its owner, which happens to be root. This is the case with many utilities (with the classic(?) example being passwd - since it writes to the master passwd file /etc/master.passwd, which should, undoubtably, be inaccessible to non-root users). Nadav
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34619382.2896>