From owner-freebsd-questions Thu Sep 19 7: 6:58 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 990EC37B401 for ; Thu, 19 Sep 2002 07:06:57 -0700 (PDT) Received: from pgh.nepinc.com (pgh.nepinc.com [66.207.129.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id D42FB43E65 for ; Thu, 19 Sep 2002 07:06:56 -0700 (PDT) (envelope-from jimd@nepinc.com) Received: from jimslaptop.int (jimslaptop.int [192.100.100.107]) by pgh.nepinc.com (8.11.4/8.11.3) with ESMTP id g8JE6rc38332; Thu, 19 Sep 2002 10:06:53 -0400 (EDT) (envelope-from jimd@nepinc.com) Content-Type: text/plain; charset="iso-8859-1" From: Jim Durham Reply-To: jimd@nepinc.com Organization: NEP Supershooters To: Bsd Neophyte , freebsd-questions@FreeBSD.ORG Subject: Re: what is the freebsd version for "useradd -M"? Date: Thu, 19 Sep 2002 10:06:50 -0400 User-Agent: KMail/1.4.2 References: <20020918225245.13281.qmail@web20107.mail.yahoo.com> In-Reply-To: <20020918225245.13281.qmail@web20107.mail.yahoo.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200209191006.50741.jimd@nepinc.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wednesday 18 September 2002 06:52 pm, Bsd Neophyte wrote: > --- Jim Durham wrote: > > 'pw' has different arguments based on the first argument. If you say > > 'pw useradd' then "-M" is not valid. You'll see this if you carefully > > read the man page. > > i have, this is why i noted that there was no "-M" option for the > "useradd" argument under "pw" > > apparently, the "-M" under vanilla "useradd" indicates that a home > directory is not to be created. i was not, and still am not sure if th= ere > was a specific argument that allows for this. from the looks if it i > guess there isn't. > Hmmm... I just looked at my script to create users here and the argument -m is used. Experimenting shows that -m causes a home directory to be created, whereas the lack of -m causes the user to be added but no home directory created. The current man page for 'pw' does not show -m as an arg for 'pw useradd'. This is apparently wrong. It works as described below under the '-m' arg description with 'pw useradd'. -Jim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message