- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- EMAIL NOTIFICATION FOR PASSWORD EXPIRING
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
03-31-2005 04:05 AM
03-31-2005 04:05 AM
EMAIL NOTIFICATION FOR PASSWORD EXPIRING
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 04:16 AM
03-31-2005 04:16 AM
Re: EMAIL NOTIFICATION FOR PASSWORD EXPIRING
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 04:16 AM
03-31-2005 04:16 AM
Re: EMAIL NOTIFICATION FOR PASSWORD EXPIRING
/usr/lbin/modprdef -m expwarn=5
This will send mail to users 5 days before the expiration.
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 04:55 AM
03-31-2005 04:55 AM
Re: EMAIL NOTIFICATION FOR PASSWORD EXPIRING
>
> This will send mail to users 5 days before the expiration.
Actually, this will NOT send any email, it simply writes a message on the screen when you login. Note also that modprdef is a backend command for SAM and is used to report and change system-wide security policies for passwords. So it is undocumented and resides in the /usr/lbin directory.
getprpw is similar but due to customer demand, both modprpw and getprpw now have man pages (11i and higher). This is not easy to figure out because of the mixed data represenations (epoc seconds versus YYYY MMM DAY TIME).
So I've attached a function that requires one variable to be set: USER, and to trace it to watch the steps, you can also set the variable DEBUG. The attachment has 2 lines at the bottom to test it:
USER=$1
DayTillPWexp
Save the attachment in a file (perhaps called expire?), move it to your HP-UX system and make it executable, then run it like this:
./expire billh
or trace it:
DEBUG=1 ./expire billh
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 05:17 PM
03-31-2005 05:17 PM
Re: EMAIL NOTIFICATION FOR PASSWORD EXPIRING
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 11:24 PM
03-31-2005 11:24 PM
Re: EMAIL NOTIFICATION FOR PASSWORD EXPIRING
I want to send an email when it is 14 days before the id's password is to expire. Do I need to have an alias for each id?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2005 01:28 AM
04-01-2005 01:28 AM
Re: EMAIL NOTIFICATION FOR PASSWORD EXPIRING
Unix assumes that each user has their email on the box where they login. That is typically not true anymore, users have email on some other box (perhaps Windows based?). So every user login needs to have a .forward in their login $HOME directory specifying where any email for this login should be sent (no alias necessary). Just put one line in $HOME/.forward for each user. The line is the location where any email should be sent.
Now the function I attached in a previous message was taken from an information script so it simply reports the expiration date. You'll need to rewrite the code to compute the expiration date. Be sure to handle locked accounts (logins -x -l username will tell you) or accounts that are beyond the default limit but not yet locked.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2005 03:15 AM
04-05-2005 03:15 AM