选项:
实例:
[root@localhost ~]# echo "hello word"
hello word
[root@itxuezhe ~]# echo "huyuwj" | passwd --stdin centos
Changing password for user centos.
passwd: all authentication tokens updated successfully.
# 更改用户centos的密码。
# 密码:已成功更新所有身份验证令牌。
原文:http://blog.51cto.com/itxuezhe/2337520