In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail about using linux's passwd command to change the password of a user's account. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
The passwd command is used to set the user's authentication information, including user password, account lock, password invalidation, and so on. Run the passwd command directly to change the current user password, and administrator privileges are required for password operations on other users.
Common format: passwd [parameters]
Common parameters:
-d delete password-l lock user password, cannot be modified by user-u unlock locked user password, allow user to modify-e password expires immediately, next login force change password-k to retain expired users can still use-S to query password status after expiration
Reference example
Change the password of the current login account:
[root@linuxcool ~] # passwd
Change the passwords of other users (assuming a linuxprobe user):
[root@linuxcool ~] # passwd linuxcool
The lock password does not allow users to modify:
[root@linuxcool ~] # passwd-l linuxcool
Unlock the password, allowing the user to modify:
[root@linuxcool] # passwd-u linuxcool
The next time you log in, you must change your password:
[root@linuxcool] # passwd-e linuxcool
Clear the login password. No password is required when logging in after clearance, which is extremely risky and is not recommended:
[root@linuxcool] # passwd-d linuxcool
Query password status:
[root@linuxcool ~] # passwd-S linuxcool on using linux's passwd command to change the password of a user's account is shared here. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 242
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.