password: howto require a new password when hold is expired

Thomas Cameron thomas.cameron at camerontech.com
Fri Nov 19 15:12:12 UTC 2004


On Thu, 2004-11-18 at 07:14, Dario Lesca wrote:
> It is possible to require a new password when hold password is expired
> when a user do login with telnet or ssh?
> 
> I have set the expire password via chage command, but when the password
> expire the account is unavaiable and do not require a new password
> 
> Is possible do that? or I must insert some shell script into
> /etc/profile?
> 
> Many thanks, (and sorry for my bad english)
> 
> -- 
> Dario Lesca <d.lesca at solinos.it>

Read the man page for chage, it describes how to set the waarning and
expiration for users.  For instance, I set my accounts to force a
password change every 60 days and warn the user 14 days before it fails:

chage -W 14 -M 60 [username]

Hope this helps!
-- 
A: Because people read from top to bottom
Q: Why is top posting bad?

Thomas Cameron, RHCE, CNE, MCSE, MCT




More information about the fedora-list mailing list