linux change passwd

Posted on Posted in linux

更改 linux 密码

passwd

passwd liuhonghe
echo "new_password" | passwd --stdin liuhonghe

chpasswd

# 用户名:新密码
echo "liuhonghe:new_password" | chpasswd

列出所有 home 用户

cat /etc/passwd | grep "/home" | cut -d":" -f1
» 转载请注明来源:呢喃 » linux change passwd

Leave a Reply

Your email address will not be published. Required fields are marked *

twelve − eleven =