From owner-freebsd-questions Sun Aug 29 18: 9:10 1999 Delivered-To: freebsd-questions@freebsd.org Received: from pinnacle.co.nz (pinnacle.co.nz [202.37.163.1]) by hub.freebsd.org (Postfix) with ESMTP id DCAF115206 for ; Sun, 29 Aug 1999 18:09:05 -0700 (PDT) (envelope-from jonc@pinnacle.co.nz) Received: (from jonc@localhost) by pinnacle.co.nz (8.9.3/8.9.3) id NAA04650; Mon, 30 Aug 1999 13:07:37 +1200 (NZST) Date: Mon, 30 Aug 1999 13:07:37 +1200 (NZST) From: Jonathan Chen To: TrouBle Cc: "freebsd-questions@freebsd.org" Subject: Re: pw problems In-Reply-To: <37C6CB77.6C1EA8C8@hackfurby.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 27 Aug 1999, TrouBle wrote: > OK here i say again...... how can i get pw to run non-root and actually > update a /etc/master.passwd file, and the pwd.db without running it > setuid ??? > > i have a web based perl script that requires the call of pw to make the > changes to the neccessary master.passwd file and then update the > database, yet pw and pwd_mkdb require setuid 0 , these are for chrooted > file systems, called from a cgi under apache, running as nobody. apache > will not let me setuid to call pw from the cgi scripts... is there a way > around this and if so how ??? Will `sudo' not work for you? Jonathan Chen ---------------------------------------------------------------------- When you want to test the depth of a stream, don't use both feet. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message