From owner-freebsd-questions Sun Nov 10 1: 5:38 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF49B37B401 for ; Sun, 10 Nov 2002 01:05:37 -0800 (PST) Received: from web20003.mail.yahoo.com (web20003.mail.yahoo.com [216.136.225.48]) by mx1.FreeBSD.org (Postfix) with SMTP id B2E6243E6E for ; Sun, 10 Nov 2002 01:05:37 -0800 (PST) (envelope-from vctw@yahoo.com) Message-ID: <20021110090537.27379.qmail@web20003.mail.yahoo.com> Received: from [168.95.19.3] by web20003.mail.yahoo.com via HTTP; Sun, 10 Nov 2002 01:05:37 PST Date: Sun, 10 Nov 2002 01:05:37 -0800 (PST) From: Vincent Chen Subject: CGI using suidperl question? To: FreeBSD maillist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, all I got to write a CGI to handle network interface on freebsd. After some tests have done, I found a possible issue.My apache running as www and my cgi has suid bit set,it seems that suidperl only set euid, but real uid still www and some tasks can be done. This is the output that my CGI call /usr/bin/id: uid=80(www) euid=0(root) gid=80(www) groups=80(www) Is it possible to hide real uid www and replace it wit root? Thanks, __________________________________________________ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message