创建帐号密码:
[root @test /root]# passwd [username]
[test @test /root]# passwd
[root @test /root]# passwd test
Changing password for user test
New password: <==输入密码
BAD PASSWORD: it is based on a dictionary word
Retype new password: <==再输入一次!
passwd: all authentication tokens updated successfully
2、无回显时候:
echo "password" | passwd --stdin "myuser"