Operating System - HP-UX
1751970 Members
4671 Online
108783 Solutions
New Discussion юеВ

Re: How to migrate (copy or move) the user ids and their home folders from HP-UX 11i v1 to 11i v3

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

Re: How to migrate (copy or move) the user ids and their home folders from HP-UX 11i v1 to 11i v3

Hi Jupinder Bedi,

If i use this below given command.

scp -rp /home/$i server2:/home/

The users' home directories are copied with owner permission of "root:sys"

Ex:

drwx------ 2 root sys 96 Jan 22 2009 yjiang


How to copy the home directories with owner permissions intact?
James R. Ferguson
Acclaimed Contributor

Re: How to migrate (copy or move) the user ids and their home folders from HP-UX 11i v1 to 11i v3

Hi (again):

> 11.11 is legacy password structure. ... want to retain the users password.

I think the easiest approach would be to *convert* your 11.11 server to use a shadow implementation. Then copy-and-paste the relevant information from the 11.11 '/etc/shadow' to the 11.31 one along with the corresponding data for '/etc/passwd'.

You can upgrade to a shadow password at 11.11 with:

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=ShadowPassword

Regards!

...JRF...
Steven Schweda
Honored Contributor

Re: How to migrate (copy or move) the user ids and their home folders from HP-UX 11i v1 to 11i v3

> How to copy the home directories with owner
> permissions intact?

I'd try "tar", as has already been suggested.

> A Forum search for keywords like, say,
> tar pipeline
> should find examples [...]

Still true.


> [...] please give step by step instructions.

For free, you can reasonably expect advice,
and you can also reasonably expect to do some
reading and learning. And even some
thinking. If you want someone else to do the
(your) whole job for you, then you might
reasonably expect to send money. But that's
only my own, personal attitude. You may find
others here (or elsewhere) who will gladly do
your job for you for the sheer joy of solving
the (your) problem(s). Many things are
possible.
Gordon Sjodin
Frequent Advisor

Re: How to migrate (copy or move) the user ids and their home folders from HP-UX 11i v1 to 11i v3

In the past I have built a script using modified data from the old password file as input and using the adduser command. This would at least put a few checks in place. Modifing the password file for a new user can cause problems.