- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Convert Solaris passwords to HP-UX
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
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
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
тАО11-30-2006 09:03 AM
тАО11-30-2006 09:03 AM
Convert Solaris passwords to HP-UX
My simple try at this was to create a user on the HP box then cut and paste the SUN's /etc/shadow password into the new users /etc/passwd file on the HP. I didn't work.
So I beleive Solaris keeps their hashed passwd in a different format then that of HP-UX. I've googled arround and I beleieve that SUN uses DES hashing and HP-UX uses MD5.
Is there a way to convert these passwords?
I've looked through pam and couldn't find anything.
Thanks in advance for any help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2006 11:53 AM
тАО11-30-2006 11:53 AM
Re: Convert Solaris passwords to HP-UX
The other gotcha is that HP-UX uses an optional bigcrypt() function to encode passwords whose plaintext exceed 8 characters. This behavior can be changed use PAM modules but it's a non-trivial exercise.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2006 03:31 PM
тАО11-30-2006 03:31 PM
Re: Convert Solaris passwords to HP-UX
The HP system is not trusted.
I am migrating from Solaris to HP-UX. The Solaris keeps the password in the /etc/shadow file for example:
jgarza:gXU9S9EyMLFvg:13102::::::
BTY: This password is caddy670 on the Solaris.
The Solaris /etc/passwd file for the same user is:
jgarza:x:1089:15:Johnny Garza:/usr/users/jgarza:/bin/csh
Forgetting the /home dir and the shell info. I am simply trying to move the passwords. The rest I can modify via a vi replace.
The question is; how to I get the Solaris hashed password to be recognized by HP-UX?
I have even tried to install the HP shadow patch thinking that it may do something to the hashing (encryption).No dice.
I have searched and searched; it is hard to believe no one has migrated from a Solaris to and HP without resetting all the passwords. In my case it is over 200.
I have migrated from SCO to HP; and True64 to HP all with no problems.
This forum has always had the answers. I use it all the time. I have searched and can not find anything even close. Google has nothing either.
I keep thinking that SUN is using a different hashing method???
HELP!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2006 07:52 PM
тАО11-30-2006 07:52 PM
Re: Convert Solaris passwords to HP-UX
does this help ? you do not say what the solaris release is . it might be easier to fix them at the solaris end .
http://learningsolaris.com/archives/2006/01/19/password-hashing-algorithm/
http://www.sun.com/software/whitepapers/solaris9/pam.pdf
you would probably have to do a full install of solaris 9 2 to get there . Change the encryption algorithim. Then get everybody to change their password. Then copy the files across.
good luck
Mike .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2006 09:00 PM
тАО11-30-2006 09:00 PM
Re: Convert Solaris passwords to HP-UX
If you have an untrusted HP-UX system and shadow passwords on the Solaris system then you will need to move the encrypted passwords into the /etc/passwd file. In your example:
/etc/shadow file:
jgarza:gXU9S9EyMLFvg:13102::::::
/etc/passwd file:
jgarza:x:1089:15:Johnny Garza:/usr/users/jgarza:/bin/csh
This will need to become the following /etc/passwd entry:
jgarza:gXU9S9EyMLFvg:1089:15:Johnny Garza:/usr/users/jgarza:/bin/csh
However, if appears that your uids do not match - this may or may not be a concern to you.
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2006 02:29 AM
тАО12-01-2006 02:29 AM
Re: Convert Solaris passwords to HP-UX
The Sun Solaris version is an old 5.6!
Upgrading the Sun system is not an option.
But you do bring up a point. The HP system is new (no users yet) So that brings up what I was looking at earlier --changing the authentication hashing routine via pam.
The /etc/pam.conf points to libpam_unix.1
# Authentication Management
#
dtaction auth required /usr/lib/security/libpam_unix.1
dtlogin auth required /usr/lib/security/libpam_unix.1
ftp auth required /usr/lib/security/libpam_unix.1
login auth required /usr/lib/security/libpam_unix.1
su auth required /usr/lib/security/libpam_unix.1
OTHER auth required /usr/lib/security/libpam_unix.1
Under the /usr/lib/security there are these files:
libpam_authz.1 libpam_krb5.1 libpam_ntlm.1 libpam_updbe.1
libpam_dce.1 libpam_ldap.1 libpam_unix.1
I am wondering if unix.1 is MD5 and dce.1 is DES??
Darren---that was the first thing I tried..
Thanks for the replies so far!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2006 03:18 AM
тАО12-01-2006 03:18 AM
Re: Convert Solaris passwords to HP-UX
login auth required /usr/lib/security/libpam_unix.1
To each one of these:
libpam_authz.1 libpam_krb5.1 libpam_ntlm.1 libpam_updbe.1
libpam_dce.1 libpam_ldap.1
No luck---I knew ldap.1 would not work.
Some actually let you in without a password.
I did try the HP-UX shadow patch. That did not change the hashing.
So I'm still stuck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2006 03:53 AM
тАО12-01-2006 03:53 AM
Re: Convert Solaris passwords to HP-UX
Examine the password hash and note the 1st 2 characters (the "salt"). Next run this Perl one-liner:
perl -e 'print crypt("secret","Eb"),"\n";'
where "secret" is the plaintext password and "Eb" is the salt mentioned above. The output will be the password hash. When these two match on box boxes, you have equivalent password hashing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2006 04:02 AM
тАО12-01-2006 04:02 AM
Re: Convert Solaris passwords to HP-UX
Looking at this from another angle, why don't you make people enter new passwords? It's generally considered good security to change passwords on a regular basis.
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2006 04:54 AM
тАО12-01-2006 04:54 AM
Re: Convert Solaris passwords to HP-UX
That's a good test except they do not have perl on the Solaris system.
I pretty sure that will tell me what I already know..the hashing is different between a Solaris 5.6 and HP-UX.
I was hoping there is something I could change on HP-UX to translate the Solaris hashed password. I had hoped it was in the pam.conf. It may still be. I have got to do some more research on those pam lib files
Daren,
I doubt they are running anything but striaght Solaris 5.6, with no extra crypting.
On the HP side I've tried untrusted..but not trusted. I'll try that this afternoon and stick the password from the Solaris /etc/shadow into the approprate HP-UX /tcb/auth file.
While I agree it's a good practice to change the passwords every 90 days or so. It is just not the best time to do this when you are going live on a new system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2006 05:02 AM
тАО12-01-2006 05:02 AM
Re: Convert Solaris passwords to HP-UX
the idead of merging the shadow passwd-data into /etc/passwd will work.
Use these lines on your solaris box to create a 'HP-UXable' /etc/passwd:
nawk -F: 'BEGIN { while (getline<"/etc/shadow" == 1) pw[$1]=$2; close("/etc/shadow");OFS=FS}
{if (!pw[$1]) pw[$1]="*NONE*";print $1,pw[$1],$3,$4,$5,$6,$7}' /etc/passwd
You'll better remove system accounts from this output and append it to your /etc/passwd on the HP-UX box.
Password aging is lost, though you could use the data in /etc/shadow to compute an equivalent aging string for /etc/passwd.
You better set in up for new, if you require this.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2006 07:31 AM
тАО12-01-2006 07:31 AM
Re: Convert Solaris passwords to HP-UX
There is some info in:
http://devrsrc1.external.hp.com/STK/impacts/i833.html
As well as download here:
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=ShadowPassword
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2006 09:09 AM
тАО12-01-2006 09:09 AM
Re: Convert Solaris passwords to HP-UX
It looks as though this moves the data from shadow and combines it into passwd (standard).
Unless I'm missing something the problem is in the hashing. Of course I can't be certain since I could not run the perl script on the SUN box.
Geoff,
Tried the shadow patch yesterday. I really thought I was on to something, but no.
I wonder if should close this thread and start a new one that has to do with the hashing problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2006 09:25 AM
тАО12-01-2006 09:25 AM
Re: Convert Solaris passwords to HP-UX
There was a presentation at this year's HP Tech Forum on "Sun Porting & Migration to HP".
I'll let you know the results as soon as they get back to me.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2006 10:35 AM
тАО12-01-2006 10:35 AM
Re: Convert Solaris passwords to HP-UX
Here's what I have found out so far.
On the SUN box I changed the passwd of the same user I've been battling since yesterday morning to the same password he had before.
I cut and pasted it and it worked on HP!!
I then cut and pasted the root passwd from the SUN box to this same user on the HP and it worked!
Strange since the orginal password did work on the SUN.
I am thinking they are useing the Solaris GUI admintool it may give an option to encrypt the password into something unknown.
I'm going to close this thread--
This is my first post and I feel stupid that I didn't try this before!
Thanks for everyones help on this! And thank this forum..I've used this for years and I always find the answers!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2006 10:36 AM
тАО12-01-2006 10:36 AM