Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Sep 2002 12:05:14 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Bsd Neophyte <bsdneophyte@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: what is the freebsd version for "useradd -M"?
Message-ID:  <20020918090513.GA20911@hades.hell.gr>
In-Reply-To: <20020917232551.10809.qmail@web20104.mail.yahoo.com>
References:  <20020917232551.10809.qmail@web20104.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-09-17 16:25, Bsd Neophyte <bsdneophyte@yahoo.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020918090513.GA20911>