1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
5 >Group mapping HOWTO
</TITLE
8 CONTENT=
"Modular DocBook HTML Stylesheet Version 1.76b+
11 TITLE=
"SAMBA Project Documentation"
12 HREF=
"samba-howto-collection.html"><LINK
14 TITLE=
"Optional configuration"
15 HREF=
"optional.html"><LINK
17 TITLE=
"HOWTO Access Samba source code via CVS"
18 HREF=
"cvs-access.html"><LINK
20 TITLE=
"Samba performance issues"
21 HREF=
"speed.html"></HEAD
32 SUMMARY=
"Header navigation table"
41 >SAMBA Project Documentation
</TH
49 HREF=
"cvs-access.html"
76 NAME=
"GROUPMAPPING">Chapter
21. Group mapping HOWTO
</H1
79 Starting with Samba
3.0 alpha
2, a new group mapping function is available. The
80 current method (likely to change) to manage the groups is a new command called
86 >The first immediate reason to use the group mapping on a PDC, is that
89 >domain admin group
</B
94 now gone. This parameter was used to give the listed users local admin rights
95 on their workstations. It was some magic stuff that simply worked but didn't
96 scale very well for complex setups.
</P
98 >Let me explain how it works on NT/W2K, to have this magic fade away.
99 When installing NT/W2K on a computer, the installer program creates some users
100 and groups. Notably the 'Administrators' group, and gives to that group some
101 privileges like the ability to change the date and time or to kill any process
102 (or close too) running on the local machine. The 'Administrator' user is a
103 member of the 'Administrators' group, and thus 'inherit' the 'Administrators'
104 group privileges. If a 'joe' user is created and become a member of the
105 'Administrator' group, 'joe' has exactly the same rights as 'Administrator'.
</P
107 >When a NT/W2K machine is joined to a domain, during that phase, the
"Domain
108 Administrators' group of the PDC is added to the 'Administrators' group of the
109 workstation. Every members of the 'Domain Administrators' group 'inherit' the
110 rights of the 'Administrators' group when logging on the workstation.</P
112 >You are now wondering how to make some of your samba PDC users members of the
113 'Domain Administrators' ? That's really easy.</P
120 >create a unix group (usually in <TT
123 >), let's call it domadm</P
127 >add to this group the users that must be Administrators. For example if you want joe,john and mary, your entry in <TT
133 CLASS="PROGRAMLISTING
"
134 >domadm:x:502:joe,john,mary</PRE
139 >Map this domadm group to the <B
142 > group by running the command:</P
146 >smbgroupedit -c "Domain Admins
" -u domadm</B
151 >You're set, joe, john and mary are domain administrators !</P
153 >Like the Domain Admins group, you can map any arbitrary Unix group to any NT
154 group. You can also make any Unix group a domain group. For example, on a domain
155 member machine (an NT/W2K or a samba server running winbind), you would like to
156 give access to a certain directory to some users who are member of a group on
157 your samba PDC. Flag that group as a domain group by running:</P
161 >smbgroupedit -a unixgroup -td</B
164 >You can list the various groups in the mapping database like this</P
176 SUMMARY="Footer navigation table
"
187 HREF="cvs-access.html
"
196 HREF="samba-howto-collection.html
"
215 >HOWTO Access Samba source code via CVS</TD
229 >Samba performance issues</TD