- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Account Password Decryption
Operating System - HP-UX
1754371
Members
2889
Online
108813
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО07-31-2000 10:00 AM
тАО07-31-2000 10:00 AM
I need to write an application that reads in a user's password and verifies it against the users account in /etc/passwd. I know getpwnam() will get the entry by name, but how do you decrypt the password for comparision?
Solved! Go to Solution.
- Tags:
- passwd
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2000 10:31 AM
тАО07-31-2000 10:31 AM
Solution
You actually need to encrypt the password and compare the result to the encrypted value from getpwnam(). I have attached an example.
The getpwnam() call won't work for systems that are converted to trusted mode. They require the use of getprpwent() and the privilege to read the passwords.
The getpwnam() call won't work for systems that are converted to trusted mode. They require the use of getprpwent() and the privilege to read the passwords.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2000 11:25 AM
тАО07-31-2000 11:25 AM
Re: Account Password Decryption
The use of ssh sounds like an option. Can be obtained from the porting archieve.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2000 03:02 PM
тАО07-31-2000 03:02 PM
Re: Account Password Decryption
Unix passords cannot be decoded. The encryption method is lossy which means that not enough information is left in the encrypted password to accurately decode it. When a user logs in, the same method is used to encrypt what the user types and the result compared with the password file. If they are the same, the password is assumed to be the same. In reality, there can be many passwords that will produce the same encrypted result, but most of the time, the clones will be very unusual paswords like: 5d87GhhOL which are impossible to guess. Unix passwords are not decoded by hackers, they are guessed.
Bill Hassell, sysadmin
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP