Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<  895 of 908 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 13028
Last update: 07-03-08
Issue:
How can I migrate users and group database with their home directories?
Resolution:

For example, To migrate users and group databases to another server with their home directories, please perform the operations as below:

  1. Backup and cp /etc/passwd to /etc/ of new server.
  2. Backup and cp /etc/group to /etc/ of new server.
  3. Backup and cp /etc/shadow to /etc/ of new server.
  4. Use tar command to archieve the contents of old server and unarchieve it on new server:
    # tar -czf home.tar.gz /home
    

    On the new server, please run:

    # tar -zxf home.tar.gz -C /
    

    The user directories will be migrated to the new server with the previous ownership/groupship settings and permission settings.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<   895  of  908  >>