How to change password in linux

coldplay.xixi
Release: 2020-10-22 18:19:44
Original
16031 people have browsed it

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

How to change password in linux

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]#
Copy after login

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

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

3、chpasswd 命令,命令行修改

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

相关免费学习推荐:linux视频教程

The above is the detailed content of How to change password in linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!