1 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
2 <refentry id="smbgroupedit.8">
5 <refentrytitle>smbgroupedit</refentrytitle>
6 <manvolnum>8</manvolnum>
10 <refname>smbgroupedit</refname>
11 <refpurpose>Query/set/change UNIX - Windows NT group mapping</refpurpose>
16 <command>smbroupedit</command>
17 <arg choice="opt">-v [l|s]</arg>
18 <arg choice="opt">-a UNIX-groupname [-d NT-groupname|-p privilege|]</arg>
26 <title>DESCRIPTION</title>
29 This program is part of the <citerefentry><refentrytitle>Samba</refentrytitle>
30 <manvolnum>7</manvolnum></citerefentry> suite.</para>
33 The smbgroupedit command allows for mapping unix groups
34 to NT Builtin, Domain, or Local groups. Also
35 allows setting privileges for that group, such as saAddUser,
42 <title>OPTIONS</title>
47 <listitem><para>This option will list all groups available
48 in the Windows NT domain in which samba is operating.
54 <listitem><para>give a long listing, of the format:</para>
56 <para><programlisting>
63 </programlisting></para>
70 Group type: Local group
72 Privilege : No privilege
73 </programlisting></para>
80 <listitem><para>display a short listing of the format:</para>
82 <para><programlisting>
83 NTGroupName(SID) -> UnixGroupName
84 </programlisting></para>
88 Users (S-1-5-32-545) -> -1
89 </programlisting></para>
114 <title>EXIT STATUS</title>
117 <command>smbgroupedit</command> returns a status of 0 if the
118 operation completed successfully, and a value of 1 in the event
127 <!-- ****************************************************
128 **************************************************** -->
131 <title>EXAMPLES</title>
135 To make a subset of your samba PDC users members of
136 the 'Domain Admins' Global group:
141 <listitem><para>create a unix group (usually in
142 <filename>/etc/group</filename>), let's call it <constant>domadm</constant>.
145 <listitem><para>add to this group the users that you want to be
146 domain administrators. For example if you want joe, john and mary,
147 your entry in <filename>/etc/group</filename> will look like:
150 <para>domadm:x:502:joe,john,mary</para>
153 <listitem><para>map this domadm group to the 'domain admins' group:</para>
155 <listitem><para>Get the SID for the Windows NT "Domain Admins" group:</para>
156 <para><programlisting>
157 <prompt>root# </prompt><command>smbgroupedit -vs | grep "Domain Admins"</command>
158 Domain Admins (S-1-5-21-1108995562-3116817432-1375597819-512) -> -1
159 </programlisting></para></listitem>
161 <listitem><para>map the unix domadm group to the Windows NT
162 "Domain Admins" group, by running the command:
164 <prompt>root# </prompt><command>smbgroupedit \
165 -c S-1-5-21-1108995562-3116817432-1375597819-512 \
166 -u domadm -td</command>
167 </programlisting></para>
169 <para><emphasis>warning:</emphasis> don't copy and paste this sample, the
170 Domain Admins SID (the S-1-5-21-...-512) is different for every PDC.
177 To verify that your mapping has taken effect:
179 <prompt>root# </prompt><command>smbgroupedit -vs|grep "Domain Admins"</command>
180 Domain Admins (S-1-5-21-1108995562-3116817432-1375597819-512) -> domadm
181 </programlisting></para>
183 <para>To give access to a certain directory on a domain member machine (an
184 NT/W2K or a samba server running winbind) to some users who are member
185 of a group on your samba PDC, flag that group as a domain group:
187 <prompt>root# </prompt><command>smbgroupedit -a unixgroup -td</command>
188 </programlisting></para>
194 <title>VERSION</title>
197 This man page is correct for the 3.0alpha releases of
203 <title>SEE ALSO</title>
206 <citerefentry><refentrytitle>smb.conf</refentrytitle>
207 <manvolnum>5</manvolnum></citerefentry></para>
213 <title>AUTHOR</title>
216 The original Samba software and related utilities
217 were created by Andrew Tridgell. Samba is now developed
218 by the Samba Team as an Open Source project similar
219 to the way the Linux kernel is developed.
223 <command>smbgroupedit</command> was written by Jean Francois Micouleau.
224 The current set of manpages and documentation is maintained
225 by the Samba Team in the same fashion as the Samba source code. The conversion
226 to DocBook XML 4.2 for Samba 3.0 was done by Alexander Bokovoy.</para>