- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Preserves user password during 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
03-15-2006 09:01 PM
03-15-2006 09:01 PM
Preserves user password during migration
I hv created an user account with login name as ncs in server A. Actually I want to migrate this user id from server B to server A. In order to preserve the user password at server B, I hv copied the ncs file from server B /tcb/files/auth/n to server A. I don't copy the entry from /etc/passwd from server B to server A. I able to login but the user id(UID) is diff between /etc/passwd & /tcb/files/auth/n
Below is the diff for /tcb/files/auth/n/ncs between 2 servers
server A:
ncs:u_name=ncs:u_id#129:\
:u_pwd=P6RuJxtEmE8Sg1DIt0VDIoi.jc2OgNv2Zf6:\
:u_auditid#386:\
:u_auditflag#1:\
:u_succhg#1139966489:u_unsucchg#1128497238:u_pswduser=ncs:u_suclog#1142
501475:\
:u_suctty=pts/to:u_unsuclog#1142407526:u_unsuctty=pts/t1:u_lock@:\
:chkent:
server B:
ncs:u_name=ncs:u_id#138:\
:u_pwd=AGTGLLXIP8mWA:\
:u_auditid#277:\
:u_auditflag#1:\
:u_succhg#1142501503:u_unsucchg#1141980009:u_suclog#1142501536:u_suctty
=pts/tO:\
:u_unsuclog#1142501488:u_unsuctty=pts/tO:u_lock@:chkent:
Questions:
1) Any impact that I just copy /tcb/files/auth/n/ncs only without /etc/passwd?
2) Due to I already create user account called ncs in server A, any impact if I copy ncs entry from server B /etc/passwd and overwrite it at server A?
3) I hv created 80 users in server A. If I need to copy 80 users entries from /etc/passwd and /tcb/files/auth, what is the easiest and fastest way?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2006 09:06 PM
03-15-2006 09:06 PM
Re: Preserves user password during migration
Problem will come when you are converting your machine to non-trusted mode. Copy /etc/passwd and /tcb/ directory as well.
2) Due to I already create user account called ncs in server A, any impact if I copy ncs entry from server B /etc/passwd and overwrite it at server A?
Password and user setting will be changed as like Server B. Hope you can select fields from server B's /etc/passwd and update into Server A.
3) I hv created 80 users in server A. If I need to copy 80 users entries from /etc/passwd and /tcb/files/auth, what is the easiest and fastest way?
Just transfer the file from Server B to Server A with some other extensions. Take the backup of already existing (It is needed). Try to update it with cp -p mode.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2006 09:19 PM
03-15-2006 09:19 PM
Re: Preserves user password during migration
1) Normally for users account migration, do we need to manually create the users account in destination server first and then copy the /etc/passwd and /tcb/files/auth?
2) In server A, I already hv a list of existing users account at /etc/passwd. What I can think off is append 80 users entries from server B to server A bcos I cannot overwrite existing server A /etc/passwd. Is it what I suppose to do?
3) For /tcb/files/auth, normally what is the method that used to overwrite? What I can think off is backup /tcb/files/auth using tar at server B and restore it into server B. But I afraid the restoration will affect others users such as users passwd file corrupted. Any good suggestion?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2006 09:32 PM
03-15-2006 09:32 PM
Re: Preserves user password during migration
If you copy /etc/passwd file entries to Server A then users are added as well.
2) In server A, I already hv a list of existing users account at /etc/passwd. What I can think off is append 80 users entries from server B to server A bcos I cannot overwrite existing server A /etc/passwd. Is it what I suppose to do?
User accounts has to be unique. Don't add duplicate entries. Try to run pwck after migration to check for errors. See man pwck.
3) For /tcb/files/auth, normally what is the method that used to overwrite? What I can think off is backup /tcb/files/auth using tar at server B and restore it into server B. But I afraid the restoration will affect others users such as users passwd file corrupted. Any good suggestion?
May be you can copy and paste /tcb/files/auth directory files except root user. That is useful. More then try to backup existing /tcb/ directory before making any trial.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2006 09:40 PM
03-15-2006 09:40 PM
Re: Preserves user password during migration
Do you mean that after copy the /etc/passwd, users home directory will be automatically created? Need to restart services or reboot server for the automatically users home directory creation?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2006 09:43 PM
03-15-2006 09:43 PM
Re: Preserves user password during migration
How about the users group is diff? Let said at server B, the user group for these 80 users is users. But at server A, I want the user group for these 80 users as test.
Pls advise.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2006 09:59 PM
03-15-2006 09:59 PM
Re: Preserves user password during migration
How about the users group is diff? Let said at server B, the user group for these 80 users is users. But at server A, I want the user group for these 80 users as test.
You need to migrate the groups as well. That is, you may need to add users to other group.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2006 12:44 PM
03-16-2006 12:44 PM
Re: Preserves user password during migration
I already manually created 80 users with grp id 123 in server A. Assumed that the grp id for these users in server B is 150.
Q1) After I copy these 80 users entries at /etc/passwd from server B to server A, can I just replace these users grp id with 123?
Q2) Is the content under /tcb/files/auth include the grp id info? As I know, it seems doesn't include.
regards.