- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Reset root password -- Trusted System
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP