From owner-freebsd-questions Wed Sep 18 4:51:19 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 E010437B404 for ; Wed, 18 Sep 2002 04:51:17 -0700 (PDT) Received: from usenet.otenet.gr (usenet.otenet.gr [195.170.0.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id E54F543E3B for ; Wed, 18 Sep 2002 04:51:16 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by usenet.otenet.gr (8.12.4/8.12.4) with ESMTP id g8IBoj8J027312 for ; Wed, 18 Sep 2002 14:50:45 +0300 (EEST) Received: from hades.hell.gr (patr530-a202.otenet.gr [212.205.215.202]) by mailsrv.otenet.gr (8.12.4/8.12.4) with ESMTP id g8IBmpXd002615; Wed, 18 Sep 2002 14:49:08 +0300 (EEST) Received: (from keramida@localhost) by hades.hell.gr (8.11.6/8.11.6) id g8I95E424216; Wed, 18 Sep 2002 12:05:14 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 18 Sep 2002 12:05:14 +0300 From: Giorgos Keramidas To: Bsd Neophyte Cc: freebsd-questions@FreeBSD.ORG Subject: Re: what is the freebsd version for "useradd -M"? Message-ID: <20020918090513.GA20911@hades.hell.gr> References: <20020917232551.10809.qmail@web20104.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020917232551.10809.qmail@web20104.mail.yahoo.com> X-PGP-Fingerprint: C1EB 0653 DB8B A557 3829 00F9 D60F 941A 3186 03B6 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 2002-09-17 16:25, Bsd Neophyte wrote: > > i'm setting up samba on my FreeBSD box. the goal is to make it a PDC. > i'm following the directions from "Samba Unleased" by SAMS. > in the instructions, there's mention that each machine needs to have a > user account on the server. > it gives the following command to setup a machine account: > > useradd -c "Samba ODC fir MYDOMAIN' -M -s /bin/false -n PERSEUS$ There is no useradd command in FreeBSD. You probably want to use pw(8) for adding users, but then it's probably the -m option that you are supposed to use (to create the user's HOME directory too). The -m option of pw(8) has to be combined with a -d /home/dir option though, otherwise pw(8) won't know where to create the user's home directory. > i'm assuming i need to use "pw useradd". when i try i get an error. Quite probably, yes. In any case, the instructions of the book are apparently written with the Linux way of doing things in mind (I think useradd is a Linuxism, originating in the SysV roots of Linux). Try reading the manpage of pw(8) on FreeBSD and guessing which options you want to use, by reading the text of the Samba book and not the exact command line. - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message