- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- password expiration message
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
09-19-2002 03:25 PM
09-19-2002 03:25 PM
Last successful login for
Last unsuccessful login for
then if their password is about to expire that message will appear then immediatly the copyright information will be displayed. I know that /etc/profile is doing a cat of /etc/copyright and I could just eliminate it (at least I don't think there is anything stopping me from doing so) but what I would like to do is find some way to display the "password is expiring" message after the copyright info and right before the shell prompt. I would also like to possibly force the user to acknowledge the message and/or give them the ability to change their password at that time. Any thoughts?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2002 04:30 PM
09-19-2002 04:30 PM
Re: password expiration message
Have you set the "Password Expiration Warning Time (days)" ?
You can go to
SAM -> Auditing and Security -> System Security Policies -> Password Aging Policies
When you enable the "Password Aging" then you can set the according field. This is the default policies when you create the user next time.
For existing user, you can update that field by using 'passwd -w
Below is the messages output when I enable that field,
HP-UX hostname B.11.11 U 9000/800 (ta)
login: root
Password:
Last successful login for root: Fri Sep 20 08:26:35 EAT-8 2002 on pts/ta
Last unsuccessful login for root: Sun Jun 30 16:56:13 EAT-8 2002
Your password will expire on Tue Sep 24 16:08:41 EAT-8 2002
Please wait...checking for disk quotas
Value of TERM has been set to "vt100".
WARNING: YOU ARE SUPERUSER !!
root@hostname:/ *)
>
Regards,
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2002 05:10 PM
09-19-2002 05:10 PM
Solutionecho "To read copyrights: cat /etc/copyright"
Now the requisite copyright notice has been displayed. That reduces login clutter. Now the passwd command has been siginificantly enhanced for 11.0 and up. The passwd -s option is something you can use to decode some of the expiration options. Check out the others.
Another option is to look at the man page for getprpw (missing at 11.0, there at 11.11) or read it at docs.hp.com. The -m option allows you to retrieve all the Trusted info for a specific user.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2002 07:06 AM
09-20-2002 07:06 AM
Re: password expiration message
Yes I have the "password expiration warning time" set. Sorry I wasn't clear on that. What is happening is the user gets the message but it scrolles off the screen so fast because the copyright info gets displayed. Therefor they never get the chance to read it and in certain cases their accounts get disabled. What we need to do is make sure the user gets to see the message. Again sorry I wasn't clear on that point.
Bill,
Thanks for your suggestions I will look into them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2002 07:48 AM
09-20-2002 07:48 AM
Re: password expiration message
If it is not too annoying for them, put a "sleep n" at the beginning of /etc/profile.
This will keep your expiration message for n seconds and then display the rest of it.
You can be more specific, put a statement like this in /etc/profile in the beginning.
echo "press any key to return"
read
Also, you can run getprpw command against the user and write a script and put it in profile if you want to customize it.
-Sri