From owner-freebsd-questions Mon Jan 21 12:43:31 2002 Delivered-To: freebsd-questions@freebsd.org Received: from shumai.marcuscom.com (rdu57-28-046.nc.rr.com [66.57.28.46]) by hub.freebsd.org (Postfix) with ESMTP id AE47B37B404 for ; Mon, 21 Jan 2002 12:43:27 -0800 (PST) Received: from localhost (marcus@localhost) by shumai.marcuscom.com (8.11.6/8.11.6) with ESMTP id g0LKhcZ71187; Mon, 21 Jan 2002 15:43:38 -0500 (EST) (envelope-from marcus@marcuscom.com) X-Authentication-Warning: shumai.marcuscom.com: marcus owned process doing -bs Date: Mon, 21 Jan 2002 15:43:38 -0500 (EST) From: Joe Clarke To: Joe & Fhe Barbish Cc: FBSD Questions Subject: Re: pw command ? In-Reply-To: Message-ID: <20020121154054.K56403-100000@shumai.marcuscom.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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 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