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/02 Report--
This article will explain in detail about the use of linux's gpasswd command to set up the management user group. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
The gpasswd command is the management tool for the workgroup file / etc/group and / etc/gshadow under Linux. The system administrator can use the-an option to define the group administrator and the-m option to define the member. The gpasswd invoked by the group administrator with the group name only prompts for the new password of the group.
Syntax format: gpasswd [parameters]
Common parameters:
-an add user to group-d remove user from group-A specify administrator-M specify group member and-A use is similar-r delete password-R restrict user to login group, only members of the group can join the group with newgrp
Reference example
Use the-a parameter to add redis users to the linuxcool user group:
[root@linuxcool ~] # gpasswd-a redis linuxcool Adding user redis to group linuxcool
Display the information above to add users to the group using the-a parameter:
[root@linuxcool ~] # more / etc/group | grep linuxcool linuxcool:x:1005:redis
Use the-d parameter to remove the redis user from the linuxcool group:
[root@linuxcool ~] # gpasswd-d redis linuxcool Removing user redis from group linuxcool
Displays whether the redis user for the linuxcool group was deleted successfully:
[root@linuxcool ~] # more / etc/group | grep linuxcool linuxcool:x:1005: this is the end of setting up the management user group using the gpasswd command of linux. 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.