- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP-UX 11.31 and forgotten Root Password
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
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
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
10-06-2011 07:37 AM
10-06-2011 07:37 AM
HP-UX 11.31 and forgotten Root Password
HP-UX Gurus:
What do you guys do when a fellow SA has changed the root password and forgotten to inform us (and has now left the company). Is there a way to break into the box without re-installing the Operating System? If there is a procedure which exists, will it work both on physical servers and IVMs? Any input would be most appreciated.
Regards,
-Kennedy
- Tags:
- Password reset
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2011 07:51 AM
10-06-2011 07:51 AM
Re: HP-UX 11.31 and forgotten Root Password
You neglected to mention whether your system(s) are trusted or not. If not, it is as simple as rebooting into single user mode and you will be automatically logged in on the console as root. Change the password, issue the "init 3" command to come up into multi-user mode and you're all set. If trusted, it gets a trifle more complex.
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2011 07:55 AM
10-06-2011 07:55 AM
Re: HP-UX 11.31 and forgotten Root Password
Thanks for the quick response, Pete. I am looking for a procedure on a trusted system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2011 08:01 AM
10-06-2011 08:01 AM
Re: HP-UX 11.31 and forgotten Root Password
Take a look at this thread then:
http://h30499.www3.hp.com/t5/System-Administration/forgot-root-password/m-p/2805033#M82816
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2011 08:06 AM
10-06-2011 08:06 AM
Re: HP-UX 11.31 and forgotten Root Password
If the system is trusted, it is not that much more of a problem.
You still need to boot into single-user mode.
Once there, you will need to mount at least the /usr and /var filesystems.
You can the edit the /tcb/files/auth/r/root file with vi.
The line you will want to change starts :u_pwd and will look something like:
:u_pwd=WkYfTXwrG5c5U:\
What you will want to do is remove the encrypted password from this line to make the line look like:
:u_pwd=:\
This will make it so root does not have a password. You can now change the root password easily.
- Tags:
- trusted mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2011 08:24 AM
10-06-2011 08:24 AM
Re: HP-UX 11.31 and forgotten Root Password
Patrick:
Thanks for the prompt reply and I really appreciate the time you took to reply to this message. When we tried to reboot and get into the single user mode, we got this message "Access is denied by the AUTH_MAXTRIES attribute in security(4).". Maybe because we retried using the old password a number of times. Does this mean we have no way out other than a rebuild?
-Kennedy