copying users and groups to new machine

I building a new BSD Server.
my old Server has 50 users that I want to copy.

There are three files you need to copy from the old to the new server.
/etc/passwd
/etc/group
/etc/master.passwd

copy to the new server
than run on the new server
pwd_mkdb -p /etc/master.passwd

does it keep the User id and group id?
 
It does if you copied those files, yes. The UID and GID is stored in those.
 
If you copied those files make sure master.passwd only has 600 permissions. Both passwd and group can have 644 permissions.
 
Back
Top