- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to migrate (copy or move) the user ids and...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2010 06:24 AM
тАО01-19-2010 06:24 AM
I am new to hpux.
I need to migrate (copy or move or using any other method) the user ids and their home folders from HP-UX 11i v1 to 11i v3.
Actually we are having almost 1000 user ids and their home folder in HP-UX 11i v1. now we have built new HP-UX 11i v3 server, we are going to migrate the application running in older version to newer version, so we have to migrate the user ids and their home folders also.
How to do this, please give step by step instructions.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2010 06:35 AM
тАО01-19-2010 06:35 AM
SolutionTech Mahindra
Data Canter Tubli Bahrain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2010 06:36 AM
тАО01-19-2010 06:36 AM
Re: How to migrate (copy or move) the user ids and their home folders from HP-UX 11i v1 to 11i v3
scp /etc/passwd server2:/etc/passwd
scp /etc/shadow server2:/etc/shadow
Than copy the all the user names in one file ( file1 )like below
user1
user2
user3
and so on
than run the following script and copy all the home directories of all the users to another server . Let say home directory in 11i is /home/username
for i in `cat file1`
do
scp -rp /home/$i server2:/home/
done
and if it is trusted system than you also need to do the /tcb/auth/files directory by using the above script and there is no need to copy the shadow file .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2010 06:38 AM
тАО01-19-2010 06:38 AM
Re: How to migrate (copy or move) the user ids and their home folders from HP-UX 11i v1 to 11i v3
If so, from serer2:
rcp server1:/etc/passwd /etc/passwd
cd /net/server1/home
find . -print |cpio -pdumxl /home
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2010 06:42 AM
тАО01-19-2010 06:42 AM
Re: How to migrate (copy or move) the user ids and their home folders from HP-UX 11i v1 to 11i v3
First, I would not blindly copy the 'passwd' file (or '/etc/shadow') from one server to the other. You want to preserve at least the "system" account structure on the new server.
You don't say whether or not your 11.11 box is trusted; uses a shadow implementation; or is the simple, legacy 'passwd' structure.
Do you care about retaining user passwords?
Answers to some of the above questions will better dictate your choices and their relative ease.
Insofar as the '/home' directories, you can create a 'tar' archive of these on the old server to populate the new one.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2010 06:46 AM
тАО01-19-2010 06:46 AM
Re: How to migrate (copy or move) the user ids and their home folders from HP-UX 11i v1 to 11i v3
This depends on whether or not the system is trusted or not.
Not trusted:
scp /etc/passwd /etc/group newsystem:/tmp
Edit the files with vi or your editor choice. Take out the root and system users which should already be present on the new system.
cat /tmp/passwd >> /etc/passwd
cat /tmp/group >> /etc/group
If you are trusted tar up and move over the /tcb files. You should manually delete system users such as root before tar xvf the file back to /tcb
As far as the /home file systems, that also depends.
If located on NFS, no need to do anything accept configure automounter or autofs.
If local,
on old system:
cd /home
tar cvf /tmp/home.tar *
Locate it where there is space /tmp is an example.
scp the file to the new system and tar xvf
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2010 06:50 AM
тАО01-19-2010 06:50 AM
Re: How to migrate (copy or move) the user ids and their home folders from HP-UX 11i v1 to 11i v3
So instead of copying the old password file over, you should make a copy of it somehwere else, clean it up from the old system accounts and append it to the new password file.
Copying the home directories is straight forward. I would verify if the "-p" option of scp also preserves the user and group ownership.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2010 07:01 AM
тАО01-19-2010 07:01 AM
Re: How to migrate (copy or move) the user ids and their home folders from HP-UX 11i v1 to 11i v3
A Forum search for keywords like, say,
tar pipeline
should find examples showing how to obviate
the (potentially very large) "/tmp/home.tar"
file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2010 07:37 AM
тАО01-19-2010 07:37 AM
Re: How to migrate (copy or move) the user ids and their home folders from HP-UX 11i v1 to 11i v3
It would be better that you create the groups before you do any copy as the home directory may have different permission for different groups. To apply the same setting, you should copy the files/dir with -p option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2010 11:17 AM
тАО01-19-2010 11:17 AM
Re: How to migrate (copy or move) the user ids and their home folders from HP-UX 11i v1 to 11i v3
---You don't say whether or not your 11.11 box is trusted; uses a shadow implementation; or is the simple, legacy 'passwd' structure.----
11.11 is legacy password structure.
----Do you care about retaining user passwords?-----
I want to retain the users password.