当前位置:网站首页>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
边栏推荐
- DO447管理用户和团队的访问
- Communication summary between MCU and 4G module (EC20)
- Jerry's CPU performance test [chapter]
- Leetcode 112 Total path (2022.04.22)
- 科技云报道:云计算进入“下半场”,国产云的出路在哪儿?
- JSP基础知识总结
- Jerry's AI server [chapter]
- Technology cloud report: cloud computing has entered the "second half". Where is the way out for domestic cloud?
- 最长公共子序列(记录路径版)
- 《维C中国》乡村助农暖人心第三站嘉宝果农场
猜你喜欢
In the context of Internet plus, how can enterprises innovate customer service?
2022 Saison 6 perfect Kid Model IPA national race Leading the Meta - Universe Track
2022 melting welding and thermal cutting operation certificate examination question simulation examination platform operation
Google developer tool preserve log
领导/老师让填写电子excel表格文档可手机上如何编辑word/excel文件填写excel/word电子文档?
Custom numeric input control
教程】如何用GCC“零汇编”白嫖MDK
2022第六季完美童模 IPA國民賽領跑元宇宙賽道
Unrelated interprocess communication -- creation and use of named pipes
ai2022新功能,illustrator 2022 新功能介绍
随机推荐
腾讯云接口进行人脸检测 和签名出错问题
Jerry's AI server [chapter]
DFS parity pruning
力扣(LeetCode)112. 路径总和(2022.04.22)
Jisuan Hakka spectrum (DFS for direct post algebra)
EBS:PO_EMPLOYEE_HIERARCHIES_ALL
角色个人属性英文缩写
Modify array (and search set)
iTextSharp 显示中文字体
Counting garlic guest: the solution of the equation
Detonate the bomb (DFS)
NPM -- configure Taobao image
角色個人屬性英文縮寫
Learning methods and career development guide (2022 Edition)
彻底卸载Antidote 10 ?Antidote卸载不干净怎么办?
UVC camera encapsulation class
Challenges often faced by client project management
W801/W800-wifi-socket开发(二)-UDP蓝牙控制wifi连接
New functions of ai2022, introduction to new functions of illustrator 2022
ai2022新功能,illustrator 2022 新功能介绍