- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reset 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
Discussions
Forums
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
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
тАО01-18-2007 08:52 PM
тАО01-18-2007 08:52 PM
Reset Root password ??
How can I reset/retreive the root password if I dont remember the root password?
Nikhil.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2007 08:54 PM
тАО01-18-2007 08:54 PM
Re: Reset Root password ??
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2007 08:56 PM
тАО01-18-2007 08:56 PM
Re: Reset Root password ??
you will have to go to single-user mode
and reset it there.
Please see threads:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1038505
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1041461
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2007 08:57 PM
тАО01-18-2007 08:57 PM
Re: Reset Root password ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2007 03:57 PM
тАО01-19-2007 03:57 PM
Re: Reset Root password ??
Best option is single user mode.
ISL> hpux -is
Regds
B.Ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2007 06:52 PM
тАО01-19-2007 06:52 PM
Re: Reset Root password ??
Boot the server to single usermod..for that
1.Interrupt autoboot by pressing any key
2.Give bo command on BCH prompt.
3.Select interact with ISL
4.At ISL prompt give hpux -is
sytem will boot into single user mode
mount usr filesystem
give passwd root
it will ask for new root password.
change the runlevel to the desired by INT command
Cheers,
Ranjith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2007 08:52 AM
тАО01-21-2007 08:52 AM
Re: Reset Root password ??
To use vi in single user mode, you need 3 directories mounted: /usr /tmp /var, and if you force a reboot, running the command: mount /usr wil report that you need to run fsck first. Use the raw device file listed in the error message. fsck all 3 filesystems and then mount them. Now vi will work. Delete text in the 2nd colon-delimited field so it looks like this:
root::0:0...etc...
Now root has no password and you can either run passwd now to change the root password, or issue the command:
init 3
to boot into normal user mode.
For Trusted systems, use the modprpw command as in:
/usr/lbin/modprpw -w "" root
(this is for 10.20 systems) For newer systems, the -w option was removed. In that case, you must use vi (setup the 3 lvols as above) and edit the file:
vi /tcb/files/auth/r/root
and change the line with u_pwd. It will look something like this:
:u_pwd=jEOrlatsNQvdg:\
to
:u_pwd=:\
That changes the root password to null. Now you can run the passwd command to set a new one, or change to init 3 and run passwd to change the root password.
Bill Hassell, sysadmin