a test for an expired pw on account?

Stuart Browne stuart.browne at ausregistry.com.au
Tue Jun 8 01:44:14 CEST 2010


As you've not said what system you're wanting to check account expirations on, it makes it a bit hard to give decent advice.

On a Linux box, about the closest I can think of is to run 'passwd -S <user>' on every user on a box.  This specific command only works for local accounts however.  If in an ldap environment, then you could use ldapsearch to return each account and their expiry date (with a little creative math and knowing the policies).  A similar method might be usable for an AD environment.

More details, better answers.  Give it a shot :)

Stuart

From: Julie [mailto:islandjewel at gmail.com]
Sent: Tuesday, 8 June 2010 03:40
To: Nagios Users List
Subject: [Nagios-users] a test for an expired pw on account?

Hi,

Does anyone know if this exists - a way to test if an account has an expired password?  have an account that requires the PW to be reset periodically, and need to know a week before it is about to expire so it can be reset before jobs fail..

thanks
~J~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100608/7dacfd51/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list