当前位置:网站首页>Echo "new password" |passwd -- stdin user name
Echo "new password" |passwd -- stdin user name
2022-04-23 01:47:00 【larance】
-stdin
This option is used to indicate that passwd should read the new password from standard input, which can be a pipe.
This option is used to read the new password from the standard input pipe .
Use echo Way to reset Linux System user password :
echo “ New password ”|passwd --stdin user name
[root@rhel7 ~]# passwd --stdin rusky by rusky User set password .
Changing password for user rusky.
zxcvbnm
passwd: all authentication tokens updated successfully.
[root@rhel7 ~]# echo "qwert"
qwert
[root@rhel7 ~]# echo "qwert" | passwd --stdin rusky hold echo Characters returned qwert Set to user rusky Password
Changing password for user rusky.
passwd: all authentication tokens updated successfully.
[root@rhel7 ~]#
It's a simple way , But by history Command can find the user's password , So it's not safe .
版权声明
本文为[larance]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220912220606.html
边栏推荐
- Challenges often faced by client project management
- 2022.4.20-----leetcode. three hundred and eighty-eight
- Full Permutation (DFS and next_permutation solution)
- 腾讯云接口进行人脸检测 和签名出错问题
- 2022 Saison 6 perfect Kid Model IPA national race Leading the Meta - Universe Track
- Encrypted compressed backup bat script
- Jerry's CPU performance test [chapter]
- 2022.4.10-----leetcode.804
- 领导/老师让填写电子excel表格文档可手机上如何编辑word/excel文件填写excel/word电子文档?
- Counting garlic guest: the solution of the equation
猜你喜欢

Chapter 6 uses Matplotlib to draw thermodynamic diagram

2022 low voltage electrician examination questions and answers

第六章 使用 matplotlib 绘制热力图

MySQL basic record

When should I write unit tests? What is TDD?

电子采购如何成为供应链中的增值功能?

Basic knowledge of software testing, you can meet the interviewer after reading it

Leetcode 112 Total path (2022.04.22)

Error in face detection and signature of Tencent cloud interface

Google developer tool preserve log
随机推荐
Summary of commonly used commands of LSF
Itextsharp infrastructure
Tight coupling of visual wheel odometer
NPM -- configure Taobao image
彻底卸载Antidote 10 ?Antidote卸载不干净怎么办?
English abbreviation of role personal attribute
单片机和4G模块通信总结(EC20)
使用单元测试框架编写单元测试的好处?
DFS parity pruning
W801/W800-wifi-socket开发(一)-UDP
Qingyan environment and Shenzhen Stock Exchange listing: annual revenue of 180 million and market value of 4.1 billion
Linux系统下以RPM方式如何安装mysql-5.7.9
Full Permutation (DFS and next_permutation solution)
Completely uninstall antidote 10? What if the antidote uninstall is not clean?
紫光国微财报一枝独秀 2021年净利润三位数增长靠什么
2022.4.22-----leetcode. three hundred and ninety-six
Server 2019 the available memory of the server is half of the actual memory
W801 / w800 WiFi socket development (I) - UDP
无关联进程间通信 —— 命名管道的创建和使用
How to install mysql-5.7.9 in RPM mode under Linux system