Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving user accounts from one server to another

Status
Not open for further replies.

Sirmarsh

Technical User
Jun 11, 2004
10
US
What is the best way to move existing user accounts to a newly built server, without re-adding them one by one? Is there a doc on this somewhere?


thanks in advance guys

Sirmarsh
 
If your user accounts are in a separate partition and all in one place like /export/home you can use ufsdump on the partition. If your user accounts are not in a separate partition you can use tar -cfp to a tape. The p option will keep the owner/group privileges when you extract the tar file on your new server.
 
May not be the best option, but works, nice thing even it keep the passwd intact.

upload the /etc/passwd, /etc/group & /etc/shadow files & edit these to keep only the users,groups you want to add.
Concatenate these edited files to respective files on the new system. then create home dir thru a script or manually.

-sbsaikia
 
use NIS+ and shared home-dirs

don't forget, RTFMP
:) guggach
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top