1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 NAME="SMBGROUPEDIT">smbgroupedit</H1
27 >smbgroupedit -- Query/set/change UNIX - Windows NT group mapping</DIV
29 CLASS="REFSYNOPSISDIV"
37 > [-v [l|s]] [-a UNIX-groupname [-d NT-groupname|-p privilege|]]</P
47 >This program is part of the <A
54 >The smbgroupedit command allows for mapping unix groups
55 to NT Builtin, Domain, or Local groups. Also
56 allows setting privileges for that group, such as saAddUser,
75 >This option will list all groups available
76 in the Windows NT domain in which samba is operating.
87 >give a long listing, of the format:</P
96 CLASS="PROGRAMLISTING"
117 CLASS="PROGRAMLISTING"
121 Group type: Local group
123 Privilege : No privilege</PRE
133 >display a short listing of the format:</P
142 CLASS="PROGRAMLISTING"
143 >NTGroupName(SID) -> UnixGroupName</PRE
158 CLASS="PROGRAMLISTING"
159 >Users (S-1-5-32-545) -> -1</PRE
192 > returns a status of 0 if the
193 operation completed successfully, and a value of 1 in the event
204 >To make a subset of your samba PDC users members of
205 the 'Domain Admins' Global group:</P
212 >create a unix group (usually in
216 >), let's call it <TT
224 >add to this group the users that you want to be
225 domain administrators. For example if you want joe, john and mary,
232 >domadm:x:502:joe,john,mary</P
236 >map this domadm group to the 'domain admins' group:
244 >Get the SID for the Windows NT "Domain Admins"
254 CLASS="PROGRAMLISTING"
260 >smbgroupedit -vs | grep "Domain Admins"</B
262 Domain Admins (S-1-5-21-1108995562-3116817432-1375597819-512) -> -1</PRE
270 >map the unix domadm group to the Windows NT
271 "Domain Admins" group, by running the command:
281 CLASS="PROGRAMLISTING"
288 -c S-1-5-21-1108995562-3116817432-1375597819-512 \
299 > don't copy and paste this sample, the
300 Domain Admins SID (the S-1-5-21-...-512) is different for every PDC.
307 >To verify that your mapping has taken effect:</P
316 CLASS="PROGRAMLISTING"
322 >smbgroupedit -vs|grep "Domain Admins"</B
324 Domain Admins (S-1-5-21-1108995562-3116817432-1375597819-512) -> domadm</PRE
330 >To give access to a certain directory on a domain member machine (an
331 NT/W2K or a samba server running winbind) to some users who are member
332 of a group on your samba PDC, flag that group as a domain group:</P
341 CLASS="PROGRAMLISTING"
347 >smbgroupedit -a unixgroup -td</B
362 >This man page is correct for the 3.0alpha releases of
374 HREF="smb.conf.5.html"
387 >The original Samba software and related utilities
388 were created by Andrew Tridgell. Samba is now developed
389 by the Samba Team as an Open Source project similar
390 to the way the Linux kernel is developed.</P
395 > was written by Jean Francois Micouleau.
396 The current set of manpages and documentation is maintained
397 by the Samba Team in the same fashion as the Samba source code.</P