From owner-freebsd-questions Wed Sep 18 7:55:41 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 EBCC637B401 for ; Wed, 18 Sep 2002 07:55:39 -0700 (PDT) Received: from sub21-156.member.dsl-only.net (sub21-156.member.dsl-only.net [63.105.21.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E42243E81 for ; Wed, 18 Sep 2002 07:55:39 -0700 (PDT) (envelope-from nkinkade@dsl-only.net) Received: from sub21-156.member.dsl-only.net (freebsd.localhost.localdomain [127.0.0.1]) by sub21-156.member.dsl-only.net (8.12.5/8.12.4) with SMTP id g8IF1O64057565 for ; Wed, 18 Sep 2002 08:01:25 -0700 (PDT) (envelope-from nkinkade@dsl-only.net) Date: Wed, 18 Sep 2002 08:01:19 -0700 From: Nathan Kinkade To: freebsd-questions@FreeBSD.ORG Subject: Re: what is the freebsd version for "useradd -M"? Message-Id: <20020918080119.1fecc8e4.nkinkade@dsl-only.net> In-Reply-To: <20020918090513.GA20911@hades.hell.gr> References: <20020917232551.10809.qmail@web20104.mail.yahoo.com> <20020918090513.GA20911@hades.hell.gr> X-Mailer: Sylpheed version 0.7.8claws (GTK+ 1.2.10; i386-portbld-freebsd4.6) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Wed, 18 Sep 2002 12:05:14 +0300 Giorgos Keramidas wrote: > 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. What are the drawbacks of using the `adduser -s` command? Above, you say, "There is no useradd command in FreeBSD." Yet you don't mention the similar, but transposed, `adduser` command. I've always used the `adduser -s` command. Should I not be using this utility? Thanks, Nathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message