Date: Fri, 4 Apr 1997 10:50:56 -0800 (PST) From: Dan Busarow <dan@dpcsys.com> To: Antonio Nati <A.Nati@cisco.it> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: adduser using a cgi-bin Message-ID: <Pine.UW2.3.95.970404104351.24407E-100000@cedb> In-Reply-To: <199704041837.UAA00653@cisco.it>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.UW2.3.95.970404104351.24407E-100000>