- 论坛徽章:
- 0
|
当用passwd命令修改密码为两位的时候提示:
root@SE-T2-06:/# passwd ab
New Password:
passwd: The first 256 characters of the old and new passwords must differ by at least 3 positions.
Please try again
以上问题在solaris9或者solaris10上没有发生。
这不是密码长度过短的问题,我已经按照http://bbs.chinaunix.net/thread-991376-1-1.html里说的使密码支持了任意长度了。
/etc/default/passwd的内容:- #ident "%Z%%M% %I% %E% SMI"
- #
- # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
- # Use is subject to license terms.
- #
- MAXWEEKS=
- MINWEEKS=
- PASSLENGTH=0
- # NAMECHECK enables/disables login name checking.
- # The default is to do login name checking.
- # Specifying a value of "NO" will disable login name checking.
- #
- NAMECHECK=NO
- # HISTORY sets the number of prior password changes to keep and
- # check for a user when changing passwords. Setting the HISTORY
- # value to zero (0), or removing/commenting out the flag will
- # cause all users' prior password history to be discarded at the
- # next password change by any user. No password history will
- # be checked if the flag is not present or has zero value.
- # The maximum value of HISTORY is 26.
- #
- # This flag is only enforced for user accounts defined in the
- # local passwd(4)/shadow(4) files.
- #
- HISTORY=0
- #
- # Password complexity tunables. The values listed are the defaults
- # which are compatible with previous releases of passwd.
- # See passwd(1) and pam_authtok_check(5) for use warnings and
- # discussion of the use of these options.
- #
- #MINDIFF=0
- #MINALPHA=0
- MINNONALPHA=0
- #MINUPPER=0
- #MINLOWER=0
- #MAXREPEATS=0
- #MINSPECIAL=0
- #MINDIGIT=0
- #WHITESPACE=YES
- #
- #
- # passwd performs dictionary lookups if DICTIONLIST or DICTIONDBDIR
- # is defined. If the password database does not yet exist, it is
- # created by passwd. See passwd(1), pam_authtok_check(5) and
- # mkpwdict(1M) for more information.
- #
- #DICTIONLIST=
- #DICTIONDBDIR=/var/passwd
复制代码 大神们,这个问题该怎么解决啊?? |
|