In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to use linux's usermod command to modify user accounts, which can be used for reference by friends who need it. Let's take a look at it with me.
The usermod command is used to modify the user account. Usermod can be used to modify the settings of a user's account and modify the system account file to reflect the changes specified by the command line.
Syntax format: usermod [parameters]
Common parameters:
-c modify the remarks text of the user account-d modify the directory when the user logs in-e modify the validity period of the account-f modify the number of days after the password expires to close the account-g modify the group to which the user belongs-G modify the additional group to which the user belongs-l modify the user account name-L lock the user password, make the password invalid-s modify the shell-u used by the user after login to unlock the password
Reference example
Change the login directory:
[root@linuxcool] # usermod-d / home/hnlinux root
Change the user's uid:
[root@linuxcool] # usermod-u 777 root
Change the user name to linux:
[root@linuxcool ~] # usermod-l Linux linuxcool
Password to lock linuxcool:
[root@linuxcool] # usermod-L linuxcool
Unlock the password for linuxcool:
[root@linuxcool ~] # usermod-U linuxcool above is how to use the usermod command of linux to modify the details of a user's account. Have you learned anything after reading it? If you want to know more about it, welcome to the industry information!
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.