Operating System - HP-UX
1833189 Members
2795 Online
110051 Solutions
New Discussion

Migration for user account

 
Wendy_9
Frequent Advisor

Migration for user account

Hi all,

I want to migrate the user account from one machine to another. I know that the directory under /home, /etc/passwd and /etc/group need to copy from one machine to another. What other things else also need to migrate?

Thanks

Regards,
Wendy
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: Migration for user account

Hi:

If your system is a non-trusted system then you can copy the passwd and group files to another system; if it is a trusted systems then things are a bit different. Your best bet would be to convert to non-trusted, copy the files, and then convert your new system to trusted via the tsconvert command or simply do it from SAM.

However, if all you want to do is move a user, then I would simply add the new user on the new box along with his group (if necessary). I would then copy his home directory and disable his login on the old box.

Unless you search for all a user's files with find, it is normally better to leave the disabled accounts on the old box so that ownership information is preserved otherwise files owned by user 'tom' will simply show up as owned by '456' (or whatever Tom's UID is).
If it ain't broke, I can fix that.
Domenico_5
Respected Contributor

Re: Migration for user account

hi,

In add you can copy the .profile files in each home directory if it was customized.

Don't copy the .sh_history file, because on the other machine is possible that you can't login on the user account.

bye


pap
Respected Contributor

Re: Migration for user account

Hi you are on the track.

You need to copy /etc/passwd, /etc/group and the users home directories. I am assuming your system is untrusted.

For trusted system you have to follow Clay's instructions. That's the best way to migrate user's on trusted systems.

Thanks,
-Piyush.
"Winners don't do different things , they do things differently"
pap
Respected Contributor

Re: Migration for user account

Hi you are on the right track.

You need to copy /etc/passwd, /etc/group and the users home directories. I am assuming your system is untrusted.

For trusted system you have to follow Clay's instructions. That's the best way to migrate user's on trusted systems.

Thanks,
-Piyush.
"Winners don't do different things , they do things differently"
Michael Tully
Honored Contributor

Re: Migration for user account

Hi,

Clay's suggestion gets my vote, however I want you to be aware of one hiccup, that you will face. Everytime you trust a system *all* passwords are then reset and all users will have to change their passwords on the first atempted login. I'm sure that you want to any mutinies where possible.

-Michael
Anyone for a Mutiny ?