SYNOPSIS

smbldap-groupmod [-g gid [-o]] [-a] [-r rid] [-s sid] [-t group type] [-n group_name ] [-m members(,)] [-x members (,)] group

DESCRIPTION

The smbldap-groupmod command modifies the system account files to reflect the changes that are specified on the command line. The options which apply to the smbldap-groupmod command are

-g gid The numerical value of the group's \s-1ID\s0. This value must be unique, unless the -o option is used. The value must be non negative. Any files which the old group \s-1ID\s0 is the file roup \s-1ID\s0 must have the file group \s-1ID\s0 changed manually.

-n group_name

   The name of the group will be 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 \s-1ID\s0 for the group (\s-1SID\s0).

-s sid

   set the group \s-1SID\s0.
   The \s-1SID\s0 must be unique and defined with the domain Security \s-1ID\s0 ($SID) like sid=$SID-rid where rid is the group rid.

-r rid

   set the group rid.
   The \s-1SID\s0 is then calculated as sid=$SID-rid where $SID is the domain Security \s-1ID\s0.

-t group type

   set the \s-1NT\s0 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

smbldap-groupmod -g 253 development This will change the \s-1GID\s0 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 \*(L"jdoe,jsmith\*(R" \*(L"Domain Admins\*(R" This will add 'jdoe' and 'jsmith' to the 'Domain Admins' group.

smbldap-groupmod -x \*(L"jdoe,jsmith\*(R" \*(L"Domain Admins\*(R" This will remove 'jdoe' and 'jsmith' from the 'Domain Admins' group.

RELATED TO smbldap-groupmod…

groupmod\|(1)