batchmode adding user accounts

Jonathan jonathan at sirtis.org.uk
Thu Apr 24 08:55:50 PDT 2003


-----Original Message-----
From: owner-freebsd-questions at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org] On Behalf Of David Bear
Sent: 24 April 2003 06:29
To: freebsd-questions at freebsd.org
Subject: batchmode adding user accounts


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?

-----End of Original Message-----

I used http://www.openbsd.org/faq/faq9.html#passwd to migrate. Works
great.

Another thing that's useful for merging existing servers together -
Linux provides "usermod" which will allow you to change the UID/GID for
a user to save clashes.

Regards,

Jonathan



More information about the freebsd-questions mailing list