美文网首页
linux 修改用户密码的几种方法

linux 修改用户密码的几种方法

作者: nbicelove | 来源:发表于2019-11-26 15:30 被阅读0次

    1、passwd 命令,手动修改:

    [root@localhost testuser]#passwd testuser

    Changing password for user testuser.

    New password:

    Retype new password: passwd: all authentication tokens updated successfully.

    [root@localhost testuser]#

    2、passwd 命令,命令行修改:

    [root@localhost testuser]#echo'!@#$5678'|passwd--stdin testuser

    3、chpasswd 命令,命令行修改

    [root@localhost testuser]#echo'testuser:!@#$5678'|chpasswd

    相关文章

      网友评论

          本文标题:linux 修改用户密码的几种方法

          本文链接:https://www.haomeiwen.com/subject/oizewctx.html