Click to See Complete Forum and Search --> : Forcing user to change password every 6 months


Zoist
02-23-2003, 01:52 PM
I remember years ago when I used a Digital Unix machine at a Uni near me it made you change your password every few months (when logged in telnet). Is there such a thing for Linux?

Also, what ever happened to Digital Unix?

kam
02-23-2003, 02:03 PM
Yes, its one of the fields in /etc/passwd. 'man passwd' should have everything you need to know.

mdwatts
02-23-2003, 02:20 PM
/etc/login.def

#
# Password aging controls:
#
# PASS_MAX_DAYS Maximum number of days a password may be used.
# PASS_MIN_DAYS Minimum number of days allowed between password changes.
# PASS_MIN_LEN Minimum acceptable password length.
# PASS_WARN_AGE Number of days warning given before a password expires.
#
PASS_MAX_DAYS 99999
PASS_MIN_DAYS 0
PASS_MIN_LEN 5
PASS_WARN_AGE 7

Zoist
02-23-2003, 02:23 PM
I don't have a login def file. :(

kam
02-23-2003, 05:57 PM
Sorry, its in /etc/shadow. Its the 5th field.

P.S. Do you have a login.defs? I guess they should go in there like mdwatts said.

mdwatts
02-23-2003, 06:05 PM
Originally posted by kam
P.S. Do you have a login.defs? I guess they should go in there like mdwatts said.

Ooops... That should be /etc/login.defs

Thanks kam

Zoist... Don't tell me you do have a /etc/login.defs and not a /etc/login.def.

ls -al /etc/login.* (would have found either)

Zoist
02-23-2003, 10:53 PM
Originally posted by mdwatts

Zoist... Don't tell me you do have a

Well that is the case.

Thanks for helping me :)