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 πŸŽ€

  • -g gid β€” the numerical value of the group's ID. This value must be unique, unless you use the -o option. 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. 😭
  • -n group_name β€” the name of the group gets changed from group to group_name.
  • -m members β€” the members to be added to the group, in comma-delimeted form.
  • -x members β€” 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.
  • -s sid β€” set the group SID. The SID must be unique and defined with the domain Security ID ($SID) like sid=$SID-rid where rid is the group rid.
  • -r rid β€” set the group rid. The SID is then calculated as sid=$SID-rid where $SID is the domain Security ID.
  • -t group type β€” set the NT Group type for the new group. Available values are 2 (domain group), 4 (local group) and 5 (builtin group). The default group type is 2.

🌈 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