Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Sep 2002 08:01:19 -0700
From:      Nathan Kinkade <nkinkade@dsl-only.net>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 18 Sep 2002 12:05:14 +0300
Giorgos Keramidas <keramida@ceid.upatras.gr> wrote:

> 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.

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




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