- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Moving users password from 2 trusted system
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
тАО02-17-2010 10:54 AM
тАО02-17-2010 10:54 AM
Moving users password from 2 trusted system
We're curretly migrating all our production server users to a new server and both machines are already converted to "trusted system". The production machines runs on hpux 11.11 while the new server runs on hpux 11.23.
My question is, how do I transfer all our users with current password to the new machine? Is there a way we can retain their current password on the machine?
Any guides or instructions will be greatly appreciated.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2010 12:08 PM
тАО02-17-2010 12:08 PM
Re: Moving users password from 2 trusted system
Transfer all the files in /tcb folder. That will do the job.
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
тАО02-17-2010 02:25 PM
тАО02-17-2010 02:25 PM
Re: Moving users password from 2 trusted system
on source:
tar cvf pass.tar /tcb/files/auth
ftp pass.tar to destination
on destintation:
tar xvf pass.tar
***beware this will also include root's password, policy defaults, and individuals policies and expirations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2010 03:32 PM
тАО02-17-2010 03:32 PM
Re: Moving users password from 2 trusted system
and all the other "system" accounts that already exist in the new server. You
also need to capture the contents of /etc/passwd and /etc/group as well.
A better approach is to:
1. reconcile /etc/group between the two systems
2. make a list of the candidate users, their default groups
and other details from /etc/passwd on the source server
3. use this list to create the users in the target server
useradd -m -g
4. fix up any additional group memberships
id
5 use the list to locate the /tcb/files/auth/... file
for each user:
Extract the encrypted password from the file:
(grep :u_pwd= /tcb/files/auth/?/
6 use the same list to fix up the passwords and unlock
each user on the target server:
/usr/sam/lbin/usermod.sam -p
/usr/lbin/modprpw -v
/usr/lbin/modprpw -k
This process may appear to be long and laborious but it is easily scripted and
using ssh, the whole process can be controlled from the source server. The main
consideration is that only the appropriate tools are used to set up the users on the new server.
Good luck ;O)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2010 04:31 PM
тАО02-17-2010 04:31 PM
Re: Moving users password from 2 trusted system
As mentioned by >>SEP<<
if the System is trusted. "User passwords are stored under /tcb/file/auth/
make sure you copy /etc/passwd /etc/group file from (Old Server to New Server)
from Production Server HPUX 11.11
To create a tar you can use
# tar -cvf destination(tcb.tar) source(/tcb)
ftp /scp/sftp "tcb.tar" file to New Server HPUX 11.23
to untar you can use
# tar -xvf destination(path of new dir) source(tcb.tar)
# /usr/lbin/modprpw -V
NOTE: That is a capital V not lowercase v.
this will enable all the accounts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2010 04:52 PM
тАО02-17-2010 04:52 PM
Re: Moving users password from 2 trusted system
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2010 08:17 AM
тАО02-18-2010 08:17 AM
Re: Moving users password from 2 trusted system
Thank you so much to all your replies. What I did is just copy /etc/passwd, /etc/group on the new server, convert the system to trusted and then extract the tcb tar on the new server. Just make sure that you have another root account open on a separate window. Will go from here and see what other things it may result. Thanks Again
Kurt