1SMBLDAP-GROUPMOD(8)   User Contributed Perl Documentation  SMBLDAP-GROUPMOD(8)
2
3
4

NAME

6       smbldap-groupmod - Modify a group
7

SYNOPSIS

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

DESCRIPTION

13       The smbldap-groupmod command modifies the system account files to
14       reflect the changes that are specified on the command line. The options
15       which apply to the smbldap-groupmod command are
16
17       -g gid The numerical value of the group's ID. This value must be
18       unique, unless the -o option is used. The value must be non negative.
19       Any files which the old group ID is the file roup ID must have the file
20       group ID changed manually.
21
22       -n group_name
23          The name of the group will be changed from group to group_name.
24
25       -m members
26          The members to be added to the group in comma-delimeted form.
27
28       -x members
29          The members to be removed from the group in comma-delimted form.
30
31       -a
32          add an automatic Security ID for the group (SID). The rid of the
33       group is calculated from the gidNumber of the group as
34       rid=2*gidNumber+1001. Thus the resulted SID of the group is $SID-$rid
35       where $SID and $rid are the domain SID and the group rid
36
37       -s sid
38          set the group SID.
39          The SID must be unique and defined with the domain Security ID
40       ($SID) like sid=$SID-rid where rid is the group rid.
41
42       -r rid
43          set the group rid.
44          The SID is then calculated as sid=$SID-rid where $SID is the domain
45       Security ID.
46
47       -t group type
48          set the NT Group type for the new group. Available values are 2
49       (domain group), 4 (local group) and 5 (builtin group). The default
50       group type is 2.
51

EXAMPLES

53       smbldap-groupmod -g 253 development This will change the GID of the
54       'development' group to '253'.
55
56       smbldap-groupmod -n Idiots Managers This will change the name of the
57       'Managers' group to 'Idiots'.
58
59       smbldap-groupmod -m "jdoe,jsmith" "Domain Admins" This will add 'jdoe'
60       and 'jsmith' to the 'Domain Admins' group.
61
62       smbldap-groupmod -x "jdoe,jsmith" "Domain Admins" This will remove
63       'jdoe' and 'jsmith' from the 'Domain Admins' group.
64

SEE ALSO

66       groupmod(1)
67
68
69
70perl v5.12.3                      2011-03-07               SMBLDAP-GROUPMOD(8)
Impressum