- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to recover root password in Trusted system...
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
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
тАО12-27-2004 03:17 PM
тАО12-27-2004 03:17 PM
I changed my HP9000 system to trusted system.
I chose the option: "Require Login Upon Boot to Single-User State".
After a long time, I forget the root password.
I reboot the system to single-user mode. It asks me to login: ask for username: root. And then password for root.
I forget the root password. How can I login user root and change it ??????
Thanks a lot!
Hung
Solved! Go to Solution.
- Tags:
- Password reset
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2004 03:44 PM
тАО12-27-2004 03:44 PM
Solutionrestart your machine.
If you have a console ctrl-b, login and then use the rs command.
Power switch only if no user can soft boot the machine.
Interupt at the console at the 10 second prompt
bo
Y Interact
hpux -is
You will now boot single user mode.
mount /var
mount /tmp
You may need to use the fill path of the mount command.
vi /tcb/files/auth/r/root
change:
:u_pwd=YfdfdTmswL7o/.:\
to
:u_pwd=:\
null it out and save it.
passwd
Set the root password and remember it this time.
Done.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2004 03:44 PM
тАО12-27-2004 03:44 PM
Re: How to recover root password in Trusted system HP-UX 11i
these are notes that I have used;
boot into single user mode
# mount -a
# /usr/lbin/tsconvert -r
this untrusts the system
do # passwd root
this will allow you to change the password without the old one
# /usr/lbin/tsconvert -rto put the system trusted.
you can also remove the passowrd entry when in single user mode
# tcb/files/auth with a trusted system but any editing of the passwd files is not recommended.
when done # init 3
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2004 05:14 PM
тАО12-27-2004 05:14 PM
Re: How to recover root password in Trusted system HP-UX 11i
But in fact when I changed my system to trusted system, I also chose the option: "Require Login Upon Boot to Single-User State"
So When I boot to single-user mode as following:
ISL>hpux -is
........
INIT: Overriding default level with level 's'
Boot Authentication:
Please enter your login name: root
password:
Because I do not have root password. I can not enter Single-Usermode.
I have no chance to execute any command here.
Any suggestion?
Thanks and Regards
Hung
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2004 05:21 PM
тАО12-27-2004 05:21 PM
Re: How to recover root password in Trusted system HP-UX 11i
can you boot into multiuser mode?
if so when fully up issue
init 1
this should take you into single user mode,
then change the system from trusted to untrusted as detailed before.
if this doesn't work then try removing the password entry as steven has explaine
cp /tcb/files/auth/r/root root.bck
vi /tcb/files/auth/r/root
remove characters in u_pwd=xxxxxxxx:\
remove the x's
not sure if this will help as noty had the issue myself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2004 05:46 PM
тАО12-27-2004 05:46 PM
Re: How to recover root password in Trusted system HP-UX 11i
I can not boot into multiuser mode. I do not have root password!
What can I do now??
Thanks a lot
Hung
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2004 06:18 PM
тАО12-27-2004 06:18 PM
Re: How to recover root password in Trusted system HP-UX 11i
there are 2 ways of doing it. I have used one of them successfully.
1) Load fresh OS on a new disk, import the vg00 here, mount the root filesystem and remove the root password as indicated by SEP.
I used this method and recovered the system.
2) Another way is try through recovery CD, boot from recovery CD and mount the root filesystem and remove the root passwd.
I first attempted this method and had some problem in my CD. So I took the route of fresh OS on a different disk.
I don't know if there are other ways to recover this. Maybe, somebody else here might provide you a easier, better solution.
With regards,
Mohan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2004 06:33 PM
тАО12-27-2004 06:33 PM
Re: How to recover root password in Trusted system HP-UX 11i
Why don't you take OS backup tape before making trusting system (you tried make_tape_recovery many times before).
I also recommend you use recovery method to recover this system
re
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2004 07:13 PM
тАО12-27-2004 07:13 PM
Re: How to recover root password in Trusted system HP-UX 11i
... just kidding :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-28-2004 12:41 PM
тАО12-28-2004 12:41 PM
Re: How to recover root password in Trusted system HP-UX 11i
It is a good idea.
Hi Mohanasundaram
I will try both of your methods.
Thanks all of you.
Regards
Hung