Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Apr 2012 17:15:05 +0800
From:      Jun Li BJ Zhao <zhaojli@cn.ibm.com>
To:        questions@freebsd.org
Subject:   How to set Password Change Time in FreeBSD
Message-ID:  <OF6CADE337.849CD658-ON482579DE.00319FFE-482579DE.0032D92C@cn.ibm.com>

index | next in thread | raw e-mail


Dears,
To force local user in FreeBSD system changing their password periodically,
I want to set Password Change Time. I tried the following two ways, but
both failed. Could you please give me the correct operations? Thanks a lot!

Method 1:
Added passwordtime=2m to /etc/login.conf, then run the command
cap_mkdb /etc/login.conf.
Result: password of any user was not expired after two minutes.

Method 2:
Run the command pw usermod root -p 2m
Result: password of root was expired after two minutes. But after I changed
it one time, it would be never expired again.

My system info:
7.3-RELEASE

Best Regards,
Jun Li Zhao (ÕÔ¿¡Àö)
Smart Business Desktop on IBM Cloud, IBM China Development Lab(CDL)
Email: zhaojli@cn.ibm.com    Phone: +8610-82452120
Address: Diamond B Bldg. #19 Building, Zhong Guan Cun Software Park, #8
Dong Bei Wang West Road, ShangDi, Haidian District, Beijing,
P.R.China,100193
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OF6CADE337.849CD658-ON482579DE.00319FFE-482579DE.0032D92C>