On Thu, 2004-12-16 at 18:17, Srinivasa Pradeep wrote: > > > I want to know if there is any API, to > > > get the password state, like Expired, Warning > > number > > > of days, etc. Got me thinking and looking. A cursory look at /etc/shadow reveals lines like: user:[encrypted hash]:12741:0:99999:7:::
First is user name Second is encrypted password Third field is days from 1st Jan1970 Fourth is password should expire or not Fifth last day of expiry Sixth no of days password to be allowed for use after expiry. You can build a script to check when expiry is coming up from these informations. Of course is fourth is set to "0" then no expiry! Gurus correct me if my summary is wrong. -- Sudev Barar Learning Linux ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
