From owner-freebsd-questions Thu Jun 1 9: 7:55 2000 Delivered-To: freebsd-questions@freebsd.org Received: from merlin.prod.itd.earthlink.net (merlin.prod.itd.earthlink.net [207.217.120.156]) by hub.freebsd.org (Postfix) with ESMTP id 0B69737B5DF for ; Thu, 1 Jun 2000 09:07:53 -0700 (PDT) (envelope-from eogren@earthlink.net) Received: from rod.darktech.org (ip83.cambridge2.ma.pub-ip.psi.net [38.32.112.83]) by merlin.prod.itd.earthlink.net (8.9.3/8.9.3) with ESMTP id JAA28490; Thu, 1 Jun 2000 09:07:51 -0700 (PDT) Received: (from eogren@localhost) by rod.darktech.org (8.10.1/8.10.1) id e51G98O04848; Thu, 1 Jun 2000 12:09:08 -0400 (EDT) Date: Thu, 1 Jun 2000 12:09:08 -0400 From: Eric Ogren To: Gabriel Ambuehl Cc: freebsd-questions@FreeBSD.org Subject: Re: Adding user / length of usernames... Message-ID: <20000601120908.A4824@earthlink.net> References: <12821979544.20000601172243@buz.ch> <39368683.C58B3C0E@brwn.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <39368683.C58B3C0E@brwn.org>; from willem@brwn.org on Thu, Jun 01, 2000 at 05:51:31PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gabriel Ambuehl wrote: > > Hello, > I've got some questions regarding adding users. If I try to start > adduser, it shows up an interactive interface for adding users. This > is nice for people who need it rarely or need to have different > configs all the time. I, OTOH, need to have it scripted as we > have to create almost identical accounts over and over (we use them as > login for the FTPd as well as for quota reasons) again. man adduser > shows switches but if I try to use > # adduser -shell no -home /home/web/a/test2_com/web/ test2_com > I end up with the interactive interface as well. What am I doing > wrong? (Linux' useradd did this without any problems but that one > hasn't got any interactive modes, AFAIK). > You should use pw instead of adduser. Running pw useradd test2_com -d /home/web/a/test2_com/web/ -s /nonexistent should work, and is noninteractive. > > And the second question: [question cut] Can't help you with this one, though. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message