login.conf password options
jamesh at lanl.gov
Thu Dec 13 10:23:07 PST 2007
I've slowly been setting up some options for the default class in
login.conf such that passwords will expire after 150 days. To test
whether this functionality was working, I have a warning appear on the
first day, so that if I set a password and log in , I ought to be warned
that my password will expire in 150 days.
It doesn't appear to be working. I am not receiving any kind of warning
that my password will expire.
To see whether I was correctly in the default class, I changed the
message of the day file from /etc/motd to /etc/motw, and the message of
the day changed appropriately. I then set up a session limit of an hour
and a half with a warning appearing after 1 minute, but that isn't
The method I'm using is this: I use vi to edit the /etc/login.conf, then
run cap_mkdb /etc/login.conf. I then reboot the machine, to make sure
that everything that ought to be paying attention does.
I suspected that /etc/master.passwd might need updating, so I used vipw,
made a trivial change, saved the change, but nothing.
My default class reads:
:path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin ~/bin:\
More information about the freebsd-questions