1833875 Members
1815 Online
110063 Solutions
New Discussion

Password Expiry.

 
unixguy_1
Regular Advisor

Password Expiry.

Dear Friends,

How to set expiry date for the User password?

Regards,
Unixguy.
7 REPLIES 7
Fedon Kadifeli
Super Advisor

Re: Password Expiry.

Do:

# man passwd

and look for "expir".

The options -n -w and -x are what you are looking for.
unixguy_1
Regular Advisor

Re: Password Expiry.


If u don't mind can u give the correct syntax.

Regards,
Unixguy.

Tingli
Esteemed Contributor

Re: Password Expiry.

/bin/passwd -r files -x 90 -w 7 -n 20 $USER_NAME
Frank de Vries
Respected Contributor

Re: Password Expiry.

you can also use SAM
or do it commandline

passwd -n 50 userx
will set the minimum days
passwd -x 60 userx
will set the maximum days
passwd -w 50 userx
will set the days when warning is given

passwd -f userx
User will need to change password at firt login time

regards,
Look before you leap
Pete Randall
Outstanding Contributor

Re: Password Expiry.

passwd [-n min] [-w warn] [-x max] name

-n = the minimum number of days, min, that must transpire before the user can change the password

-w = the number of days, warn, prior to the password expiring when the user will be notified that the password needs to be changed

-x = the maximum number of days, max, a password can remain unchanged

The man pages are your friends!!


Pete

Pete
unixguy_1
Regular Advisor

Re: Password Expiry.


Thanks a lot for giving the excellent soluutions.

Regards,
Unixguy.
Md. Farhan A Azam
Trusted Contributor

Re: Password Expiry.

Hi,

You can set through sam.

sam - Auditing and security - system security policy.

Here you can set the policy.


Farhan