In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Today, what the editor shares with you is the method of linux to modify the user group to which the user belongs. I believe many people do not know much about it. In order to let you know more about the method of modifying the user group, I have summarized the following contents for you. Let's look down together. I'm sure you'll get something.
Linux modifies the group to which the user belongs
1. Set the group to which a user belongs
Usermod-g user group username
Note:-g |-- gid. Modify the user's gid. This group must exist.
2. Add users to a group (s)
Usermod-a-G user group username
Note:
-a |-- append to append users to certain groups, using only with the-G option
-G |-- groups, append users to certain groups, and use only with the-an option
This is the end of the method for linux to modify the user group to which the user belongs. I hope the above content can be of certain reference value to everyone and can be put into practice. If you like this article, you might as well 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.