From owner-freebsd-questions Fri Apr 4 09:38:57 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA21367 for questions-outgoing; Fri, 4 Apr 1997 09:38:57 -0800 (PST) Received: from cisco.it ([194.183.8.2]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA21353 for ; Fri, 4 Apr 1997 09:38:41 -0800 (PST) Received: from pentium-120 (ppp-03.cisco.it [194.183.8.32]) by cisco.it (8.7.5/8.7.3) with SMTP id UAA00653 for ; Fri, 4 Apr 1997 20:37:10 +0200 (MET DST) Date: Fri, 4 Apr 1997 20:37:10 +0200 (MET DST) Message-Id: <199704041837.UAA00653@cisco.it> X-Sender: cp011@posta.cisco.it (Unverified) X-Mailer: Windows Eudora Light Version 1.5.2 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: freebsd-questions@FreeBSD.ORG From: Antonio Nati Subject: adduser using a cgi-bin Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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? Tonino