recommendations for password management tool

Bill Tangren bjt at aa.usno.navy.mil
Wed Feb 22 21:51:01 UTC 2006


Miner, Jonathan W (CSC) (US SSA) wrote:
> Use the native passwd tool... according to the man page:
> 
>        -x     This will set the maximum password lifetime,  in  days,  if  the
>               user’s  account  supports password lifetimes.  Available to root
>               only.
> 
> 
> for u in `cut -d: -f1 /etc/passwd`; do
>   passwd -x 90 $u
> done
> 
> 
> -----Original Message-----
> From:	redhat-list-bounces at redhat.com on behalf of Bill Tangren
> Sent:	Wed 02/22/2006 04:20 PM
> To:	General Red Hat Linux discussion list
> Cc:	
> Subject:	recommendations for password management tool
> 
> I'm looking for a user password management tool that will allow me to alter 
> sp_max in /etc/shadow, the number of days before a change is required in the 
> password. I have the set to 180, and I want to set it to 90 for all my users. 
> I've googled but came up empty. Webmin (which uses usermin) doesn't do this, as 
> far as I can tell.
> 
> Thanks!
> Bill Tangren
> 
> 

Thanks for the script, though I am unclear as to how this will affect non-user 
accounts, like ident, squid, apache, etc.

The man page says "This will set the maximum password lifetime, in days,  if 
the  user's  account supports password lifetimes."

I was hoping for something a little more interactive than that, though, as some 
people changed their passwords recently, and some not so much. I didn't want to 
immediately cut off some users because they changed their password >90 days ago.


Thanks again.






More information about the redhat-list mailing list