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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy /home and users

Status
Not open for further replies.

holdahl

IS-IT--Management
Apr 4, 2006
213
0
0
NO
To copy /home and users from one aix server to another, do you have to do something else than mount /home on the other server (then copy the content to local /home) and copy /etc/password ?

-holdahl
 
if you're moving to a brand new system with no users created yet you can simply move the following files to the new box from the old box (please create backup files at the destination before the copy):

/etc/passwd
/etc/group
/etc/security/passwd
/etc/security/group

Then backup their home directories and restore them at the new box.
Using SSH it can be this easy:



Code:
tar cvf - /home/user1 | ssh newserver " ( cd /home/user1 ; tar xvf - ) "
Also don't forget their cronjobs. These are located in /var/spool/cron/crontabs on AIX.
 
Another thing to do once you have moved the files over is run the following commands to clear up any discrepancies:

usrck -t ALL
pwdck -t ALL
grpck -t ALL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top