Chinaunix首页 | 论坛 | 博客
  • 博客访问: 278298
  • 博文数量: 81
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 35
  • 用 户 组: 普通用户
  • 注册时间: 2016-07-19 15:16
文章分类

全部博文(81)

文章存档

2021年(1)

2016年(3)

2015年(6)

2014年(6)

2013年(33)

2012年(32)

分类: SOLARIS

2013-05-04 06:50:29

有时候我们的测试机器,只想设置个简单的密码,例如 hello
但是这时候系统会报错

New Password:
passwd: Password too short - must be at least 6 characters.
New Password:
passwd: The password must contain at least 1 numeric or special character(s).

此时需要更改配置文件/etc/default/passwd 文件:
MAXWEEKS=
MINWEEKS=
PASSLENGTH=5

#MINDIFF=3
#MINALPHA=2
#MINNONALPHA=1
MINUPPER=0
MINLOWER=0
#MAXREPEATS=0
MINSPECIAL=0
MINDIGIT=0


让root 直接登录方式

/etc/user_attr文件中找到root所在的行,将type=role删除
阅读(2734) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~