Date: Sat, 11 Nov 1995 20:32:28 +0100 (MET) From: J Wunsch <j@uriah.heep.sax.de> To: chris@rocco.nebula.org (Chris Gann) Cc: hackers@freebsd.org Subject: Re: Converting a Linux passwd file to FreeBSD Message-ID: <199511111932.UAA12448@uriah.heep.sax.de> In-Reply-To: <Pine.LNX.3.91.951110190849.32003A-100000@rocco.nebula.org> from "Chris Gann" at Nov 10, 95 07:13:19 pm
next in thread | previous in thread | raw e-mail | index | archive | help
As Chris Gann wrote: > > I > would like to convert nearly 4000 passwd entries in Linux (non-shadow) to > FreeBSD (shadowed) using the DES package, or whatever would be simplest. Provided the Linux passwd entries are DES-encoded: perl -ne '@f=split(/:/);printf "%s:%s:%s:%s::0:0:%s:%s:%s",\ $f[0],$f[1],$f[2],$f[3],$f[4],$f[5],$f[6];' \ /etc/oldpasswd > /etc/pass.tmp pwd_mkdb -p /etc/pass.tmp -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511111932.UAA12448>