In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "how to use the chage command of Linux". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope that this article "how to use the chage command of Linux" can help you solve the problem.
The Linux common command chage command is used to change the validity period of the account and password.
Syntax chage [options] username option-m: the minimum number of days that the password can be changed. 00:00 means you can change the password at any time. -M: the maximum number of days that the password remains valid. -w: the number of days before the user's password expires to receive a warning message in advance. -E: date on which the account expires. After this day, this account will not be available. -d: date of the last change. -I: period of stagnation. If a password has expired these days, then this account will not be available. -l: enumerates the current settings. It is up to unprivileged users to determine when their passwords or accounts expire. Example [root@localhost ~] # chage-l zhangy # View user password settings last password modification time: April 27 2013 password expiration time: never password expiration time: never account expiration time: minimum number of days between passwords never changed twice:-1 change secret twice Maximum number of days between codes:-1 days before password expiration:-1 [root@localhost ~] # chage-M 90 zhangy # password valid for 90 days [root@localhost ~] # chage-d 0 zhangy # force user to change password [root@localhost ~] # chage-d 0-m 0-M 90-W 15 zhangy # force user to change password the next time they log in And set the password with a minimum validity period of 0 and a maximum period of 90, and send an alarm 15 days in advance about "how to use the chage command of Linux". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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: 0
*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.