- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Reset root password -- 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
тАО10-10-2010 04:01 AM
тАО10-10-2010 04:01 AM
Reset root password -- Trusted System
While restting password for root user in trusted HP Unix systems, it is asking for a Old password:
How can i eleminate this question (OLD password:) while resetting root password in HP Unix.
I know that i can remove password entry from the file /tcb/files/auth/r/root, so that it will not ask old password while resetting root password.
Manoj K
Manoj K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2010 07:17 AM
тАО10-10-2010 07:17 AM
Re: Reset root password -- Trusted System
1> Main Menu > bo pri
2> Interact with IPL(Y or N)?> y
3> ISL prompt type : hpux -is
This would take you into the Single user mode where u can change the password
4> Mount all the file System
mountall
5> Change the system to untrusted mode
/usr/lbin/tsconvert -r
6> Then edit the file /tcb/files/auth/r/root
make the passwd field null
7> After that reset password to your desire
passwd root
8> Once you have reset password you can turn the system to the Trusted mode
/usr/lbin/tsconvert -c
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2010 03:52 PM
тАО10-10-2010 03:52 PM
Re: Reset root password -- Trusted System
Manoj, if you have access to a superuser shell, try /sbin/passwd instead of /usr/bin/passwd. I no longer have access to HP-UX systems to test this, but seem to recall that /sbin/passwd would skip the "old password" prompt if run by a superuser. (This is one reason why permissions on /sbin/passwd don't let normal users run it.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2010 06:38 PM
тАО10-10-2010 06:38 PM
Re: Reset root password -- Trusted System
Yes ur going on right track..
go to file /tcb/files/auth/r/root and edit this file remove password entery tht is encrypted and remove the numaric values in tht file save and exit, then come to /tcb/files/auth/system/pwhist null the file pwhist_0.
If u follow this steps this will not ask for the old password while reset.
Hope this solves ur issues
Please assign points.
Thanks!!
Regards
Vishnu Khandare
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2010 08:00 PM
тАО10-10-2010 08:00 PM
Re: Reset root password -- Trusted System
Below is the procedure,
Step 1:
=======
#cd /tcb/files/auth/r
Step 2:
=======
Delete the encrypt password"
#cp -p root xroot
# vi root
..........
...........
:u_pwd=LD0hwR/gGZssU:\ [change to :u_pwd=:\ ]
:wq!
#passwd root
New password:*****
Retype Password:****
Now try to login with new password as root
if success then remove xroot file
Thanks
Minhaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2010 08:35 PM
тАО10-10-2010 08:35 PM
Re: Reset root password -- Trusted System
Thanks for the response.
I think my requirement is not clear. May be the way i have asked the question is wrong.
I don't want to restart my system for resetting root password. I just don't want the question "Old password:" while resetting root password. I clearly told in my first mail that i know the way to clear the password entry from "/tcb/files/auth/r/root". Apart from this if there is any way, if it is please let me know.
Hi Doug Hosking,
I have tried with /sbin/passwd but no luck.
Manoj K
Manoj K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2010 08:46 PM
тАО10-10-2010 08:46 PM
Re: Reset root password -- Trusted System
Just go to pwhist file and make it null, the history file,
As i said earlier,
below is the passwd file of root,without numerice character,
root:u_name=root:u_id#0:\
:u_pwd=:\
:u_bootauth:u_auditid#:\
:u_auditflag#1:\
:u_minchg#:u_exp#:u_succhg#:u_unsucchg#:\
:u_pw_expire_warning#:u_pswduser=root:u_suclog#:u_unsuclog#:\
:u_unsuctty=console:u_lock@:chkent:
Do follow this it will not ask you for OLD password.
Try it. It will solves ur query.
Please do assign points.
Regards
Vishnu Khandare
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2010 08:55 PM
тАО10-10-2010 08:55 PM
Re: Reset root password -- Trusted System
Why it is required to clear the file pwhist.
Changing the apssword entry from /tcb/files/auth/r/root is more than enough for not asking OLD Passwd:
Manoj K
Manoj K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2010 09:01 PM
тАО10-10-2010 09:01 PM
Re: Reset root password -- Trusted System
If you specify any password policy, that not to reuse the old password for X times, it will not allow u to set the same password.
Hence we must clear pwhist also.
Regards
Vishnu Khandare
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2010 09:03 PM
тАО10-10-2010 09:03 PM
Re: Reset root password -- Trusted System
That is not there in my requirement. I don't want to repeat the password.
Manoj K
Manoj K