batchmode adding user accounts

Dan Nelson dnelson at
Fri Sep 24 08:55:35 PDT 2004

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 at

More information about the freebsd-questions mailing list