- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Forgot 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
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
08-31-2004 02:11 PM
08-31-2004 02:11 PM
Forgot root password
I already forgot the root password. Any solution?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 02:24 PM
08-31-2004 02:24 PM
Re: Forgot root password
Power-on and interrupt the boot by pressing
BOOT PRI
Interact with ISL (or IPL) y
ISL> hpux -is
That will bring you up as root in single-user. You can then execute /sbin/passwd to set the root password.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 02:32 PM
08-31-2004 02:32 PM
Re: Forgot root password
Have the application/database down on the system. Once you make sure that nothing other than the OS processes (owned by root) are running, then physically power off and on the system.
After the system completes diagnostics, it will give you 'n' seconds (usually 10 seconds) to stop booting. Press any key that time and it will put you to bootadmin prompt. Boot from the primary disk (bo pri) and when it prompts to interact with ISL, type 'y'. Boot process may be slightly different depending on the hardware you have. Once you are at ISL prompt type "ISL>hpux -is". It will bring single user mode. You can use either /sbin/passwd command (recommended) or edit /etc/passwd file (/tcb/files/auth/r/root in case of trusted system) and delete the encrypted password string. Then set the password using passwd command. THen run 'init 3' to bring it back to multi-user mode.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 03:37 PM
08-31-2004 03:37 PM
Re: Forgot root password
Is the below steps also works?
1. Ctrl-B,
2. Boot to Single User Mode
3. # modprpw -k root
4. # passwd root
If yes, what is the difference between the steps that u provided and the steps above?
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 03:43 PM
08-31-2004 03:43 PM
Re: Forgot root password
Yep. Instead of "tc", use 'rs' command. That's soft reset of the system. tc will dump the core which you don't need.
modprpw -k root is for trusted systems and if the root is disabled. If the system is not trusted and if you simply don't know the password, then use the procedures given above.
If you see the /tcb structure, (ll -d /tcb), then the system is trusted. So, once you are in single user mode do.
/usr/lbin/modprpw -k root
(change the password either by using passwd command or by deleting the encrypted string in /tcb/files/auth/r/root file).
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 07:05 PM
08-31-2004 07:05 PM
Re: Forgot root password
Due to I unable to login as root to shutdown the server properly, I have to shutdown the server manually by pressing the ON button. Is it the correct or any alternate way?
So after I reached the single user mode, I have to run fsck to repair all the file system and mount all the file system in order to use HP-UX comamnds (which is at /usr). Is it the process that must be go through whenever someone is forgot the root password?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 08:10 PM
08-31-2004 08:10 PM
Re: Forgot root password
I did this operation from some time but I didn't find any data loss problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 08:31 PM
08-31-2004 08:31 PM
Re: Forgot root password
Can you do a rlogin/remsh from any other server as "root"?
-Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 09:35 PM
08-31-2004 09:35 PM
Re: Forgot root password
I have tried to rlogin but system prompt me to enter the password. Have not tried remsh. Actually what is rlogin and remsh for?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 11:30 PM
08-31-2004 11:30 PM
Re: Forgot root password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2004 02:34 AM
09-01-2004 02:34 AM
Re: Forgot root password
for those worst cases it would be the best if you have installed ssh.
Thank you can connect to the server as root (if your public key is on the system)even if you don't knot the root password.
Maybe that's for the future.
Bye
Elif