- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- root password issue
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
06-22-2009 08:37 AM
06-22-2009 08:37 AM
here's the scenario:
1) We are able to remsh to the system, so we can get to a root prompt.
2) We want to change the root password, but we don't know the OLD password.
3) HPUX 11.11 trusted system.
Thoughts:
Can we simply?
erase the u_pwd field in /tcb/files/auth/r/root
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2009 08:40 AM
06-22-2009 08:40 AM
Re: root password issue
To have a null password the line needs to look like:
:u_pwd=:\
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2009 08:42 AM
06-22-2009 08:42 AM
Re: root password issue
thanks...no need to go to single user mode right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2009 08:44 AM
06-22-2009 08:44 AM
Re: root password issue
Yes you can do that by editing the file.
/tcb/files/auth/r/root
Remove the encrypted content from mentioned between.
:u_pwd=:\
And no need to go to single user mode.
Regards
Vivek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2009 08:46 AM
06-22-2009 08:46 AM
Re: root password issue
:u_pwd=XXXXX:\
Then Remove XXXXX (encrypted content from the file) and that will allow you to login with empty password.
Vivek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2009 09:10 AM
06-22-2009 09:10 AM
Re: root password issue
thanks...no need to go to single user mode right?"
how do you propose to login as root to make the change then?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2009 09:11 AM
06-22-2009 09:11 AM
Re: root password issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2009 09:16 AM
06-22-2009 09:16 AM
Re: root password issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2009 09:27 AM
06-22-2009 09:27 AM
Re: root password issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2009 09:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2009 09:06 PM
06-22-2009 09:06 PM
Re: root password issue
Permissions on this executable on currently supported HP-UX versions are set to not allow non-root users to run it. Since root COULD directly edit the file and achieve the same result without knowing the password, there is no reason for /sbin/passwd to ask for it. This is likely a much cleaner way of dealing with the issue you face.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2009 04:45 AM
06-23-2009 04:45 AM
Re: root password issue
I did try the /sbin/passwd in one of our test environments and it did prompt for the old password.
Thanks everyone