- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Trusted HP/UX to Redhat user conversion?
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
09-29-2008 07:02 AM
09-29-2008 07:02 AM
1. Users - currently we are on a trusted HP/UX.
I've been told I can grab the /etc/shadows on the HP box, but on the trusted system the /etc/shadow does not exist.
What are the issues related to untrusting the system, capturing the shadow, then re-trusting the box?
secondly is any one aware of how to use PWCONV? how clean is it?
I'd want to do something similar for groups..
Any ideas appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 07:08 AM
09-29-2008 07:08 AM
Solution2) You may be able to grab the encrypted passwd field from /tcb/files/auth/[aA-zZ]/username, but you will need to test this.
3) yes you can unconvert trusted ( beware that additional features, perhaps long passwords, may get lost )
4) The group file should be a no brainer. append relevant /etc/group entries into /etc/group on linux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 07:17 AM
09-29-2008 07:17 AM
Re: Trusted HP/UX to Redhat user conversion?
Thanks, I may have to take the risk with the loss of a few passwords. I am sure I will have a few hiccoughs.. I will see what it looks like to pull the /tcb/auth/files directory and script a recursive useradd ... i believe I'd need to decrypt the passwd prior to doing a -stdin for password creation.. any thoughts on that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 07:27 AM
09-29-2008 07:27 AM
Re: Trusted HP/UX to Redhat user conversion?
The /etc/passwd file will be your template to walk through the users. To obtain the encrypted password from /tcb, you extract the first letter of the user name to use as the directory: /tcb/files/auth/<1CHR>/userid. In that file, you'll see the encrypted password.
> i believe I'd need to decrypt the passwd prior to doing a -stdin for password creation.. any thoughts on that?
Won't work. Unix passwords cannot be decrypted as they are a lossy hash. However, the hash method uses crypt() so it should be portable to Linux, but test first. The exception will be for users that have passwords longer than 8 characters. For 8 chars or less, the password field will always be exactly 13 characters. Beyond 8 chars for a password, the field is longer and requires bigcrypt() which is an HP feature. The 13 char password fields should port to Linux but test first.
pwconv only updates the /tcb files and does not decode /tcb information.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 07:30 AM
09-29-2008 07:30 AM
Re: Trusted HP/UX to Redhat user conversion?
That being said, I think the version of PAM that Red Hat ships claims to support bigcrypt, so you may be able to just use the hashes from /tcb as-is. If you don't want to stay with bigcrypt (nobody uses it on Linux) you can have PAM update the hash to md5 (or whatever) whenever people change their passwords.
Red Hat ships a version of useradd that can take the password hash on the command line, so you should not need to recover the original passwords.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 07:31 AM
09-29-2008 07:31 AM
Re: Trusted HP/UX to Redhat user conversion?
Thank you.
Perhaps you can tell me what is involved in untrusted the system and grabbing the shadow?
Our HP/Redhat accounting system VAR wants to do it with PWCONV..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 07:34 AM
09-29-2008 07:34 AM
Re: Trusted HP/UX to Redhat user conversion?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 07:37 AM
09-29-2008 07:37 AM
Re: Trusted HP/UX to Redhat user conversion?
Even if RedHat has been configured to use MD5-hashed passwords, it will accept a traditional Unix-style password hash (8 or less password characters). The password will automatically be changed to MD5-hashed version next time the user changes his/her password. This compatibility mechanism *can* be disabled if you don't like it, but it is enabled by default.
To feed pre-encrypted passwords to RHEL, use the "chpasswd -e" command. Prepare a file with "username:encrypted_pass" pairs (one pair per line) and pipe the file to "chpasswd -e".
On RedHat, the chpasswd command will automatically put the encrypted password wherever it is supposed to go: if you are in "traditional unix style" mode, the password will go to /etc/passwd. If you have run pwconv (or specified "use shadow passwords" when installing RHEL), the passwords will automatically go to /etc/shadow.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 07:40 AM
09-29-2008 07:40 AM
Re: Trusted HP/UX to Redhat user conversion?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 07:47 AM
09-29-2008 07:47 AM
Re: Trusted HP/UX to Redhat user conversion?
If I pull the u_pwd=
field and other pertinent information about the user from the /etc/passwd including userid, gid and other group membership, home-directory, from the HP/UX box, then pass through useradd and chpasswd in a do while or for loop.
I have a test box I am going to blow and see what happens.
Based on what I am gathering from all of you is avoid the PWCONV all together and script it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 07:48 AM
09-29-2008 07:48 AM
Re: Trusted HP/UX to Redhat user conversion?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 08:42 AM
09-29-2008 08:42 AM
Re: Trusted HP/UX to Redhat user conversion?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 09:14 AM
09-29-2008 09:14 AM
Re: Trusted HP/UX to Redhat user conversion?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2008 05:36 AM
09-30-2008 05:36 AM
Re: Trusted HP/UX to Redhat user conversion?
When encrypting passwords of more than 8 characters, bigcrypt() chains the segments together.
RedHat Enterprise Linux does not have the equivalent of bigcrypt(). After reading the man page of bigcrypt(3C), I think it would be possible to truncate the encrypted password string to 12 characters (the standard size of crypt() encrypted output + salt) and feed it to the RHEL machine.
Then the users could be given the following work-around:
"If your password does not work in the RHEL machine, type in only the first 8 characters of your password when you log in the first time. Then use the 'passwd' command to change your password. After that, your long password will again work as usual."
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2008 06:57 AM
10-01-2008 06:57 AM
Re: Trusted HP/UX to Redhat user conversion?
I did get a convert script built..
The existing passwords did not convert.
I did get the users to convert.. I will probably just assign a password and force change on 1st login in when we convert.
I used the following command in my script, and assumed the encrypted password would be used..
echo useradd -c "$description" -g "$ggroup" -d "$upath" -s "$ushell" -p "$pass" $uname
I will try the chpasswd command in a script and see what occurs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2008 07:21 AM
10-01-2008 07:21 AM