- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- password aging - email warning
Categories
Company
Local Language
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2009 05:06 PM
12-07-2009 05:06 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2009 06:36 PM
12-07-2009 06:36 PM
Solutionis your system trusted system ?
you need to write a script by using below command
/usr/lbin/getprpw -l
and mailx to send email notification to the user that password going to expire,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2009 10:22 AM
12-08-2009 10:22 AM
Re: password aging - email warning
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2009 10:23 AM
12-08-2009 10:23 AM
Re: password aging - email warning
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2009 10:53 AM
12-08-2009 10:53 AM
Re: password aging - email warning
> getprpw -l XYZ
System is not trusted.
Anything else to try?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2009 06:41 PM
12-08-2009 06:41 PM
Re: password aging - email warning
man passwd,
To find out password dates use passwd -a -s, it gives you the date the password is changed and also it gives you the time
write script to check in reference with /etc/security file and send email notification to the users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2009 05:34 AM
12-09-2009 05:34 AM
Re: password aging - email warning
# for user in $(pwget | cut -d: -f1)
do
[ $(passwd -s $user | awk '{print $NF}') \
-lt '10' ] &&
mailx -s 'change password!' $user
done
WARNING: I didn't test it, use it for your own responsibility!
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2009 09:41 PM
12-09-2009 09:41 PM