In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to manage and configure users and groups of the centOS 7 system. The content is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Type of user in 1.Linux
Super Admin root, default ID is 0; Super Admin root can only have one ID0 by default
All accounts created by ordinary users except administrators are ordinary users; default ID500~60000
Program users manage the application usage of the Linux system; default ID1~499
two。 Type of group
Basic groups and additional groups; a group is a collection of users
3. Type of user associated profile
4. Add common options for account useradd
-d specifies the user hosting directory, which is in / home by default
-e specify the time when the account expires
-g specifies the group number or name of the basic group
-G specifies the group number or name of the additional group
-m does not establish a host directory
-s specifies login shell
5. User sets password
The function of the passwd command to set the password
-d clear the password
-l lock the account
-s to check the account lock status
6. Modify common options for users to configure usermod
-l modify the user name
-U unlock the user
-L Lock the account
-d modify the host directory
-e set account expiration time
-g set basic group
-G sets additional groups
-s modify the login shell of the user
II. Configuration file of the group
1. Common options for creating a group groupadd
-g specify the GID or the name of the group
Modify common properties of a group
-an add account
-M add multiple accounts
-d delete a user in a group
III. The attribution of the document directory
1. Access permission
1) read
R stands for or the number 4
Allow viewing of file contents
Allow data in the directory to be listed
2) write-* access permission
W stands for or the number 2
Allow the contents of the file to be modified
Allow creation of subdirectory subfiles to delete data
3) Executive permission
X means to use the number 1
Allow the program to run
Allow switching between directories
two。 Vested ownership
Owner: the permissions that the user has
Group: the permissions that a group has on a file or directory
Other users 0: network account access belongs to other users
3.chmod sets permissions, attributes of chmod
-R sets permissions for directory recursion
The above content is how to manage and configure users and groups in centOS 7 system. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
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.