Operating System - HP-UX
1834639 Members
2632 Online
110069 Solutions
New Discussion

Re: Migrating Users across trusted HP systems

 
Karthik_2
Regular Advisor

Migrating Users across trusted HP systems

I have a requirement to migrate users and their home directories from a 10.20 trusted system to a 11.00 64 bit trusted system.
Sure some of might have come across this .
Any thoughts

ta
Karthik
Its ALL in the MATRIX
5 REPLIES 5
Vincente Fernandes
Valued Contributor

Re: Migrating Users across trusted HP systems

You have to do atleast a min of 2 steps.
1. To migrate users you can either recreate them from scratch if there a few no of users and restore their home directories
a. Write a small shell script to read "passwd" file and generate a text file with the necessary user information.
b. Ftp/backup the text file and copy/restore the same on 11.00. Write another shell script to read the file and create the users on 11.00. Use "useradd.sam" which is found in "/usr/sam/lbin" for user creation through script and pass the necessary parameters to it.
Note: there is no man/help for useradd.sam, so run the command with full path and it will give you help on the usage/syntax.
c. Set a temporary password to all users and force them to change during initial signon.

2. Backup the "/tcb"(proctectd password database) and users home directory on 10.20 and restore on 11.00. I am not sure whether the contents of each user entry is same in 10.20 and 11.00. You need to manually update or append the "passwd" with all the user information.

3. Make sure you create the users group.
I recommend using the 1st method/step.
Vincente Fernandes
Valued Contributor

Re: Migrating Users across trusted HP systems

useradd.sam, usermod.sam, userdel.sam are one of the easiest ways i have found so far while managing users without having the hassles of using sam.
Dan Hetzel
Honored Contributor

Re: Migrating Users across trusted HP systems

Hi,

/usr/sam/lbin/useradd.sam (linked to /usr/sbin/useradd) will allow you to script the user creation on your trusted destination system, without using sam.

Check 'man useradd' for the exact syntax.

The programs 'usermod' and 'userdel' could prove useful as well.

Once the users are created, you can simply copy the content of the home directories across systems. Make sure the destination system has the adequate entry in /.rhosts if you are using any of the 'r commands' (rcp, remsh)

Best regards,

Dan

Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Karthik_2
Regular Advisor

Re: Migrating Users across trusted HP systems

Now i have a fair idea of how to go about.I have around 50 users to migrate can i preserve their old passwords aswell or else i would like to have same password for all of them and force them to change it during the next login .

Karthik
Its ALL in the MATRIX
Madhu Sudhan_1
Respected Contributor

Re: Migrating Users across trusted HP systems

Blank passowrds and passwords less than 6 characters are not allowed in trusted systems. If you are migrating the useres, ensure that they all have passwords with minimum of 8 characters. Otherwise they will not be able to login in the trusted system when you migrate with their old passowrds.

...Madhu
Think Positive