Part of samba.netcmd.group View In Hierarchy
This command removes one or more members from an existing Active Directory group. The command accepts one or more group member names seperated by commas. A group member may be a user or computer account or another Active Directory group that is a member of the group specified on the command.
When a member is removed from a group, inherited permissions and rights will no longer apply to the member.
Example1: samba-tool group removemembers supergroup Group1 -H ldap://samba.samdom.example.com -Uadministrator%passw0rd
Example1 shows how to remove Group1 from supergroup. The command will run on the remote server specified on the -H parameter. The -U parameter is used to pass the userid and password of a user authorized to issue the command on the remote server.
Example2: sudo samba-tool group removemembers supergroup User1
Example2 shows how to remove a single user account, User2, from the supergroup AD group. It uses the sudo command to run as root when issuing the command.
Method | run | Run the command. This should be overriden by all subclasses. |
Inherited from Command:
Method | __init__ | Undocumented |
Method | usage | Undocumented |
Method | show_command_error | display a command error |
Method | message | Undocumented |
Method | get_logger | Get a logger object. |
Method | _get_short_description | Undocumented |
Method | _get_full_description | Undocumented |
Method | _get_name | Undocumented |
Method | _create_parser | Undocumented |
Method | _run | Undocumented |