I wanted to set  the minimum length of  passwords  of my users so I
have done the followings in login.conf

1) added  :minpasswordlen=5:\ to    default like:

        :path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/loca
l/bin ~/bin:\

2) Have run cap_mkdb /etc/login.conf

After that still the users can change their passwords to less than 5
characters and no warning are shown to the user . I have tested this
at FreeBSD 6.2, FreeBSD 6.3 and even on FreeBSD 7.0 it doesn't work

But I have found a FreeBSD 4.11 and followed the same steps and I got
following on passwd command:

ns1~# passwd xxxxx
Changing local password for xxxxx.
New password:
Please enter a password at least 5 characters in length.
New password:
Password unchanged.

Am I missing something here? Or this may be a bug on FreeBSD 6.X and 7.X

freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to