- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- root password has expired
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
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
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
тАО09-13-2005 03:58 AM
тАО09-13-2005 03:58 AM
while doing su from normal users id getting message "password has expired".
This is HP-UX system. now how I can recover the root password. needs immediate help on it.
Regds
Jack
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 04:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 04:02 AM
тАО09-13-2005 04:02 AM
Re: root password has expired
Trusted system:
/usr/lbin/modprpw -k root
If no window open, login as root on the console.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 04:06 AM
тАО09-13-2005 04:06 AM
Re: root password has expired
Should be /usr/lbin/modprpw -v root
This will refresh the acct
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 04:07 AM
тАО09-13-2005 04:07 AM
Re: root password has expired
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 04:10 AM
тАО09-13-2005 04:10 AM
Re: root password has expired
SU does not support logging into an with an expired password. This is because is doesn't support prompting for old/new passwords to allow you to change the password.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 04:16 AM
тАО09-13-2005 04:16 AM
Re: root password has expired
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 06:04 AM
тАО09-13-2005 06:04 AM
Re: root password has expired
Sorry forget to tell that I connect remotely.
I got it I have to use console and then go to single user mode and then with passwd
command change the passwd.
Now the problem is that system is not having any console connected. Could you suggest what kind of console I have to use and it will connect to which port.
The system is HP9000/800/K460.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 06:08 AM
тАО09-13-2005 06:08 AM
Re: root password has expired
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
тАО09-13-2005 06:10 AM
тАО09-13-2005 06:10 AM
Re: root password has expired
root has access on the console always.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 06:10 AM
тАО09-13-2005 06:10 AM
Re: root password has expired
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
тАО09-13-2005 06:18 AM
тАО09-13-2005 06:18 AM
Re: root password has expired
Jack,
Be sure to use a null modem cable for the connection
Is sudo installed? I believe you can sudo to root, even with the root password expired. Once in, you can reactivate/change the password.
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 07:28 AM
тАО09-13-2005 07:28 AM
Re: root password has expired
You said that,Don't have to go to single user mode. Just login on the console.
root has access on the console always.
If I use Hyperterminal it will prompt for login.
here if I use root
I have to give the password:
as I said the password is expired,then how it will allow root to login. Please explain,because if its possible will be very usefull without going to single user mode.As i don't have to reboot the server.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 08:05 AM
тАО09-13-2005 08:05 AM
Re: root password has expired
Another example is if the root account is locked and disabled. If this happens and there is no root window open then you would need to boot into single user mode and unlock the account. This can be quite an interruption to the daily business.
In general, root would not login anywhere else except the console. (This is not always true but I believe it should be)
If you are running 10.20 with C2 security then this changes. Not sure about 11i.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 08:32 AM
тАО09-13-2005 08:32 AM
Re: root password has expired
I expired the root passwd. I could not login from my desk. I login on console and it goes through the routine of saying that password has expired, change passwd, you want to pick (p) a password?
Old password?
This is a trusted system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 08:33 AM
тАО09-13-2005 08:33 AM
Re: root password has expired
Is sudo installed? I believe you can sudo to root, even with the root password expired. Once in, you can reactivate/change the password.
How to check if sudo installed?
Regards
Jack
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 08:47 AM
тАО09-13-2005 08:47 AM
Re: root password has expired
If your ID is authorized to use sudo then
the syntax is /usr/local/bin/sudo su -
It will ask for a password - enter YOUR password not root's. You will then be at a root prompt.
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 10:12 AM
тАО09-13-2005 10:12 AM
Re: root password has expired
I am able to change the root passwd with sudo as I found one user who was authorised to use sudo.
When I tried with my id it says "not the sudoers file".
Now Could you please tell me how I can add my user-ID to use sudo.
Thanks
Jack
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 01:34 PM
тАО09-13-2005 01:34 PM
Re: root password has expired
visudo is one way, visudoers is another or if you sre very careful, you can vi the file directly.
You can download the latest copy (and instructions from
http://hpux.cs.utah.edu/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 03:15 PM
тАО09-13-2005 03:15 PM
Re: root password has expired
you said "I am able to change the root passwd with sudo as I found one user who was authorised to use sudo.
When I tried with my id it says "not the sudoers file"."
Now Could you please tell me how I can add my user-ID to use sudo.
answer:
edit sudoers file, issue command /usr/local/sbin/visudo, then add user that you want to authorised to use sudo, below for example:
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
jack ALL=(ALL) NOPASSWD: ALL
save your sudoers file and try again.
or you can set NULL root password using this command/usr/sam/lbin/usermod.sam -F -p "" root
regards,
-yut-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 03:20 PM
тАО09-13-2005 03:20 PM
Re: root password has expired
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 07:32 PM
тАО09-13-2005 07:32 PM
Re: root password has expired
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2005 09:03 AM
тАО09-14-2005 09:03 AM
Re: root password has expired
I have put my user in sudoers file.
jack ALL=ALL
when I run command /usr/local/bin/sudo su -
it ask for the sudo password. I am trying to put the same password of the user but its not accepting.
Now where I have to put the sudo password for this user.
Second if I dont want to use password where I have to put this.when I try like.
jack ALL=(ALL) NOPASSWD: ALL
and run sudo su -
it says fatal error.
Kindly suggest how to go about for both the options.
Regards
Jack
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2005 09:31 AM
тАО09-14-2005 09:31 AM
Re: root password has expired
In the sudoers file is an entry talking about the members of the wheel group and there are 2 lines, 1 line with a passwd and 1 line without a passwd.
You can remove your "jack ALL=ALL" entry and do this;
Make the group wheel on your HPUX system using the groupadd command. Place your account, jack, into this group. Logout and login. Do the ID command, you should see that you are now a member of the wheel group.
Here is the entry in the sudoers file I was referring to
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
Uncomment that line and you will be able to run all commands without a passwd.
Are using 'visudo' to modify the sudoers file? If not then any changes you make will have no effect while invoking sudo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2005 02:36 AM
тАО09-22-2005 02:36 AM
Re: root password has expired
Thanks for all support.
This query is closed
Regards
Jack