Gpasswd command in linux

Source: Internet
Author: User
Gpasswd command function in linux: Management Group usage: gpasswd [-auser] [-duser] [-Auser,...] [-Muser,...] [-r] [-R] groupname parameter:-a: Add user to group-d: delete user from group-A: specify administrator-M: the purpose of the specified group member is similar to that of-A.-r: delete... gpasswd command function in linux: Management Group usage: gpasswd [-a user] [-d user] [-A user,...] [-M user,...] [-r] [-R] groupname parameter:-a: Add user to group-d: delete user from group-A: specify administrator-M: the purpose of the specified group member is similar to that of-A.-r: delete the password-R: restrict user logon to the group. only members in the group can use newgrp to join the group gpasswd groupname: if the system has a peter account, the account itself is not a member of the groupname group. to use newgrp, you need to enter a password to allow users to temporarily join the group. Group members. the file group created by peter will also be groupname. Therefore, this method allows peter to use another group when creating files, instead of the group where peter is. Therefore, you can use gpasswd groupname to set the password so that those who know the group password can temporarily switch to those who have the groupname group function. gpasswd-A peter users, so that peter is the administrator of the users group, you can perform the following operations: gpasswd-a mary usersgpasswd-a allen users note: to add a user to a group, you can use the usermod-G group_name user_name command to add a user to the specified group, but the previously added group will be cleared. Therefore, to add a user to a group and retain the previously added group, use the gpasswd command to add the user: gpasswd-a user_name group_name in question ???? R, many? How many are r waits ?? Program ???? Together? (1) c ??? Modify ,?? R me ?? Yes? OK? Is there a specified person in the magazine? T? How can this problem be solved? Too many ?? Indows, me ?? Available? Bucket security? Exhausted ?? A href =" http://www.2cto.com/os/linux/ "Target =" _ blank "class =" keylink "> is also available in Linux? Similar function, towns on ?? R? It refers to the UPG (User Private Group) function. Next? Tuo mi? Then f Ming. UPG (User Private Group) function ,??? Function management is very easy. Only one ???? Wei Xianxiao, Li yunyun.com, below? Usage of the command gpasswd <== Create a specific group? Password? Gpasswd- <== Add a user to a specific group? Gpasswd- <= Add a manager to a specific group? Gpasswd-d <==? H apart from the specific group? User gpasswd-r <==? H Division of groups? Password? Gpasswd-R <== Join group? Password? (Required? Gpasswd ? Use) gshadow ??? Group? Name? : Group? Password? : Delegate administrator: group? Cheng? Tgroup ??? Group? Name? : Group? Password? : Group? Generation? : Group? Cheng? Tnewgrp? For example, what is today ?? New case, yes ?? 1 ??? IoT platform has three programs ???? (Towns01, towns02, and towns03) together ?? Program, towns required? Put one ?? Null ?, Can three programmers be the same? R? Incoming? Null ?,? K. is there some management? Too many? Owns Creation 1 ??? Magazines and groups? Success ,? K? Set towns? Why? Group? The administrator mkdir/sellgroupadd sellgpasswd-A towns sellusermod command usermod-a-G root towns ==> ?? Add owns to the root group ?, Make towns? Why? Oot? Why? /Div> ??? Can the command be used? To gpasswd- ? Result
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.