Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2002 15:43:38 -0500 (EST)
From:      Joe Clarke <marcus@marcuscom.com>
To:        Joe & Fhe Barbish <barbish@a1poweruser.com>
Cc:        FBSD Questions <questions@FreeBSD.ORG>
Subject:   Re: pw command ?
Message-ID:  <20020121154054.K56403-100000@shumai.marcuscom.com>
In-Reply-To: <LPBBIGIAAKKEOEJOLEGOMEEHCNAA.barbish@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Mon, 21 Jan 2002, Joe & Fhe Barbish wrote:

> I have tried   pw adduser tom -g network -G wheel
> Using pw command how do I get a password entered with
> the account id and create and load the home directory
> with the necessary startup files?

You can use the -h option to read the password from a file descriptor if
you're planning on scripting pw (e.g. -h 0 to read from stdin).  You can
also specify the -k <dir> option to tell pw what skeleton directory you
want from which startup files will be copied.  Then, by specifying the -m
option, you tell pw to create the user's home directory.  This will also
populate the new home directory with the skeleton files in the directory
specified by -k.

This is all in the man page on pw.

Joe

>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>
>


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?20020121154054.K56403-100000>