Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Apr 2004 14:47:25 +0200 (CEST)
From:      Konrad Heuer <kheuer2@gwdg.de>
To:        Brian Sheehan <brian.sheehan@ul.ie>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Migrating user accounts from linux to freebsd
Message-ID:  <20040408143808.H30924@gwdu60.gwdg.de>
In-Reply-To: <40753CC0.60104@ul.ie>
References:  <40753CC0.60104@ul.ie>

next in thread | previous in thread | raw e-mail | index | archive | help

On Thu, 8 Apr 2004, Brian Sheehan wrote:

> I've recently done a fresh installation of freebsd 4.9, and now I want
> to migrate the user accounts from a redhat 9 machine to the new freebsd
> machine, and hopefully keep logins and passwords unchanged. Is this
> possible?

It is possible, but you need to write a shell or perl script to combine
the user entries in the Linux files /etc/passwd and /etc/shadow to one
file having the FreeBSD /etc/master.passwd format. Then you will have to
append your file to /etc/master.passwd an to run pwd_mkdb to build the
data bases.

> Also, what would be the best way to go about moving the users' home
> directories from the linux box to the freebsd one?

I would NFS export the home directories on the Linux box and mount them on
your FreeBSD system. Then you can copy all the files with tar:

tar cCf /path/to/nfs/mount - . | tar xvpCf /path/to/new/home/dirs -

Best regards

Konrad Heuer (kheuer2@gwdg.de)  ____            ___  _______
GWDG                           / __/______ ___ / _ )/ __/ _ \
Am Fassberg                   / _// __/ -_) -_) _  |\ \/ // /
37077 Goettingen             /_/ /_/  \__/\__/____/___/____/
Germany



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040408143808.H30924>