1748156 Members
3997 Online
108758 Solutions
New Discussion юеВ

Linux

 
anilkumar.bg
Occasional Contributor

Linux

In a user passwd setting how to set the expire date set for one month.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Linux

Shalom,

man passwd

passwd -x 31 username

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor

Re: Linux

See also che "chage" command (man chage).
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Abhirama.M.V
Occasional Advisor

Re: Linux

hi...
goto /etc/login.defs file & edit these lines....
PASS_MAX_DAYS 1
PASS_MIN_DAYS 0
PASS_MIN_LEN 8
PASS_WARN_AGE 1

change that PASS_WARN_AGE to 31.
Kapil Jha
Honored Contributor

Re: Linux

man passwd
man usrmod,usradd
will show you option to set a lot of paameters not only expire date.
BR,
Kapil
I am in this small bowl, I wane see the real world......
dileepkumarhr
Occasional Advisor

Re: Linux

hi anilkumar.bg..
Go cd /etc
then give ls command
then see login.defs file
then give vi login.defs
where you see these lines....
PASS_MAX_DAYS 99999
PASS_MIN_DAYS 0
PASS_MIN_LEN 5
PASS_WARN_AGE 7

PASS_WARN_AGE is give 30 or 31