1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.77"></HEAD
28 >smbgroupedit -- Query/set/change UNIX - Windows NT group mapping</DIV
30 CLASS="REFSYNOPSISDIV"
40 > [-v [l|s]] [-a UNIX-groupname [-d NT-groupname|-p privilege|]]</P
50 >This program is part of the <A
57 >The smbgroupedit command allows for mapping unix groups
58 to NT Builtin, Domain, or Local groups. Also
59 allows setting privileges for that group, such as saAddUser,
78 >This option will list all groups available
79 in the Windows NT domain in which samba is operating.
90 >give a long listing, of the format:</P
93 CLASS="PROGRAMLISTING"
105 CLASS="PROGRAMLISTING"
109 Group type: Local group
111 Privilege : No privilege</PRE
118 >display a short listing of the format:</P
121 CLASS="PROGRAMLISTING"
122 >NTGroupName(SID) -> UnixGroupName</PRE
128 CLASS="PROGRAMLISTING"
129 >Users (S-1-5-32-545) -> -1</PRE
159 > returns a status of 0 if the
160 operation completed successfully, and a value of 1 in the event
171 >To make a subset of your samba PDC users members of
172 the 'Domain Admins' Global group:</P
179 >create a unix group (usually in
183 >), let's call it <TT
191 >add to this group the users that you want to be
192 domain administrators. For example if you want joe, john and mary,
199 >domadm:x:502:joe,john,mary</P
203 >map this domadm group to the 'domain admins' group:
211 >Get the SID for the Windows NT "Domain Admins"
215 CLASS="PROGRAMLISTING"
221 >smbgroupedit -vs | grep "Domain Admins"</B
223 Domain Admins (S-1-5-21-1108995562-3116817432-1375597819-512) -> -1</PRE
228 >map the unix domadm group to the Windows NT
229 "Domain Admins" group, by running the command:
233 CLASS="PROGRAMLISTING"
240 -c S-1-5-21-1108995562-3116817432-1375597819-512 \
251 > don't copy and paste this sample, the
252 Domain Admins SID (the S-1-5-21-...-512) is different for every PDC.
259 >To verify that your mapping has taken effect:</P
262 CLASS="PROGRAMLISTING"
268 >smbgroupedit -vs|grep "Domain Admins"</B
270 Domain Admins (S-1-5-21-1108995562-3116817432-1375597819-512) -> domadm</PRE
273 >To give access to a certain directory on a domain member machine (an
274 NT/W2K or a samba server running winbind) to some users who are member
275 of a group on your samba PDC, flag that group as a domain group:</P
278 CLASS="PROGRAMLISTING"
284 >smbgroupedit -a unixgroup -td</B
296 >This man page is correct for the 3.0alpha releases of
308 HREF="smb.conf.5.html"
321 >The original Samba software and related utilities
322 were created by Andrew Tridgell. Samba is now developed
323 by the Samba Team as an Open Source project similar
324 to the way the Linux kernel is developed.</P
329 > was written by Jean Francois Micouleau.
330 The current set of manpages and documentation is maintained
331 by the Samba Team in the same fashion as the Samba source code.</P