- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- User account and password migration
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
Forums
Discussions
Discussions
Discussions
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
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-08-2002 08:39 PM
01-08-2002 08:39 PM
Just wondering whether the user account and password can be migrated from one HP machine to another?
Thanks for help,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2002 08:41 PM
01-08-2002 08:41 PM
Re: User account and password migration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2002 09:07 PM
01-08-2002 09:07 PM
SolutionIf the other system is a brand new HP machine, you don't have to worry about copying the individual accounts.
1. Copy /etc/passwd into /tmp on the first system.
2. Edit /tmp/passwd and remove all the default entries like root,sys,adm etc. Save the file. This has all the user entries.
3. Ftp this file to the other system. Append the file to /etc/passwd after taking a backup.
4. Repeat the above procedure for /etc/group.
5. Home directories are little bit tricky. This is the reason we don't create home directories in different locations. If everything is under /home or /users, then tar up the the root (/home or /users) directory and untar them in the other system.
If they are under different locations, then use awk to get the home directories and then tar them up.
Hope this helps.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2002 09:13 PM
01-08-2002 09:13 PM
Re: User account and password migration
If you can make use of .rhosts follow these steps
1.From box1# find /home | cpio -o | remsh newbox '(cd /; cpio -ivmud)'
2.box1# find /tcb/files/auth | cpio -o | remsh newbox '(cd /; cpio -ivmud)' (If you are trusted)
3. box1# rcp /etc/passwd newbox:/etc/passwd
4. box1# rcp /etc/group newbox:/etc/group
This would work only when you open remsh,rcp between two boxes. This can be done by .rhosts entry.
Make sure that you have a copy of password files and group files before doing this.
Also keep open couple root login session on both the servers. Incase if you loose password by any reason this session would help!!
Goodluck
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2002 09:31 PM
01-08-2002 09:31 PM
Re: User account and password migration
If you have a trusted system you will need to add the /tcb directory to the list of files/directories to be copied. Without this you will only have half of your user information.
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2002 09:32 PM
01-08-2002 09:32 PM
Re: User account and password migration
Yes, you can migrate the user account from one server to another server. Just simply copy the users account in /etc/passwd and paste to the other server's /etc/passwd and copy users' home directory to the other server and that's all.
eg.
grep XXXXX /etc/passwd > /tmp/account1
rcp /tmp/account1 node2:/tmp
In node2, cat /etc/passwd /tmp/account1 > /tmp/passwd
cp /tmp/passwd /etc/passwd
In node1, rcp related home directory to node2.
In node2, login XXXXX as usual.
Hope this helps.
Kenny.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2002 10:55 PM
01-08-2002 10:55 PM
Re: User account and password migration
In addition to all the directories and files mentioned above, don't forget to copy the following across to the new machine in a full migration:
1) user mail boxes
- /var/mail/*
2) at and cron jobs
- /var/spool/cron/atjobs
- /var/spool/cron/crontabs
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2002 11:23 PM
01-08-2002 11:23 PM
Re: User account and password migration
Thanks for your advices!! What if the source system is running tcb? And the users would like to retain their old password in the new system?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2002 11:28 PM
01-08-2002 11:28 PM
Re: User account and password migration
You can try to change /etc/passwd and /etc/group according to Sridhar Bhaskarla , while after this ,you needn't create or copy their home direcories if you use nfs on the new one machine.
Firstly, create /etc/exports ,add a line as :/home -anon=65534
/home is home directory of users
secondly, change /etc/rc.config.d/nfsconf file,
assurring NFS_SERVER=1
then reboot
thirdly, on client, just the new one machine, adding a line in /etc/auto_master
/home /etc/auto.home
the create /etc/auto.home as following:
/home -rw -intr server:/home
"server" is the hostname of original machine.
Best Regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2002 11:35 PM
01-08-2002 11:35 PM
Re: User account and password migration
Did you missed Uday S. Ankolekar's response? He has given you one method of copying /tcb over.
For my migrations, I usually just tar /tcb on the source system, scp (for security over rcp) them over to the new system and untar them.
Don't forget that /etc/passwd and /etc/group still needs to be copied over as well, also indicated by above responses.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2002 11:40 PM
01-08-2002 11:40 PM
Re: User account and password migration
To further clarify, files in /tcb/auth/files/X/XXXXX contains the encrypted passwords for each user account, thus copying /tcb over in a trusted system will migrate the passwords over.
Just a note. Before you copy the /tcb over to your new system, please tsconvert it to trusted first. Using sam will be more straightforward.
Hope this helps. Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2002 11:40 PM
01-08-2002 11:40 PM
Re: User account and password migration
To further clarify, files in /tcb/auth/files/X/XXXXX contains the encrypted passwords for each user account, thus copying /tcb over in a trusted system will migrate the passwords over.
Just a note. Before you copy the /tcb over to your new system, please tsconvert it to trusted first. Using sam will be more straightforward.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com