http://my.oschina.net/zengsai/blog/5534
Ubuntu不能修改密碼,長度太短或太簡單?
發表于 2010年06月13日 11:05
在安裝 Ubuntu 的時候建立的帳戶 sai,想把密碼改成兩個字母aa,方便輸入。
運行終端
sai@xmomx:~$ passwd sai
更改 sai 的密碼。
(當前)UNIX 密碼: xx
輸入新的 UNIX 密碼: aa
重新輸入新的 UNIX 密碼:aa
必須選擇更長的密碼
輸入新的 UNIX 密碼: 1234567
重新輸入新的 UNIX 密碼: 1234567
Bad: new password is too simple
輸入新的 UNIX 密碼:
綠色為手動輸入。怎么辦?加上su權限執行即可。這樣來做:
方案一:
sai@xmomx:~$ sudo passwd sai
[sudo] password for sai: xxx
輸入新的 UNIX 密碼: aa
重新輸入新的 UNIX 密碼: aa
passwd:已成功更新密碼
方案二:
sai@xmomx:~$ su
密碼: super
root@xmomx:/home/sai# passwd sai
輸入新的 UNIX 密碼: aa
重新輸入新的 UNIX 密碼: aa
passwd:已成功更新密碼
root@xmomx:/home/sai#
成功!