当前位置: 技术问答>linux和unix
solaris11中如何设置密码长度为两位的?
来源: 互联网 发布时间:2017-02-28
本文导语: 当用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上没...
当用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的内容:
大神们,这个问题该怎么解决啊??
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
大神们,这个问题该怎么解决啊??
|
怎么成水贴了?
passwd ab
这样是不是表示给用户ab更改密码呢
试试,直接运行passwd命令,然后依次输入两遍ab呢
passwd ab
这样是不是表示给用户ab更改密码呢
试试,直接运行passwd命令,然后依次输入两遍ab呢