From owner-freebsd-questions Fri Apr 4 10:14:11 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA23529 for questions-outgoing; Fri, 4 Apr 1997 10:14:11 -0800 (PST) Received: from okeefe.bestweb.net (okeefe.bestweb.net [208.197.0.5]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA23519 for ; Fri, 4 Apr 1997 10:14:08 -0800 (PST) Received: from [208.197.0.27] (vermeer.bestweb.net [208.197.0.27]) by okeefe.bestweb.net (8.8.5/8.8.5) with ESMTP id NAA15407; Fri, 4 Apr 1997 13:13:59 -0500 (EST) X-Sender: jordyn@pop.bestweb.net Message-Id: In-Reply-To: <199704041837.UAA00653@cisco.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Fri, 4 Apr 1997 13:11:53 -0500 To: Antonio Nati , freebsd-questions@freebsd.org From: "Jordyn A. Buchanan" Subject: Re: adduser using a cgi-bin Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk At 8:37 PM +0200 4/4/97, Antonio Nati wrote: >I'm trying to automate the creation of a new user using some HTML forms. > >At the end of the cicle I use a cgi program that calls system(), giving >"adduser -batch ..." as parameter, but it doesn't work properly (the same >command by hand works fine). It may tell me if an user is already existant >but cannot add another one. > >My develop stand-alone system runs HTTPD as root, so I don't see any >privilege problems. > >May that perl procedure be executed under system (within a cgi program)? >Any hint or suggestion? I've written a perl script that adds users to our billing database and also to the password file using "adduser -batch..."--this seems to work fine so I imagine the same thing could be implemented via CGI without a problem. Sharing bits of the relevant code would help people make a much more useful answer, I think... Jordyn |----------------------------------------------------------------| |Jordyn A. Buchanan mailto:jordyn@bestweb.net | |Bestweb Corporation http://www.bestweb.net | |Senior System Administrator +1.914.271.4500 | |----------------------------------------------------------------|