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

SCO Unix 5.07 migration to SCO Unix 6 1

Status
Not open for further replies.

rnuss

MIS
Sep 21, 2006
1
US
How do you migrate users from a SCO Unix 5.07 server to a new SCO Unix 6 server?
 
This is the process I run. There may be better ways...

On the old system, create a copy of the existing /etc/passwd and /etc/shadow files.
From those files, remove all the "SYSTEM" accounts. Also remove any users which will not be migrated to the new system. When you are done, both files should contain the same number of lines.

Using one of those files as a guide, create a tarfile of the affected users' $HOME directories.

Copy that tarfile and the temporary passwd and shadow files to the new box.

Restore the $HOME tarfile. Since these are new users, you shouldn't be over-writing anything. If in doubt, check first.

Append the transferred passwd and shadow files to the existing entries in /etc: (note use of APPEND (>>) syntax!!!!)

# cat old.passwd >>/etc/passwd
# cat old.shadow >>/etc/shadow

Run the TCB utility to syncronize the protected password database:
# /tcb/bin/authck -p



"Proof that there is intelligent life in Oregon. Well, Life anyway.
 
I used the "ap" command (Account profile) - it's designed for copying users from one machine to another

On the old system:
# ap -dg > users
(the d option is for creating the file, g tells it to do groups too)
On the new system:
# ap -ro -f users
(r option for restoring the users, o is for overwrite so will alter any existing users to the same profile settings as the old system)

Very handy i found :)

James

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top