Date: Fri, 28 Jul 2000 12:51:43 +0200 From: Matthew West <mwest@uct.ac.za> To: Gabriel Ambuehl <gabriel_ambuehl@buz.ch> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Migrating from Linux to FreeBSD... Message-ID: <20000728125143.A20091@apotheosis.org.za> In-Reply-To: <99614395654.20000727204153@buz.ch>; from "Gabriel Ambuehl" on Thu, Jul 27, 2000 at 08:41:53PM References: <99614395654.20000727204153@buz.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 27, 2000 at 08:41:53PM +0200, Gabriel Ambuehl wrote: > However, I definitively need to preserve the passwords of the non > priviledged users. So now my question is: may I just merge /etc/passwd with > /etc/shadow and generate a new master.passwd for the FreeBSD setup Unshadow the password file on the Linux machine (the shadow utility suite has an "unshadow" command I think), and then do: cat linux_passwd | awk -F: '{printf("%s:%s:%s:%s::0:0:%s:%s:%s\n",$1,$2,$3,$4,$5,$6,$7); }' > new-master.passwd (watch the line breaks) then merge "new-master.passwd" into the existing /etc/master.passwd on the FreeBSD machine, and run "pwd_mkdb /etc/master.passwd" > (not sure about the involved encryption issues)? What encryption method is your SuSe installation using? I've noticed not all Linux distributions are using only DES. If it's using MD5 (unlikely), you won't need to worry about encryption issues. If it's using DES (more than likely), you'll need to install the crypto distribution when you do your FreeBSD installation. Take a look at http://www.freebsd.org/handbook/crypt.html > What about diskquotas? May I copy quota.users and quota.groups over or > should I better rebuild them? You're probably safer rebuilding them. Do a dump of repquota and then feed it into something like setquota. -- mwest@uct.ac.za 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?20000728125143.A20091>