Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2001 10:44:19 -0600
From:      Dan Nelson <dnelson@emsphone.com>
To:        dan kelley <djk121@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: converting a linux /etc/passwd to freebsd /etc/master.passwd
Message-ID:  <20010322104418.A4116@dan.emsphone.com>
In-Reply-To: <20010322164027.29414.qmail@web4304.mail.yahoo.com>; from "dan kelley" on Thu Mar 22 08:40:27 GMT 2001
References:  <20010322164027.29414.qmail@web4304.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Mar 22), dan kelley said:
> has anyone come across a relatively painless way to do this?
> 
> i have a large number of users that i need to migrate, and i'd rather
> not have to recreate the entries on the freebsd box by hand.

run pwunconv on the Linux end, copy it over to freebsd, run

awk < passwd.linux > /etc/master.passwd 'BEGIN { FS = ":"} { print $1 ":" $2 ":" $3 ":" $4 "::0:0:" $5 ":" $6 ":" $7 }'

run pwd_mkdb, and you should be set.

-- 
	Dan Nelson
	dnelson@emsphone.com

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?20010322104418.A4116>