From owner-freebsd-questions Thu Sep 5 06:32:24 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA16432 for questions-outgoing; Thu, 5 Sep 1996 06:32:24 -0700 (PDT) Received: from tad.cetlink.net (ns1.cetlink.net [206.31.104.10]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id GAA16422 for ; Thu, 5 Sep 1996 06:32:20 -0700 (PDT) Received: (from jeff@localhost) by tad.cetlink.net (8.7.5/8.6.12) id JAA27682; Thu, 5 Sep 1996 09:32:16 -0400 (EDT) From: Jeffrey Wheat Message-Id: <199609051332.JAA27682@tad.cetlink.net> Subject: Re: suidperl from httpd not working To: paul@nation-net.com (Paul Walsh) Date: Thu, 5 Sep 1996 09:32:16 -0400 (EDT) Cc: freebsd-questions@freebsd.org In-Reply-To: <322EC149.F3D@nation-net.com> from "Paul Walsh" at Sep 5, 96 01:02:17 pm X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In reply to Paul Walsh's email > Is there any way an httpd user (nobody) can run a setuid perl script through > cgi? Does it have to be a 'real' user. Paul, I use a wrapper to do this. main(argc,argv) int argc; char **argv; { setuid(0); seteuid(0); execv("my perl script", argv); } Regards, Jeff