Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Sep 2004 15:55:35 -0000
From:      Dan Nelson <dnelson@allantgroup.com>
To:        dwbear75@gmail.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: batchmode adding user accounts
Message-ID:  <20030424061811.GI50895@dan.emsphone.com>
In-Reply-To: <20030423222836.A28992@asu.edu>
References:  <20030423222836.A28992@asu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Apr 23), David Bear said:
> I have migrated a linux box to freebsd.  I would like to add all the
> user accounts from linux to bsd but the format of /etc/passwd vs
> master.password is problematic.
> 
> what I would like to try is pull out the user id from my old passwd
> file and somehow batchmode add them to my new system.  I can use awk
> to get the old ids.  But is there utility that will accept a list of
> user ids to add to master.password?

The passwd(5) manpage has an awk script at the bottom that will convert
regular passwd to master.passwd format.

-- 
	Dan Nelson
	dnelson@allantgroup.com



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