- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Password issue
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
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
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-18-2006 10:47 PM
12-18-2006 10:47 PM
# passwd -f xxxx
$ su - xxxx
Your password was changed by root
Password:
Last successful login for xxxx: Tue Dec 19 EST5EDT 2006
Last unsuccessful login for xxxx: Tue Dec 19 EST5EDT 2006
Your password has expired.
su: Password for xxxx has expired. Choose new password and try again
su: Sorry
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2006 10:58 PM
12-18-2006 10:58 PM
Re: Password issue
this is the correct behaviour !
From "man passwd":
"-f Force user to change password upon next login by expiring the current password."
So you expire the pasword and then log on as that user and the password is signalled as expired.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2006 11:06 PM
12-18-2006 11:06 PM
Re: Password issue
to prevent this from occurring, you should not use the "-f" switch when issueing the passwd command. otherwise, it will ask from a password change when the user tries to login next time.
hope this helps!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2006 11:06 PM
12-18-2006 11:06 PM
Re: Password issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2006 11:13 PM
12-18-2006 11:13 PM
Re: Password issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2006 11:20 PM
12-18-2006 11:20 PM
Solutionthe way to fix this is to log on again (without su).
So,as root:
passwd -f xxx
Now log on as the user for whom you changed the password and it will state that the password is expired and ask the user to change the password.
If you su - to the user the process does not work the way you want it to.
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2006 11:24 PM
12-18-2006 11:24 PM
Re: Password issue
This is not an issue, it works as it designed. You are handling it in a wrong way.
After executing passwd -f user, please set the new password for that user. This can be done either when you try to login using that user or run passwd command as root again to set the new password for that particular user.
unless, you set a password for that user, you cannot do a su, it will fail....
HTH,
Prabu.S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2006 11:29 PM
12-18-2006 11:29 PM
Re: Password issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2006 11:32 PM
12-18-2006 11:32 PM