From owner-freebsd-questions Tue Sep 3 11:11: 2 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 6848937B400 for ; Tue, 3 Sep 2002 11:10:57 -0700 (PDT) Received: from hotmail.com (oe62.pav2.hotmail.com [64.4.36.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C0BA43E3B for ; Tue, 3 Sep 2002 11:10:57 -0700 (PDT) (envelope-from unixtools@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 3 Sep 2002 11:10:56 -0700 X-Originating-IP: [202.41.224.36] From: "Unix Tools" To: "Masood Ahmad Shah" , References: <20020903072528.49051.qmail@mail.com> Subject: Re: changing linux /etc/passwd to freebsd /etc/passwd Date: Tue, 3 Sep 2002 11:55:17 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 03 Sep 2002 18:10:56.0960 (UTC) FILETIME=[3FFCB400:01C25375] 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 Hi, 1) First on the linux box run teh command pwunconv to convert the shadow password file into a raw format (Refer man pwunconv). 2) Take out the account that exists in the /etc/master.passwd file on freebsd. 3) Copy the passwd linus file on freebsd and call it linux. 4) awk -F: '{print $1":"$2":"$3":"$4"::::"$5":"$6":"$7}' < linux> master.passwd (The < > around linux is necessary). This will convert your Linux password file over to FreeBSD format, now copy the new master.passwd file to /etc 5) cp master.passwd /etc/ 6) Now update the database - /usr/sbin/pwd_mkdb -p /etc/master.passwd Thats it. Whatever you do take a backup of master.passwd before you start. ----- Original Message ----- From: "Masood Ahmad Shah" To: Sent: Tuesday, September 03, 2002 12:55 PM Subject: changing linux /etc/passwd to freebsd /etc/passwd > Hello my dear users, > > I'm running sendmail on Linux wiht 22000 users now I want to convert my Linux /etc/passwd to FreeBSD /etc/passwd. > tell me how can i do that. is there any special format or my Linux /etc/passwd will work as it working in Linux with FreeBSD.] > Please reply me if you know.. > > Regards > Masood Ahmad Shah > -- > __________________________________________________________ > Sign-up for your own FREE Personalized E-mail at Mail.com > http://www.mail.com/?sr=signup > > > 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