- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Recover root password on a trusted machine
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
11-09-2008 01:57 AM
11-09-2008 01:57 AM
Recover root password on a trusted machine
The "Require Login Upon Boot to Single-User State" is enabled.
So in Single User Mode , the password of root is required.
How to recover root password ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2008 02:42 AM
11-09-2008 02:42 AM
Re: Recover root password on a trusted machine
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2008 10:43 PM
11-09-2008 10:43 PM
Re: Recover root password on a trusted machine
vi /tcb/files/auth/r/root
Please remove the character after "u_pwd="..
Make sure u dont delete the ":\" at the end
:u_pwd=kmpNpuZ.q3D62Gs8PDNkIATY:\
Then
#passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2008 11:07 PM
11-09-2008 11:07 PM
Re: Recover root password on a trusted machine
Single User mode is not accessible without root password.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2008 02:19 AM
11-10-2008 02:19 AM
Re: Recover root password on a trusted machine
In trusted system, if root account is locked due to unsuccessful login tries the account is still allowed to login at the system console. This assumes that the console is at a secure location and only an authorized user has access to it. To login as root:
Console Login: root
Password:
Account is disabled but console login is allowed.
The successful console login resets the lock and allows the root user to login via the network now. The correct password still has to be provided. If the system was recently converted to a trusted system, login with only the first 8 characters of the root password.
If you are unable to reset password from console, please follow these steps to do the same.
1) Reboot the server and boot off with an installation CD.
2) Select "Recovery Shell"
3) At command prompt.
4) mount /var
5) mount /usr
6) vi /tcb/files/auth/r/root
7) null out the pwd entry & save the file.
8) shutdown -ry
9) You now have no root password. After boot, use the passwd command to set it IMMEDIATELY.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2008 02:34 AM
11-10-2008 02:34 AM
Re: Recover root password on a trusted machine
i have faced the same problem, and i reset the password in this way
1. i took the single user mode, ( i rebooted it thru console, and interupted the sequence )
2. then mounted all partitions.
3. go to SAM
4. recoverted my system from trusted to normal.
5. then i reset the password for root.
6. then i converted again to trusted
Note :- when you convert some system to trusted , before that have a session with root, and after you convert the system to trusted, refresh all users's passwords by /usr/lib/modprpw -V
Best Regards,
prasad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2008 12:27 AM
11-11-2008 12:27 AM
Re: Recover root password on a trusted machine
I performed the following steps to change the root password on recovery shell :
- Booting from HP-UX DVD
- Recover an unbootable HP-UX system
- Mount the root disk and exit to a shell only
- Run fsck -y
Result:
Loading /sbin/fsck...
pass0 - checking structural files
pass1 - checking inode sanity and blocks
pass2 - checking directory linkage
pass3 - checking reference counts
pass4 - checking resource maps
OK to clear log? (ynq)y
set state to CLEAN? (ynq)y
Mounting /dev/dsk/c4t0d0s7 to /ROOT/stand as read only.
Loading /sbin/mount...
UX:vxfs mount: ERROR: V-3-22168: Cannot open portal device: No such file or directory
UX:vxfs mount: ERROR: V-3-21264: /dev/dsk/c4t0d0s7 is already mounted, /ROOT/stand is busy,
allowable number of mount points exceeded
ERROR; mount /dev/dsk/c4t0d0s7 failed!
=================================================================
The root disk has been mounted under /ROOT. If you would like to
chroot to this directory, execute the commands:
loadfile chroot
chroot /ROOT /sbin/sh
# loadfile chroot
# chroot /ROOT /sbin/sh
/sbin/sh: not found
--------------------------------
In this situation I can not mount any path.
"loadfile mount" also is not working.
Any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2008 02:20 AM
11-11-2008 02:20 AM
Re: Recover root password on a trusted machine
boot your machine in single user mode and try the steps that i had followed given in the previous post
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2008 02:27 AM
11-11-2008 02:27 AM
Re: Recover root password on a trusted machine
after booting the sytem in single user mode, i was not able to go SAM for reconverting the system to Normal mode. so i needed /usr partition to mount. i done
fsck -m /dev/vg00/rlvol8
[ see, my /usr is mounted on /dev/vg00/lvol8 ]
( /dev/vg00/lvol8 2048000 1358256 684504 66% /usr )
and then i mounted it (use mountall -a )
and then start SAM.
go to Auditing and Security.
convert system to untrusted mode. and reset the password
Best Luck,
prasad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2008 02:52 AM
11-11-2008 02:52 AM
Re: Recover root password on a trusted machine
As I mentioned in the first post, the "Require Login Upon Boot to Single-User State" is enabled, so I need the root password in single mode.
I think there is only one solution: Recovery Shell from HP-UX bootable Media.
Tanx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2008 03:46 AM
11-11-2008 03:46 AM
Re: Recover root password on a trusted machine
If you are ok with the answre then
KEEP ASSIGNING POINTS TO THOSE WHO SPEND THEIR VALUABLE TIME FOR YOU.
http://forums11.itrc.hp.com/service/forums/helptips.do?#33
Suraj