Hello,
What I want to know, is that can I know using 
any API, whether the user is within the WARn days to
change the password.
If I am not wrong, the shadow file will not decrement
the days. 
Best Regards,
Pradeep
--- Sudev Barar <[EMAIL PROTECTED]> wrote:

> 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
> 



                
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 



-------------------------------------------------------
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

Reply via email to