- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: root passwor lost
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
тАО01-04-2006 03:35 PM
тАО01-04-2006 03:35 PM
i forgot root password in one of the server.I can login as a normal user and use sudo to get root access.However, whwn I am trying to cahnge root password, it is asking for old root password which I forget
Please help how can I solve this with out rebooting the server.
regards
Arun
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2006 03:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2006 03:46 PM
тАО01-04-2006 03:46 PM
Re: root passwor lost
If am using passwd root, it is asking for the old root password which I could not recall.Any other means?
regards
Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2006 04:07 PM
тАО01-04-2006 04:07 PM
Re: root passwor lost
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2006 04:09 PM
тАО01-04-2006 04:09 PM
Re: root passwor lost
If you're not using trusted system, just simply edit /etc/passwd file (NOTE : copy first /etc/passwd to other directory for backup).
FROM :
root:8nvuu.Ki4lSO2:0:3::/:/sbin/sh
TO :
root::0:3::/:/sbin/sh
And after that, run command below :
# passwd root
Hope this information can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2006 04:11 PM
тАО01-04-2006 04:11 PM
Re: root passwor lost
you said you can have root access by "sudo" here is a quick solution.
get root access and make sure you have write access to /etc/shadow file.
copy & paste the encrypted passwd from another system to this one
For example if this is the root entry in /etc/shadow of the system you have forgoten root passwd. Then just replace the "$1$t....AWPv/" part.
root:$1$tGqE/hYd$ijdjPK645e/MrlkDFAWPv/:12192:0:99999:7:::
if you do not have write access to /etc/shadow file, can you reboot it to single user mode ? then you should be able to change root passwd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2006 04:18 PM
тАО01-04-2006 04:18 PM
Re: root passwor lost
regarding my previous reply, if your system is not a trusted sytem yet then you just need to change /etc/passwd file not /etc/shadow file.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2006 06:42 PM
тАО01-04-2006 06:42 PM
Re: root passwor lost
last I got the solution.
In a trusted system, individual password files are stored on /tcb/files/auth/r directory with a file name root.remove password field from this field as well as /etc/passwd.then we can issuew passwd command.thanks for all help.
regds
ARun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2006 12:18 AM
тАО01-05-2006 12:18 AM
Re: root passwor lost
You need to work in ISL mode to change ur password.. Do the following steps..
Reboot the machine and press Esc buttom in ur key board..
From the menu screen press a to go the administration access..
type boot isl pri
press yes ..
type..
hpux -is
it will take u to single user mode .. u can now change ur password..
passwd root ( change the root password)
Hope this will resolve ur issue.
cheers
indrajit