当前位置:网站首页>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
边栏推荐
- W801 / w800 WiFi socket development (II) - UDP Bluetooth control WiFi connection
- Jerry's AI server [chapter]
- LSF的常用使用命令总结
- (product resources) mingdeyang ad8488 module high performance digital X-ray FMC interface 128 analog channel high-speed ADC chip
- J-Link RTT使用
- Redis implements distributed locks
- 01 knapsack problem - and deformation problem
- Do447 manage user and team access
- How can e-procurement become a value-added function in the supply chain?
- Cc2541 emulator CC debugger tutorial
猜你喜欢

Longest common subsequence (record path version)

Counting garlic guest: the solution of the equation

Basic knowledge of software testing, you can meet the interviewer after reading it
![[experience tutorial] Alipay balance automatically transferred to the balance of treasure how to set off, cancel Alipay balance automatically transferred to balance treasure?](/img/d5/6aa14af59144b8c99aa6a367479f6b.png)
[experience tutorial] Alipay balance automatically transferred to the balance of treasure how to set off, cancel Alipay balance automatically transferred to balance treasure?

MySQL basic record
![[course summary] Hello harmonyos series of courses, take you to zero foundation introduction](/img/65/96ff0b526cd8f507df82c80a47a35e.jpg)
[course summary] Hello harmonyos series of courses, take you to zero foundation introduction

NR polar code 七- SCL(succesive cancellation list decoding)

Chris LATTNER, father of llvm: the golden age of compilers
![[registration] tf54: engineer growth map and excellent R & D organization building](/img/c6/ae2c6427bd6af764ac614d59be54db.png)
[registration] tf54: engineer growth map and excellent R & D organization building

Futr3d: a unified 3D detection framework for sensor fusion
随机推荐
2022 Saison 6 perfect Kid Model IPA national race Leading the Meta - Universe Track
DO447管理用户和团队的访问
关于C4D动画如何导入Lumion
无关联进程间通信 —— 命名管道的创建和使用
Leetcode-阶乘函数后 K 个零
Longest common subsequence (record path version)
UVC camera encapsulation class
Garlic customer: equilateral triangle (DFS)
《维C中国》乡村助农暖人心第三站嘉宝果农场
最长公共子序列(记录路径版)
Jerry's AI server [chapter]
leetcode771. Gemstones and stones
2022.4.10-----leetcode.804
Oracle database query lock table SQL script and delete lock information script (necessary for database development ETL and DBA)
Abused "architect"!
JSP basic knowledge summary
The most easy to understand service container and scope of dependency injection
NR polar code 七- SCL(succesive cancellation list decoding)
Chris LATTNER, father of llvm: the golden age of compilers
The sixth season of 2022, the perfect children's model IPA national race leads the yuanuniverse track