In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-08 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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.