From owner-freebsd-questions Thu Jul 23 10:47:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA25899 for freebsd-questions-outgoing; Thu, 23 Jul 1998 10:47:19 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from java.dpcsys.com (java.dpcsys.com [206.16.184.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA25891 for ; Thu, 23 Jul 1998 10:47:17 -0700 (PDT) (envelope-from dan@dpcsys.com) Received: from localhost (dan@localhost) by java.dpcsys.com (8.8.7/8.8.2) with SMTP id KAA05863; Thu, 23 Jul 1998 10:47:53 -0700 (PDT) Date: Thu, 23 Jul 1998 10:47:53 -0700 (PDT) From: Dan Busarow To: PuFFDaDDz@aol.com cc: freebsd-questions@FreeBSD.ORG Subject: Re: please help--need automatic adduser In-Reply-To: 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 Thu, 23 Jul 1998 PuFFDaDDz@aol.com wrote: > i want to make it so it adds user > i have a sign up and everything > what should i add to my perl script to add user under my sys? adduser has a batch mode (non interactive) See the man pages for arguments and their order. It needs to be run as root so you will probably want to have your signup create a file in say /usr/local/newusers and have a cron job look there periodically for accounts to add. Make newusers mode 0700 owned by nobody (your web server user). Dan -- Dan Busarow 949 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message