标签:用户 password simplistic 更改密码
交互更改密码(oldboy是用户)
[root@zjj ~]# passwd oldboy
Changing password for user oldboy.
New password:
BAD PASSWORD: it is too simplistic/systematic
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
无需交互更改密码
echo 123456|passwd --stdin oldboy //123456是密码,oldboy是用户
Changing password for user oldboy.
passwd: all authentication tokens updated successfully.
但此方法在history中可以看到密码,一下命令可删除历史纪录中某行
history -d 33 //删除历史纪录中某行,33为行数
注:此内容均为自学笔记,纪录较随意,仅供参考,谢谢;
本文出自 “11104762” 博客,请务必保留此出处http://11114762.blog.51cto.com/11104762/1826652
标签:用户 password simplistic 更改密码
原文地址:http://11114762.blog.51cto.com/11104762/1826652