From owner-freebsd-questions Fri Apr 4 10:51:47 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA25841 for questions-outgoing; Fri, 4 Apr 1997 10:51:47 -0800 (PST) Received: from cedb.dpcsys.com (cedb.DPCSYS.com [209.25.4.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA25833 for ; Fri, 4 Apr 1997 10:51:42 -0800 (PST) Received: from localhost (dan@localhost) by cedb.dpcsys.com (8.8.5/8.8.2) with SMTP id SAA24932; Fri, 4 Apr 1997 18:50:56 GMT Date: Fri, 4 Apr 1997 10:50:56 -0800 (PST) From: Dan Busarow To: Antonio Nati cc: freebsd-questions@FreeBSD.ORG Subject: Re: adduser using a cgi-bin In-Reply-To: <199704041837.UAA00653@cisco.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, 4 Apr 1997, Antonio Nati wrote: > 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 [ ... ] > My develop stand-alone system runs HTTPD as root, so I don't see any > privilege problems. Which http server are you running? Are you sure it runs as root and doesn't revert to a non-priviledged user? Are you sure you want an http server running as root? What we do is have the form create a file in /usr/local/newusers with all the required info and have a cron job running every 10 minutes that checks for files in this directory and creates the users from them. To keep from storing a cleartext password, crypt it yourself in the cgi and then sed /etc/master.passwd and run pwd_mkdb after adduser is done. Dan -- Dan Busarow 714 443 4172 DPC Systems / Beach.Net dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82