batchmode adding user accounts

Jonathan Chen jonc at chen.org.nz
Wed Apr 23 23:15:06 PDT 2003


On Wed, Apr 23, 2003 at 10:28:36PM -0700, David Bear wrote:
> 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?

pw(8) is your friend.
-- 
Jonathan Chen <jonc at chen.org.nz>
----------------------------------------------------------------------
                         Power corrupts, Absolute Power is pretty neat


More information about the freebsd-questions mailing list