From owner-freebsd-questions Sat Sep 14 5:36:23 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 7D10337B400 for ; Sat, 14 Sep 2002 05:36:21 -0700 (PDT) Received: from pooh.ASARian.org (pooh.ASARian.org [216.21.171.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 667EC43E6E for ; Sat, 14 Sep 2002 05:36:20 -0700 (PDT) (envelope-from fuzzy@pooh.ASARian.org) Received: from localhost (fuzzy@localhost.ASARian.org [127.0.0.1]) by pooh.ASARian.org (8.11.6/8.11.6) with ESMTP id g8ECUfs65577; Sat, 14 Sep 2002 08:30:45 -0400 (EDT) (envelope-from fuzzy@pooh.ASARian.org) Date: Sat, 14 Sep 2002 08:30:41 -0400 (EDT) From: Fuzzy To: Masood Ahmad Shah Cc: freebsd-questions@FreeBSD.ORG Subject: Re: user creation in FreeBSD In-Reply-To: <20020914055508.35111.qmail@mail.com> Message-ID: X-No-Archive: Yes Organization: ASARian Inc. 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 Sat, 14 Sep 2002, Masood Ahmad Shah wrote: > sir > I'm running Linux and freebsd both I want to creat user through script > like i can create in linux > /usr/sbin/useradd -g 45 mooshu27 > /usr/sbin/useradd -g 45 new when I converted from linux to freebsd I copied the passwd file from linux and extracted the userids and their encrypted passwords. I ran pw(8) to recreate them as freebsd users on the new system. pw(8) creates the userid then chpass(8) can update its password with the original encrypted password. look at man pages for pw and chpass, lots of options. fuz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message