- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: root password locked on a vpar
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-06-2007 02:10 AM
06-06-2007 02:10 AM
HP-UX devsap02 B.11.23 U ia64 0858625482 unlimited-user license
$ model
ia64 hp superdome server SD32B
This system is split into 2 vars on 1 npar. On one of the vpars the root profile has been locked and I do not know what the root password is.
The system is also trusted.
I need to be able to unlock and reset the root password.
I believe that this can only be done in single user mode.
I am currently in a position where I can shutdown the vpar I am having problems with, but only have a user account which does not have permission to the shutdown command.
I don't know how to reboot a vpar other than through the shutdown command. I can do a RS or BO from the GSP but don't know if this will reboot the whole complex(npar) rather than just the individual vpar.
Also, once in single user mode is it just a matter of doing /usr/lbin/tsconvert -r and then passwd root to reset, or do I need to know the current root password to do this?
Being fairly new to HP-UX any help will be greatly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2007 02:15 AM
06-06-2007 02:15 AM
Re: root password locked on a vpar
you can use "vparreset" to "crash" and reset the running vPar from the second.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2007 02:17 AM
06-06-2007 02:17 AM
Re: root password locked on a vpar
# /usr/lbin/modprpw -k root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2007 02:17 AM
06-06-2007 02:17 AM
Solutionyou can use "vparreset" to "crash" and reset the running vPar from the second.
First, try a soft reset:
winona1# vparreset -p winona2 -t
If this doesn't work (but it will), run a hard reset:
winona1# vparreset -p winona2 -h
Once it is stopped, start it in single user mode:
a) winona1# vparboot -p winona2 -o â -isâ
or
b) MON> vparload -p winona2 -o "-is"
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2007 02:18 AM
06-06-2007 02:18 AM
Re: root password locked on a vpar
# sudo -i
to change to root and then execute the aforementioned command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2007 02:19 AM
06-06-2007 02:19 AM
Re: root password locked on a vpar
However, the matter of reactivating root is relatively easy.
Once you manage to come up in single user mode, do the following:
You should not need to know the root password for any of this.
# vgchange -a y vg00
# mount /usr
# mount /var
# mount /tmp
To reactivate root:
# /usr/lbin/modprpw -k root
To change the root password, since you don't know it:
# vi /tcb/files/auth/r/root
Change the :u_pwd line so that it looks like:
:u_pwd=:\
You are removing the encrypted password here. Since you don't know the root password, you must do this before you can change it.
Now just issue the passwd command to create a new password.
# passwd root
Good luck.
P.S. This is why it is a good idea to have some sort of "back door" that you can use to do things. 'sudo' is a good utility to install that allows you to run commands as root, without being root. If set up correctly sudo would allow you to do what you need to change the root password and reactivate root without rebooting the machine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2007 02:20 AM
06-06-2007 02:20 AM
Re: root password locked on a vpar
Remember the given commands for future reference.
Good luck!
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
