Date: Tue, 3 Sep 2002 11:55:17 +0530 From: "Unix Tools" <unixtools@hotmail.com> To: "Masood Ahmad Shah" <jahil@mail.com>, <freebsd-questions@FreeBSD.ORG> Subject: Re: changing linux /etc/passwd to freebsd /etc/passwd Message-ID: <OE62IzCxCup1XhQN4KA00009240@hotmail.com> References: <20020903072528.49051.qmail@mail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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" <jahil@mail.com> To: <freebsd-questions@FreeBSD.ORG> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OE62IzCxCup1XhQN4KA00009240>