鸿 网 互 联 www.68idc.cn

当前位置 : 服务器租用 > 编程语言开发 > c语言 > >

linux如何修改密码

来源:互联网 作者:佚名 时间:2021-09-27 11:47
linux修改密码的方法:使用chpasswd命令,命令行修改,代码为【[root@localhost testuser]# echo testuser:!@#$5678|chpasswd】。 linux修改密码的方法: 1、passwd 命令,手动修改: [root@localhost testuser]# passwd testuserChanging password for user

linux修改密码的方法:使用chpasswd命令,命令行修改,代码为【[root@localhost testuser]# echo 'testuser:!@#$5678'|chpasswd】。

linux修改密码的方法:

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视频教程

以上就是linux如何修改密码的详细内容,更多请关注鸿网互联其它相关文章!

上一篇:linux中dd命令详解问题
下一篇:没有了
网友评论
<