1833476 Members
2964 Online
110052 Solutions
New Discussion

copying users and groups

 
Donald Thaler
Super Advisor

copying users and groups

What are the steps required to move the users and groups from one server to another (rp7400 to an hp rx 6600). The rx 6600 is brand new and as such has a minimum number of users and groups.
1 REPLY 1
Tim Nelson
Honored Contributor

Re: copying users and groups

One way is to copy /etc/passwd and /etc/group from serverA to serverB then either append the files or overwrite ( if overwrite you will loose both the files on serverb ).

You will also need the home directories.

If this system is trusted then also the /tcb directory.

I found it easyest to write a little script and tar up all the needed info. ftp the tar file and extract. This script also extracts only the users with IDs over a certain number and uses that list as input into the useradd command.

Many different ways to do this.