In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 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 the use of linux's adduser command to create users. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
The adduser command comes from the English "adduser", which is used to add a user account or update a default user profile. The adduser instruction and the useradd instruction are the same instruction (via symbolic link symbolic link).
Syntax format: adduser [parameters]
Common parameters:
-c plus the memo file, the memo text will be stored in the passwd memo parameter-d specify the starting directory when the user logs in-D change the default value-e set the usage period of this account (format is YYYY-MM-DD) The default value is permanent-f specifies how many days after the password expires to close the account-g specifies the group to which the specified user belongs-G specifies the additional group to which the user belongs-m automatically establishes the login directory for the user-M does not automatically establish the login directory for the user-n cancels the establishment of a group with the name of the user-r establishes the system account-s specified user ID used by the specified user after login
Reference example
Set up a user account named linuxcool:
[root@linuxcool ~] # adduser linuxcool
Set up an account and specify the validity period for January 2, 2014:
[root@linuxcool] # adduser-e 1-2-14 linuxcool
Specify the appropriate user group for the added user:
[root@linuxcool ~] # useradd-g root kk
Specify the / home directory for newly added users:
[root@linuxcool] # useradd-d / home/myf kk so much for creating users using linux's adduser command. 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: 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.