SMBLDAP...MOD.CMD(8)
π NAME π
smbldap-groupmod β ok so this is the one that modifies a group, bestie
β¨ SYNOPSIS β¨
smbldap-groupmod [-g gid [-o]] [-a] [-r rid] [-s sid] [-t group type]
[-n group_name ] [-m members(,)] [-x members (,)] group
π¦ DESCRIPTION π¦
So like, the smbldap-groupmod command edits the system account files to make the changes you asked for on the command line actually happen. It's giving "glow up but for your group entries" π
The options that apply to the smbldap-groupmod command are, in order:
π OPTIONS π
-ggid β the numerical value of the group's ID. This value must be unique, unless you use the-ooption. The value must be non negative. And heads up: any files where the old group ID is the file group ID? You gotta change the file group ID manually yourself, no cap. This command will not do it for you. π-ngroup_name β the name of the group gets changed from group to group_name.-mmembers β the members to be added to the group, in comma-delimeted form.-xmembers β the members to be removed from the group, in comma-delimted form.-aβ add an automatic Security ID for the group (SID). Very slay, very hands-off.-ssid β set the group SID. The SID must be unique and defined with the domain Security ID ($SID) likesid=$SID-ridwhere rid is the group rid.-rrid β set the group rid. The SID is then calculated assid=$SID-ridwhere$SIDis the domain Security ID.-tgroup type β set the NT Group type for the new group. Available values are2(domain group),4(local group) and5(builtin group). The default group type is2.
π EXAMPLES π
Okay bestie, here's the receipts β every one of these is iconic:
smbldap-groupmod -g 253 development
This will change the GID of the 'development' group to '253'. π
smbldap-groupmod -n Idiots Managers
This will change the name of the 'Managers' group to 'Idiots'. π
smbldap-groupmod -m "jdoe,jsmith" "Domain Admins"
This will add 'jdoe' and 'jsmith' to the 'Domain Admins' group. π«Ά
smbldap-groupmod -x "jdoe,jsmith" "Domain Admins"
This will remove 'jdoe' and 'jsmith' from the 'Domain Admins' group. π
π SEE ALSO π
groupmod(1)
no thoughts, just group mods π§
okay and before you go β this page is from the User Contributed Perl Documentation, manual page SMBLDAP...MOD.CMD(8), brought to you by perl v5.32.1 and dated 2021-11-07. stan. πβ¨
π¦ where this page comes from
- ubuntu jammy: smbldap-tools 0.9.11-3ubuntu1 Β· GPL-2.0-or-later
- ubuntu noble: smbldap-tools 0.9.11-3ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms