diff options
Diffstat (limited to 'docs/htmldocs/Samba3-HOWTO/groupmapping.html')
-rw-r--r-- | docs/htmldocs/Samba3-HOWTO/groupmapping.html | 362 |
1 files changed, 181 insertions, 181 deletions
diff --git a/docs/htmldocs/Samba3-HOWTO/groupmapping.html b/docs/htmldocs/Samba3-HOWTO/groupmapping.html index 0e29a6d60e..3657de1d34 100644 --- a/docs/htmldocs/Samba3-HOWTO/groupmapping.html +++ b/docs/htmldocs/Samba3-HOWTO/groupmapping.html @@ -1,38 +1,38 @@ -<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 12. Group Mapping: MS Windows and UNIX</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"><link rel="home" href="index.html" title="The Official Samba 3.4.x HOWTO and Reference Guide"><link rel="up" href="optional.html" title="Part III. Advanced Configuration"><link rel="prev" href="passdb.html" title="Chapter 11. Account Information Databases"><link rel="next" href="NetCommand.html" title="Chapter 13. Remote and Local Management: The Net Command"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 12. Group Mapping: MS Windows and UNIX</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="passdb.html">Prev</a> </td><th width="60%" align="center">Part III. Advanced Configuration</th><td width="20%" align="right"> <a accesskey="n" href="NetCommand.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="groupmapping"></a>Chapter 12. Group Mapping: MS Windows and UNIX</h2></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="orgname">Samba Team</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Jean François</span> <span class="surname">Micouleau</span></h3></div></div><div><div class="author"><h3 class="author"><span class="firstname">Gerald</span> <span class="othername">(Jerry)</span> <span class="orgname">Samba Team</span> <span class="surname">Carter</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:jerry@samba.org">jerry@samba.org</a>></code></p></div></div></div></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="groupmapping.html#id2595891">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="groupmapping.html#id2596307">Discussion</a></span></dt><dd><dl><dt><span class="sect2"><a href="groupmapping.html#id2596644">Warning: User Private Group Problems</a></span></dt><dt><span class="sect2"><a href="groupmapping.html#id2596702">Nested Groups: Adding Windows Domain Groups to Windows Local Groups</a></span></dt><dt><span class="sect2"><a href="groupmapping.html#id2597278">Important Administrative Information</a></span></dt><dt><span class="sect2"><a href="groupmapping.html#id2597518">Default Users, Groups, and Relative Identifiers</a></span></dt><dt><span class="sect2"><a href="groupmapping.html#id2598143">Example Configuration</a></span></dt></dl></dd><dt><span class="sect1"><a href="groupmapping.html#id2598220">Configuration Scripts</a></span></dt><dd><dl><dt><span class="sect2"><a href="groupmapping.html#id2598231">Sample smb.conf Add Group Script</a></span></dt><dt><span class="sect2"><a href="groupmapping.html#id2598403">Script to Configure Group Mapping</a></span></dt></dl></dd><dt><span class="sect1"><a href="groupmapping.html#id2598530">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="groupmapping.html#id2598543">Adding Groups Fails</a></span></dt><dt><span class="sect2"><a href="groupmapping.html#id2598630">Adding Domain Users to the Workstation Power Users Group</a></span></dt></dl></dd></dl></div><p> -<a class="indexterm" name="id2595765"></a> -<a class="indexterm" name="id2595774"></a> -<a class="indexterm" name="id2595781"></a> -<a class="indexterm" name="id2595788"></a> -<a class="indexterm" name="id2595794"></a> -<a class="indexterm" name="id2595801"></a> +<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 12. Group Mapping: MS Windows and UNIX</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="The Official Samba 3.4.x HOWTO and Reference Guide"><link rel="up" href="optional.html" title="Part III. Advanced Configuration"><link rel="prev" href="passdb.html" title="Chapter 11. Account Information Databases"><link rel="next" href="NetCommand.html" title="Chapter 13. Remote and Local Management: The Net Command"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 12. Group Mapping: MS Windows and UNIX</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="passdb.html">Prev</a> </td><th width="60%" align="center">Part III. Advanced Configuration</th><td width="20%" align="right"> <a accesskey="n" href="NetCommand.html">Next</a></td></tr></table><hr></div><div class="chapter" title="Chapter 12. Group Mapping: MS Windows and UNIX"><div class="titlepage"><div><div><h2 class="title"><a name="groupmapping"></a>Chapter 12. Group Mapping: MS Windows and UNIX</h2></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Jean François</span> <span class="surname">Micouleau</span></h3></div></div><div><div class="author"><h3 class="author"><span class="firstname">Gerald</span> <span class="othername">(Jerry)</span> <span class="surname">Carter</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:jerry@samba.org">jerry@samba.org</a>></code></p></div></div></div></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="groupmapping.html#id2601958">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="groupmapping.html#id2602374">Discussion</a></span></dt><dd><dl><dt><span class="sect2"><a href="groupmapping.html#id2602711">Warning: User Private Group Problems</a></span></dt><dt><span class="sect2"><a href="groupmapping.html#id2602768">Nested Groups: Adding Windows Domain Groups to Windows Local Groups</a></span></dt><dt><span class="sect2"><a href="groupmapping.html#id2603344">Important Administrative Information</a></span></dt><dt><span class="sect2"><a href="groupmapping.html#id2603585">Default Users, Groups, and Relative Identifiers</a></span></dt><dt><span class="sect2"><a href="groupmapping.html#id2604210">Example Configuration</a></span></dt></dl></dd><dt><span class="sect1"><a href="groupmapping.html#id2604286">Configuration Scripts</a></span></dt><dd><dl><dt><span class="sect2"><a href="groupmapping.html#id2604298">Sample <code class="filename">smb.conf</code> Add Group Script</a></span></dt><dt><span class="sect2"><a href="groupmapping.html#id2604470">Script to Configure Group Mapping</a></span></dt></dl></dd><dt><span class="sect1"><a href="groupmapping.html#id2604597">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="groupmapping.html#id2604610">Adding Groups Fails</a></span></dt><dt><span class="sect2"><a href="groupmapping.html#id2604697">Adding Domain Users to the Workstation Power Users Group</a></span></dt></dl></dd></dl></div><p> +<a class="indexterm" name="id2601832"></a> +<a class="indexterm" name="id2601841"></a> +<a class="indexterm" name="id2601847"></a> +<a class="indexterm" name="id2601854"></a> +<a class="indexterm" name="id2601861"></a> +<a class="indexterm" name="id2601868"></a> Starting with Samba-3, new group mapping functionality is available to create associations between Windows group SIDs and UNIX group GIDs. The <code class="literal">groupmap</code> subcommand included with the <span class="application">net</span> tool can be used to manage these associations. </p><p> -<a class="indexterm" name="id2595826"></a> -<a class="indexterm" name="id2595833"></a> +<a class="indexterm" name="id2601893"></a> +<a class="indexterm" name="id2601900"></a> The new facility for mapping NT groups to UNIX system groups allows the administrator to decide which NT domain groups are to be exposed to MS Windows clients. Only those NT groups that map to a UNIX group that has a value other than the default (<code class="constant">-1</code>) will be exposed in group selection lists in tools that access domain users and groups. - </p><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p> - <a class="indexterm" name="id2595855"></a> -<a class="indexterm" name="id2595862"></a> + </p><div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p> + <a class="indexterm" name="id2601922"></a> +<a class="indexterm" name="id2601929"></a> The <em class="parameter"><code>domain admin group</code></em> parameter has been removed in Samba-3 and should no longer be specified in <code class="filename">smb.conf</code>. In Samba-2.2.x, this parameter was used to give the listed users membership in the <code class="constant">Domain Admins</code> Windows group, which gave local admin rights on their workstations (in default configurations). - </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2595891"></a>Features and Benefits</h2></div></div></div><p> + </p></div><div class="sect1" title="Features and Benefits"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2601958"></a>Features and Benefits</h2></div></div></div><p> Samba allows the administrator to create MS Windows NT4/200x group accounts and to arbitrarily associate them with UNIX/Linux group accounts. </p><p> - <a class="indexterm" name="id2595905"></a> - <a class="indexterm" name="id2595912"></a> - <a class="indexterm" name="id2595918"></a> -<a class="indexterm" name="id2595925"></a> -<a class="indexterm" name="id2595931"></a> -<a class="indexterm" name="id2595938"></a> -<a class="indexterm" name="id2595945"></a> + <a class="indexterm" name="id2601972"></a> + <a class="indexterm" name="id2601978"></a> + <a class="indexterm" name="id2601985"></a> +<a class="indexterm" name="id2601992"></a> +<a class="indexterm" name="id2601998"></a> +<a class="indexterm" name="id2602005"></a> +<a class="indexterm" name="id2602012"></a> Group accounts can be managed using the MS Windows NT4 or MS Windows 200x/XP Professional MMC tools. Appropriate interface scripts should be provided in <code class="filename">smb.conf</code> if it is desired that UNIX/Linux system accounts should be automatically created when these tools are used. In the absence of these scripts, and @@ -41,19 +41,19 @@ <a class="link" href="smb.conf.5.html#IDMAPUID" target="_top">idmap uid</a>/<a class="link" href="smb.conf.5.html#IDMAPGID" target="_top">idmap gid</a> parameters in the <code class="filename">smb.conf</code> file. </p><div class="figure"><a name="idmap-sid2gid"></a><p class="title"><b>Figure 12.1. IDMAP: Group SID-to-GID Resolution.</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/idmap-sid2gid.png" width="270" alt="IDMAP: Group SID-to-GID Resolution."></div></div></div><br class="figure-break"><div class="figure"><a name="idmap-gid2sid"></a><p class="title"><b>Figure 12.2. IDMAP: GID Resolution to Matching SID.</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/idmap-gid2sid.png" width="270" alt="IDMAP: GID Resolution to Matching SID."></div></div></div><br class="figure-break"><p> - <a class="indexterm" name="id2596088"></a> -<a class="indexterm" name="id2596095"></a> -<a class="indexterm" name="id2596102"></a> -<a class="indexterm" name="id2596110"></a> + <a class="indexterm" name="id2602155"></a> +<a class="indexterm" name="id2602161"></a> +<a class="indexterm" name="id2602168"></a> +<a class="indexterm" name="id2602177"></a> In both cases, when winbindd is not running, only locally resolvable groups can be recognized. Please refer to <a class="link" href="groupmapping.html#idmap-sid2gid" title="Figure 12.1. IDMAP: Group SID-to-GID Resolution.">IDMAP: Group SID-to-GID Resolution</a> and <a class="link" href="groupmapping.html#idmap-gid2sid" title="Figure 12.2. IDMAP: GID Resolution to Matching SID.">IDMAP: GID Resolution to Matching SID</a>. The <code class="literal">net groupmap</code> is used to establish UNIX group to NT SID mappings as shown in <a class="link" href="groupmapping.html#idmap-store-gid2sid" title="Figure 12.3. IDMAP Storing Group Mappings.">IDMAP: storing group mappings</a>. </p><div class="figure"><a name="idmap-store-gid2sid"></a><p class="title"><b>Figure 12.3. IDMAP Storing Group Mappings.</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/idmap-store-gid2sid.png" width="270" alt="IDMAP Storing Group Mappings."></div></div></div><br class="figure-break"><p> - <a class="indexterm" name="id2596197"></a> - <a class="indexterm" name="id2596203"></a> -<a class="indexterm" name="id2596210"></a> -<a class="indexterm" name="id2596217"></a> + <a class="indexterm" name="id2602263"></a> + <a class="indexterm" name="id2602270"></a> +<a class="indexterm" name="id2602277"></a> +<a class="indexterm" name="id2602283"></a> Administrators should be aware that where <code class="filename">smb.conf</code> group interface scripts make direct calls to the UNIX/Linux system tools (the shadow utilities, <code class="literal">groupadd</code>, <code class="literal">groupdel</code>, and <code class="literal">groupmod</code>), the resulting UNIX/Linux group names will be subject @@ -62,68 +62,68 @@ <code class="literal">Engineering Managers</code> will attempt to create an identically named UNIX/Linux group, an attempt that will of course fail. </p><p> - <a class="indexterm" name="id2596265"></a> - <a class="indexterm" name="id2596271"></a> + <a class="indexterm" name="id2602331"></a> + <a class="indexterm" name="id2602338"></a> There are several possible workarounds for the operating system tools limitation. One method is to use a script that generates a name for the UNIX/Linux system group that fits the operating system limits and that then just passes the UNIX/Linux group ID (GID) back to the calling Samba interface. This will provide a dynamic workaround solution. </p><p> -<a class="indexterm" name="id2596287"></a> +<a class="indexterm" name="id2602354"></a> Another workaround is to manually create a UNIX/Linux group, then manually create the MS Windows NT4/200x group on the Samba server, and then use the <code class="literal">net groupmap</code> tool to connect the two to each other. - </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2596307"></a>Discussion</h2></div></div></div><p> -<a class="indexterm" name="id2596315"></a> -<a class="indexterm" name="id2596322"></a> + </p></div><div class="sect1" title="Discussion"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2602374"></a>Discussion</h2></div></div></div><p> +<a class="indexterm" name="id2602382"></a> +<a class="indexterm" name="id2602389"></a> When you install <span class="application">MS Windows NT4/200x</span> on a computer, the installation program creates default users and groups, notably the <code class="constant">Administrators</code> group, and gives that group privileges necessary to perform essential system tasks, such as the ability to change the date and time or to kill (or close) any process running on the local machine. </p><p> - <a class="indexterm" name="id2596347"></a> + <a class="indexterm" name="id2602414"></a> The <code class="constant">Administrator</code> user is a member of the <code class="constant">Administrators</code> group, and thus inherits <code class="constant">Administrators</code> group privileges. If a <code class="constant">joe</code> user is created to be a member of the <code class="constant">Administrators</code> group, <code class="constant">joe</code> has exactly the same rights as the user <code class="constant">Administrator</code>. </p><p> -<a class="indexterm" name="id2596386"></a> -<a class="indexterm" name="id2596393"></a> -<a class="indexterm" name="id2596400"></a> -<a class="indexterm" name="id2596407"></a> - When an MS Windows NT4/200x/XP machine is made a domain member, the “<span class="quote">Domain Admins</span>” group of the +<a class="indexterm" name="id2602452"></a> +<a class="indexterm" name="id2602459"></a> +<a class="indexterm" name="id2602466"></a> +<a class="indexterm" name="id2602473"></a> + When an MS Windows NT4/200x/XP machine is made a domain member, the <span class="quote">“<span class="quote">Domain Admins</span>”</span> group of the PDC is added to the local <code class="constant">Administrators</code> group of the workstation. Every member of the <code class="constant">Domain Admins</code> group inherits the rights of the local <code class="constant">Administrators</code> group when logging on the workstation. </p><p> -<a class="indexterm" name="id2596435"></a> -<a class="indexterm" name="id2596442"></a> +<a class="indexterm" name="id2602502"></a> +<a class="indexterm" name="id2602509"></a> The following steps describe how to make Samba PDC users members of the <code class="constant">Domain Admins</code> group. - </p><div class="orderedlist"><ol type="1"><li><p> + </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p> Create a UNIX group (usually in <code class="filename">/etc/group</code>); let's call it <code class="constant">domadm</code>. - </p></li><li><p> -<a class="indexterm" name="id2596480"></a> - Add to this group the users that must be “<span class="quote">Administrators</span>”. For example, + </p></li><li class="listitem"><p> +<a class="indexterm" name="id2602546"></a> + Add to this group the users that must be <span class="quote">“<span class="quote">Administrators</span>”</span>. For example, if you want <code class="constant">joe, john</code>, and <code class="constant">mary</code> to be administrators, your entry in <code class="filename">/etc/group</code> will look like this: </p><pre class="programlisting"> domadm:x:502:joe,john,mary </pre><p> - </p></li><li><p> - Map this domadm group to the “<span class="quote">Domain Admins</span>” group by executing the command: + </p></li><li class="listitem"><p> + Map this domadm group to the <span class="quote">“<span class="quote">Domain Admins</span>”</span> group by executing the command: </p><p> </p><pre class="screen"> <code class="prompt">root# </code><strong class="userinput"><code>net groupmap add ntgroup="Domain Admins" unixgroup=domadm rid=512 type=d</code></strong> </pre><p> </p><p> - <a class="indexterm" name="id2596547"></a> - The quotes around “<span class="quote">Domain Admins</span>” are necessary due to the space in the group name. + <a class="indexterm" name="id2602614"></a> + The quotes around <span class="quote">“<span class="quote">Domain Admins</span>”</span> are necessary due to the space in the group name. Also make sure to leave no white space surrounding the equal character (=). </p></li></ol></div><p> Now <code class="constant">joe, john</code>, and <code class="constant">mary</code> are domain administrators. </p><p> - <a class="indexterm" name="id2596576"></a> + <a class="indexterm" name="id2602643"></a> It is possible to map any arbitrary UNIX group to any Windows NT4/200x group as well as to make any UNIX group a Windows domain group. For example, if you wanted to include a UNIX group (e.g., acct) in an ACL on a local file or printer on a Domain Member machine, @@ -135,54 +135,54 @@ The <code class="literal">ntgroup</code> value must be in quotes if it contains space characters to prevent the space from being interpreted as a command delimiter. </p><p> -<a class="indexterm" name="id2596623"></a> -<a class="indexterm" name="id2596630"></a> +<a class="indexterm" name="id2602690"></a> +<a class="indexterm" name="id2602696"></a> Be aware that the RID parameter is an unsigned 32-bit integer that should normally start at 1000. However, this RID must not overlap with any RID assigned to a user. Verification for this is done differently depending on the passdb backend you are using. Future versions of the tools may perform the verification automatically, but for now the burden is on you. - </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2596644"></a>Warning: User Private Group Problems</h3></div></div></div><p> -<a class="indexterm" name="id2596652"></a> -<a class="indexterm" name="id2596659"></a> -<a class="indexterm" name="id2596666"></a> + </p><div class="sect2" title="Warning: User Private Group Problems"><div class="titlepage"><div><div><h3 class="title"><a name="id2602711"></a>Warning: User Private Group Problems</h3></div></div></div><p> +<a class="indexterm" name="id2602719"></a> +<a class="indexterm" name="id2602726"></a> +<a class="indexterm" name="id2602733"></a> Windows does not permit user and group accounts to have the same name. This has serious implications for all sites that use private group accounts. A private group account is an administrative practice whereby users are each given their own group account. Red Hat Linux, as well as several free distributions of Linux, by default create private groups. </p><p> -<a class="indexterm" name="id2596682"></a> -<a class="indexterm" name="id2596689"></a> +<a class="indexterm" name="id2602749"></a> +<a class="indexterm" name="id2602756"></a> When mapping a UNIX/Linux group to a Windows group account, all conflict can be avoided by assuring that the Windows domain group name does not overlap with any user account name. - </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2596702"></a>Nested Groups: Adding Windows Domain Groups to Windows Local Groups</h3></div></div></div><a class="indexterm" name="id2596708"></a><p> -<a class="indexterm" name="id2596719"></a> + </p></div><div class="sect2" title="Nested Groups: Adding Windows Domain Groups to Windows Local Groups"><div class="titlepage"><div><div><h3 class="title"><a name="id2602768"></a>Nested Groups: Adding Windows Domain Groups to Windows Local Groups</h3></div></div></div><a class="indexterm" name="id2602775"></a><p> +<a class="indexterm" name="id2602786"></a> This functionality is known as <code class="constant">nested groups</code> and was first added to Samba-3.0.3. </p><p> -<a class="indexterm" name="id2596735"></a> +<a class="indexterm" name="id2602801"></a> All MS Windows products since the release of Windows NT 3.10 support the use of nested groups. Many Windows network administrators depend on this capability because it greatly simplifies security administration. </p><p> -<a class="indexterm" name="id2596748"></a> -<a class="indexterm" name="id2596755"></a> -<a class="indexterm" name="id2596762"></a> -<a class="indexterm" name="id2596769"></a> -<a class="indexterm" name="id2596776"></a> -<a class="indexterm" name="id2596783"></a> -<a class="indexterm" name="id2596790"></a> +<a class="indexterm" name="id2602815"></a> +<a class="indexterm" name="id2602822"></a> +<a class="indexterm" name="id2602829"></a> +<a class="indexterm" name="id2602836"></a> +<a class="indexterm" name="id2602843"></a> +<a class="indexterm" name="id2602850"></a> +<a class="indexterm" name="id2602857"></a> The nested group architecture was designed with the premise that day-to-day user and group membership management should be performed on the domain security database. The application of group security should be implemented on domain member servers using only local groups. On the domain member server, all file system security controls are then limited to use of the local groups, which will contain domain global groups and domain global users. </p><p> -<a class="indexterm" name="id2596808"></a> -<a class="indexterm" name="id2596815"></a> -<a class="indexterm" name="id2596822"></a> +<a class="indexterm" name="id2602875"></a> +<a class="indexterm" name="id2602882"></a> +<a class="indexterm" name="id2602889"></a> You may ask, What are the benefits of this arrangement? The answer is obvious to those who have plumbed the dark depths of Windows networking architecture. Consider for a moment a server on which are stored 200,000 files, each with individual domain user and domain group settings. The company that owns the @@ -190,10 +190,10 @@ it is made a member of a different domain. Who would you think now owns all the files and directories? Answer: Account Unknown. </p><p> -<a class="indexterm" name="id2596842"></a> -<a class="indexterm" name="id2596849"></a> -<a class="indexterm" name="id2596856"></a> -<a class="indexterm" name="id2596862"></a> +<a class="indexterm" name="id2602908"></a> +<a class="indexterm" name="id2602916"></a> +<a class="indexterm" name="id2602922"></a> +<a class="indexterm" name="id2602929"></a> Unraveling the file ownership mess is an unenviable administrative task that can be avoided simply by using local groups to control all file and directory access control. In this case, only the members of the local groups will have been lost. The files and directories in the storage subsystem will still @@ -201,14 +201,14 @@ to delete the <code class="constant">Account Unknown</code> membership entries inside local groups with appropriate entries for domain global groups in the new domain that the server has been made a member of. </p><p> -<a class="indexterm" name="id2596886"></a> -<a class="indexterm" name="id2596893"></a> -<a class="indexterm" name="id2596900"></a> -<a class="indexterm" name="id2596907"></a> -<a class="indexterm" name="id2596914"></a> -<a class="indexterm" name="id2596921"></a> -<a class="indexterm" name="id2596928"></a> -<a class="indexterm" name="id2596935"></a> +<a class="indexterm" name="id2602953"></a> +<a class="indexterm" name="id2602960"></a> +<a class="indexterm" name="id2602967"></a> +<a class="indexterm" name="id2602974"></a> +<a class="indexterm" name="id2602981"></a> +<a class="indexterm" name="id2602988"></a> +<a class="indexterm" name="id2602994"></a> +<a class="indexterm" name="id2603001"></a> Another prominent example of the use of nested groups involves implementation of administrative privileges on domain member workstations and servers. Administrative privileges are given to all members of the built-in local group <code class="constant">Administrators</code> on each domain member machine. To ensure that all domain @@ -217,10 +217,10 @@ logged into the domain as a member of the Domain Admins group is also granted local administrative privileges on each domain member. </p><p> -<a class="indexterm" name="id2596963"></a> -<a class="indexterm" name="id2596970"></a> -<a class="indexterm" name="id2596977"></a> -<a class="indexterm" name="id2596983"></a> +<a class="indexterm" name="id2603029"></a> +<a class="indexterm" name="id2603036"></a> +<a class="indexterm" name="id2603043"></a> +<a class="indexterm" name="id2603050"></a> UNIX/Linux has no concept of support for nested groups, and thus Samba has for a long time not supported them either. The problem is that you would have to enter UNIX groups as auxiliary members of a group in <code class="filename">/etc/group</code>. This does not work because it was not a design requirement at the time @@ -228,11 +228,11 @@ <code class="filename">/etc/group</code> entries on demand by obtaining user and group information from the domain controller that the Samba server is a member of. </p><p> -<a class="indexterm" name="id2597014"></a> -<a class="indexterm" name="id2597021"></a> -<a class="indexterm" name="id2597028"></a> -<a class="indexterm" name="id2597035"></a> -<a class="indexterm" name="id2597042"></a> +<a class="indexterm" name="id2603081"></a> +<a class="indexterm" name="id2603087"></a> +<a class="indexterm" name="id2603094"></a> +<a class="indexterm" name="id2603101"></a> +<a class="indexterm" name="id2603108"></a> In effect, Samba supplements the <code class="filename">/etc/group</code> data via the dynamic <code class="literal">libnss_winbind</code> mechanism. Beginning with Samba-3.0.3, this facility is used to provide local groups in the same manner as Windows. It works by expanding the local groups on the @@ -242,13 +242,13 @@ group. By definition, it can only contain user objects, which can then be faked to be member of the UNIX/Linux group <code class="constant">demo</code>. </p><p> -<a class="indexterm" name="id2597088"></a> -<a class="indexterm" name="id2597095"></a> -<a class="indexterm" name="id2597102"></a> -<a class="indexterm" name="id2597108"></a> -<a class="indexterm" name="id2597115"></a> -<a class="indexterm" name="id2597122"></a> -<a class="indexterm" name="id2597129"></a> +<a class="indexterm" name="id2603154"></a> +<a class="indexterm" name="id2603161"></a> +<a class="indexterm" name="id2603168"></a> +<a class="indexterm" name="id2603175"></a> +<a class="indexterm" name="id2603182"></a> +<a class="indexterm" name="id2603188"></a> +<a class="indexterm" name="id2603195"></a> To enable the use of nested groups, <code class="literal">winbindd</code> must be used with NSS winbind. Creation and administration of the local groups is done best via the Windows Domain User Manager or its Samba equivalent, the utility <code class="literal">net rpc group</code>. Creating the local group @@ -256,20 +256,20 @@ </p><pre class="screen"> <code class="prompt">root# </code> net rpc group add demo -L -Uroot%not24get </pre><p> -<a class="indexterm" name="id2597172"></a> -<a class="indexterm" name="id2597179"></a> +<a class="indexterm" name="id2603239"></a> +<a class="indexterm" name="id2603246"></a> Here the -L switch means that you want to create a local group. It may be necessary to add -S and -U switches for accessing the correct host with appropriate user or root privileges. Adding and removing group members can be done via the <code class="constant">addmem</code> and <code class="constant">delmem</code> subcommands of - <code class="literal">net rpc group</code> command. For example, addition of “<span class="quote">DOM\Domain Users</span>” to the + <code class="literal">net rpc group</code> command. For example, addition of <span class="quote">“<span class="quote">DOM\Domain Users</span>”</span> to the local group <code class="constant">demo</code> is done by executing: </p><pre class="screen"> net rpc group addmem demo "DOM\Domain Users" </pre><p> -<a class="indexterm" name="id2597219"></a> -<a class="indexterm" name="id2597226"></a> -<a class="indexterm" name="id2597233"></a> -<a class="indexterm" name="id2597240"></a> +<a class="indexterm" name="id2603285"></a> +<a class="indexterm" name="id2603292"></a> +<a class="indexterm" name="id2603299"></a> +<a class="indexterm" name="id2603306"></a> Having completed these two steps, the execution of <code class="literal">getent group demo</code> will show demo members of the global <code class="constant">Domain Users</code> group as members of the group <code class="constant">demo</code>. This also works with any local or domain user. In case the domain DOM trusts @@ -277,46 +277,46 @@ <code class="constant">demo</code>. The users from the foreign domain who are members of the group that has been added to the <code class="constant">demo</code> group now have the same local access permissions as local domain users have. - </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2597278"></a>Important Administrative Information</h3></div></div></div><p> + </p></div><div class="sect2" title="Important Administrative Information"><div class="titlepage"><div><div><h3 class="title"><a name="id2603344"></a>Important Administrative Information</h3></div></div></div><p> Administrative rights are necessary in two specific forms: - </p><div class="orderedlist"><ol type="1"><li><p>For Samba-3 domain controllers and domain member servers/clients.</p></li><li><p>To manage domain member Windows workstations.</p></li></ol></div><p> -<a class="indexterm" name="id2597309"></a> -<a class="indexterm" name="id2597316"></a> -<a class="indexterm" name="id2597323"></a> + </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>For Samba-3 domain controllers and domain member servers/clients.</p></li><li class="listitem"><p>To manage domain member Windows workstations.</p></li></ol></div><p> +<a class="indexterm" name="id2603375"></a> +<a class="indexterm" name="id2603382"></a> +<a class="indexterm" name="id2603389"></a> Versions of Samba up to and including 3.0.10 do not provide a means for assigning rights and privileges that are necessary for system administration tasks from a Windows domain member client machine, so domain administration tasks such as adding, deleting, and changing user and group account information, and managing workstation domain membership accounts, can be handled by any account other than root. </p><p> -<a class="indexterm" name="id2597340"></a> -<a class="indexterm" name="id2597347"></a> -<a class="indexterm" name="id2597354"></a> +<a class="indexterm" name="id2603407"></a> +<a class="indexterm" name="id2603414"></a> +<a class="indexterm" name="id2603420"></a> Samba-3.0.11 introduced a new privilege management interface (see <a class="link" href="rights.html" title="Chapter 15. User Rights and Privileges">User Rights and Privileges</a>) that permits these tasks to be delegated to non-root (i.e., accounts other than the equivalent of the MS Windows Administrator) accounts. </p><p> -<a class="indexterm" name="id2597375"></a> -<a class="indexterm" name="id2597382"></a> +<a class="indexterm" name="id2603442"></a> +<a class="indexterm" name="id2603448"></a> Administrative tasks on a Windows domain member workstation can be done by anyone who is a member of the <code class="constant">Domain Admins</code> group. This group can be mapped to any convenient UNIX group. - </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2597396"></a>Applicable Only to Versions Earlier than 3.0.11</h4></div></div></div><p> -<a class="indexterm" name="id2597405"></a> + </p><div class="sect3" title="Applicable Only to Versions Earlier than 3.0.11"><div class="titlepage"><div><div><h4 class="title"><a name="id2603463"></a>Applicable Only to Versions Earlier than 3.0.11</h4></div></div></div><p> +<a class="indexterm" name="id2603471"></a> Administrative tasks on UNIX/Linux systems, such as adding users or groups, requires <code class="constant">root</code>-level privilege. The addition of a Windows client to a Samba domain involves the addition of a user account for the Windows client. </p><p> -<a class="indexterm" name="id2597422"></a> -<a class="indexterm" name="id2597429"></a> +<a class="indexterm" name="id2603489"></a> +<a class="indexterm" name="id2603496"></a> Many UNIX administrators continue to request that the Samba Team make it possible to add Windows workstations, or the ability to add, delete, or modify user accounts, without requiring <code class="constant">root</code> privileges. Such a request violates every understanding of basic UNIX system security. </p><p> -<a class="indexterm" name="id2597448"></a> -<a class="indexterm" name="id2597454"></a> -<a class="indexterm" name="id2597461"></a> -<a class="indexterm" name="id2597468"></a> -<a class="indexterm" name="id2597475"></a> -<a class="indexterm" name="id2597482"></a> +<a class="indexterm" name="id2603514"></a> +<a class="indexterm" name="id2603521"></a> +<a class="indexterm" name="id2603528"></a> +<a class="indexterm" name="id2603535"></a> +<a class="indexterm" name="id2603542"></a> +<a class="indexterm" name="id2603549"></a> There is no safe way to provide access on a UNIX/Linux system without providing <code class="constant">root</code>-level privileges. Provision of <code class="constant">root</code> privileges can be done either by logging on to the Domain as the user <code class="constant">root</code> or by permitting particular users to @@ -324,15 +324,15 @@ can use tools like the NT4 Domain User Manager and the NT4 Domain Server Manager to manage user and group accounts as well as domain member server and client accounts. This level of privilege is also needed to manage share-level ACLs. - </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2597518"></a>Default Users, Groups, and Relative Identifiers</h3></div></div></div><p> - <a class="indexterm" name="id2597526"></a> - <a class="indexterm" name="id2597536"></a> -<a class="indexterm" name="id2597542"></a> -<a class="indexterm" name="id2597549"></a> -<a class="indexterm" name="id2597556"></a> -<a class="indexterm" name="id2597563"></a> -<a class="indexterm" name="id2597570"></a> -<a class="indexterm" name="id2597576"></a> + </p></div></div><div class="sect2" title="Default Users, Groups, and Relative Identifiers"><div class="titlepage"><div><div><h3 class="title"><a name="id2603585"></a>Default Users, Groups, and Relative Identifiers</h3></div></div></div><p> + <a class="indexterm" name="id2603593"></a> + <a class="indexterm" name="id2603602"></a> +<a class="indexterm" name="id2603609"></a> +<a class="indexterm" name="id2603616"></a> +<a class="indexterm" name="id2603623"></a> +<a class="indexterm" name="id2603630"></a> +<a class="indexterm" name="id2603636"></a> +<a class="indexterm" name="id2603643"></a> When first installed, Windows NT4/200x/XP are preconfigured with certain user, group, and alias entities. Each has a well-known RID. These must be preserved for continued integrity of operation. Samba must be provisioned with certain essential domain groups that require @@ -340,23 +340,23 @@ domain groups are automatically created. It is the LDAP administrator's responsibility to create (provision) the default NT groups. </p><p> -<a class="indexterm" name="id2597598"></a> -<a class="indexterm" name="id2597605"></a> -<a class="indexterm" name="id2597612"></a> -<a class="indexterm" name="id2597619"></a> +<a class="indexterm" name="id2603665"></a> +<a class="indexterm" name="id2603672"></a> +<a class="indexterm" name="id2603679"></a> +<a class="indexterm" name="id2603686"></a> Each essential domain group must be assigned its respective well-known RID. The default users, groups, aliases, and RIDs are shown in <a class="link" href="groupmapping.html#WKURIDS" title="Table 12.1. Well-Known User Default RIDs">Well-Known User Default RIDs</a>. - </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p> -<a class="indexterm" name="id2597641"></a> -<a class="indexterm" name="id2597647"></a> -<a class="indexterm" name="id2597654"></a> -<a class="indexterm" name="id2597661"></a> -<a class="indexterm" name="id2597668"></a> + </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p> +<a class="indexterm" name="id2603707"></a> +<a class="indexterm" name="id2603714"></a> +<a class="indexterm" name="id2603721"></a> +<a class="indexterm" name="id2603728"></a> +<a class="indexterm" name="id2603734"></a> It is the administrator's responsibility to create the essential domain groups and to assign each its default RID. </p></div><p> -<a class="indexterm" name="id2597680"></a> -<a class="indexterm" name="id2597687"></a> +<a class="indexterm" name="id2603746"></a> +<a class="indexterm" name="id2603753"></a> It is permissible to create any domain group that may be necessary; just make certain that the essential domain groups (well known) have been created and assigned their default RIDs. Other groups you create may be assigned any arbitrary RID you care to use. @@ -365,12 +365,12 @@ will be available for use as an NT domain group. </p><p> </p><div class="table"><a name="WKURIDS"></a><p class="title"><b>Table 12.1. Well-Known User Default RIDs</b></p><div class="table-contents"><table summary="Well-Known User Default RIDs" border="1"><colgroup><col align="left"><col align="left"><col align="left"><col align="center"></colgroup><thead><tr><th align="left">Well-Known Entity</th><th align="left">RID</th><th align="left">Type</th><th align="center">Essential</th></tr></thead><tbody><tr><td align="left">Domain Administrator</td><td align="left">500</td><td align="left">User</td><td align="center">No</td></tr><tr><td align="left">Domain Guest</td><td align="left">501</td><td align="left">User</td><td align="center">No</td></tr><tr><td align="left">Domain KRBTGT</td><td align="left">502</td><td align="left">User</td><td align="center">No</td></tr><tr><td align="left">Domain Admins</td><td align="left">512</td><td align="left">Group</td><td align="center">Yes</td></tr><tr><td align="left">Domain Users</td><td align="left">513</td><td align="left">Group</td><td align="center">Yes</td></tr><tr><td align="left">Domain Guests</td><td align="left">514</td><td align="left">Group</td><td align="center">Yes</td></tr><tr><td align="left">Domain Computers</td><td align="left">515</td><td align="left">Group</td><td align="center">No</td></tr><tr><td align="left">Domain Controllers</td><td align="left">516</td><td align="left">Group</td><td align="center">No</td></tr><tr><td align="left">Domain Certificate Admins</td><td align="left">517</td><td align="left">Group</td><td align="center">No</td></tr><tr><td align="left">Domain Schema Admins</td><td align="left">518</td><td align="left">Group</td><td align="center">No</td></tr><tr><td align="left">Domain Enterprise Admins</td><td align="left">519</td><td align="left">Group</td><td align="center">No</td></tr><tr><td align="left">Domain Policy Admins</td><td align="left">520</td><td align="left">Group</td><td align="center">No</td></tr><tr><td align="left">Builtin Admins</td><td align="left">544</td><td align="left">Alias</td><td align="center">No</td></tr><tr><td align="left">Builtin users</td><td align="left">545</td><td align="left">Alias</td><td align="center">No</td></tr><tr><td align="left">Builtin Guests</td><td align="left">546</td><td align="left">Alias</td><td align="center">No</td></tr><tr><td align="left">Builtin Power Users</td><td align="left">547</td><td align="left">Alias</td><td align="center">No</td></tr><tr><td align="left">Builtin Account Operators</td><td align="left">548</td><td align="left">Alias</td><td align="center">No</td></tr><tr><td align="left">Builtin System Operators</td><td align="left">549</td><td align="left">Alias</td><td align="center">No</td></tr><tr><td align="left">Builtin Print Operators</td><td align="left">550</td><td align="left">Alias</td><td align="center">No</td></tr><tr><td align="left">Builtin Backup Operators</td><td align="left">551</td><td align="left">Alias</td><td align="center">No</td></tr><tr><td align="left">Builtin Replicator</td><td align="left">552</td><td align="left">Alias</td><td align="center">No</td></tr><tr><td align="left">Builtin RAS Servers</td><td align="left">553</td><td align="left">Alias</td><td align="center">No</td></tr></tbody></table></div></div><p><br class="table-break"> - </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2598143"></a>Example Configuration</h3></div></div></div><p> -<a class="indexterm" name="id2598151"></a> + </p></div><div class="sect2" title="Example Configuration"><div class="titlepage"><div><div><h3 class="title"><a name="id2604210"></a>Example Configuration</h3></div></div></div><p> +<a class="indexterm" name="id2604218"></a> You can list the various groups in the mapping database by executing <code class="literal">net groupmap list</code>. Here is an example: </p><p> -<a class="indexterm" name="id2598173"></a> +<a class="indexterm" name="id2604240"></a> </p><pre class="screen"> <code class="prompt">root# </code> <strong class="userinput"><code>net groupmap list</code></strong> Domain Admins (S-1-5-21-2547222302-1596225915-2414751004-512) -> domadmin @@ -379,15 +379,15 @@ Domain Guests (S-1-5-21-2547222302-1596225915-2414751004-514) -> domguest </pre><p> </p><p> For complete details on <code class="literal">net groupmap</code>, refer to the net(8) man page. - </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2598220"></a>Configuration Scripts</h2></div></div></div><p> + </p></div></div><div class="sect1" title="Configuration Scripts"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2604286"></a>Configuration Scripts</h2></div></div></div><p> Everyone needs tools. Some of us like to create our own, others prefer to use canned tools (i.e., prepared by someone else for general use). - </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2598231"></a>Sample <code class="filename">smb.conf</code> Add Group Script</h3></div></div></div><p> - <a class="indexterm" name="id2598245"></a> - <a class="indexterm" name="id2598252"></a> - <a class="indexterm" name="id2598259"></a> -<a class="indexterm" name="id2598266"></a> -<a class="indexterm" name="id2598273"></a> + </p><div class="sect2" title="Sample smb.conf Add Group Script"><div class="titlepage"><div><div><h3 class="title"><a name="id2604298"></a>Sample <code class="filename">smb.conf</code> Add Group Script</h3></div></div></div><p> + <a class="indexterm" name="id2604312"></a> + <a class="indexterm" name="id2604319"></a> + <a class="indexterm" name="id2604326"></a> +<a class="indexterm" name="id2604333"></a> +<a class="indexterm" name="id2604340"></a> A script to create complying group names for use by the Samba group interfaces is provided in <a class="link" href="groupmapping.html#smbgrpadd.sh" title="Example 12.1. smbgrpadd.sh">smbgrpadd.sh</a>. This script adds a temporary entry in the <code class="filename">/etc/group</code> file and then renames @@ -415,15 +415,15 @@ exit 0 The <code class="filename">smb.conf</code> entry for the above script shown in <a class="link" href="groupmapping.html#smbgrpadd" title="Example 12.2. Configuration of smb.conf for the add group Script">the configuration of <code class="filename">smb.conf</code> for the add group Script</a> demonstrates how it may be used. -</p><div class="example"><a name="smbgrpadd"></a><p class="title"><b>Example 12.2. Configuration of <code class="filename">smb.conf</code> for the add group Script</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2598388"></a><em class="parameter"><code>add group script = /path_to_tool/smbgrpadd.sh "%g"</code></em></td></tr></table></div></div><p><br class="example-break"> - </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2598403"></a>Script to Configure Group Mapping</h3></div></div></div><p> -<a class="indexterm" name="id2598411"></a> +</p><div class="example"><a name="smbgrpadd"></a><p class="title"><b>Example 12.2. Configuration of <code class="filename">smb.conf</code> for the add group Script</b></p><div class="example-contents"><table border="0" summary="Simple list" class="simplelist"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2604454"></a><em class="parameter"><code>add group script = /path_to_tool/smbgrpadd.sh "%g"</code></em></td></tr></table></div></div><p><br class="example-break"> + </p></div><div class="sect2" title="Script to Configure Group Mapping"><div class="titlepage"><div><div><h3 class="title"><a name="id2604470"></a>Script to Configure Group Mapping</h3></div></div></div><p> +<a class="indexterm" name="id2604478"></a> In our example we have created a UNIX/Linux group called <code class="literal">ntadmin</code>. Our script will create the additional groups <code class="literal">Orks</code>, <code class="literal">Elves</code>, and <code class="literal">Gnomes</code>. It is a good idea to save this shell script for later use just in case you ever need to rebuild your mapping database. For the sake of convenience we elect to save this script as a file called <code class="filename">initGroups.sh</code>. This script is given in <a class="link" href="groupmapping.html#set-group-map" title="Example 12.3. Script to Set Group Mapping">intGroups.sh</a>. -<a class="indexterm" name="id2598461"></a> +<a class="indexterm" name="id2604528"></a> </p><div class="example"><a name="set-group-map"></a><p class="title"><b>Example 12.3. Script to Set Group Mapping</b></p><div class="example-contents"><pre class="programlisting"> #!/bin/bash @@ -443,61 +443,61 @@ net groupmap add ntgroup="Gnomes" unixgroup=Gnomes type=d Of course it is expected that the administrator will modify this to suit local needs. For information regarding the use of the <code class="literal">net groupmap</code> tool please refer to the man page. - </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p> + </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p> Versions of Samba-3 prior to 3.0.23 automatically create default group mapping for the <code class="literal">Domain Admins, Domain Users</code> and <code class="literal">Domain Guests</code> Windows groups, but do not map them to UNIX GIDs. This was a cause of administrative confusion and trouble. Commencing with Samba-3.0.23 this annomaly has been fixed - thus all Windows groups must now be manually and explicitly created and mapped to a valid UNIX GID by the Samba administrator. - </p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2598530"></a>Common Errors</h2></div></div></div><p> + </p></div></div></div><div class="sect1" title="Common Errors"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2604597"></a>Common Errors</h2></div></div></div><p> At this time there are many little surprises for the unwary administrator. In a real sense it is imperative that every step of automated control scripts be carefully tested manually before putting it into active service. -</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2598543"></a>Adding Groups Fails</h3></div></div></div><p> -<a class="indexterm" name="id2598551"></a> +</p><div class="sect2" title="Adding Groups Fails"><div class="titlepage"><div><div><h3 class="title"><a name="id2604610"></a>Adding Groups Fails</h3></div></div></div><p> +<a class="indexterm" name="id2604618"></a> This is a common problem when the <code class="literal">groupadd</code> is called directly by the Samba interface script for the <a class="link" href="smb.conf.5.html#ADDGROUPSCRIPT" target="_top">add group script</a> in the <code class="filename">smb.conf</code> file. </p><p> -<a class="indexterm" name="id2598588"></a> -<a class="indexterm" name="id2598595"></a> +<a class="indexterm" name="id2604655"></a> +<a class="indexterm" name="id2604662"></a> The most common cause of failure is an attempt to add an MS Windows group account that has an uppercase character and/or a space character in it. </p><p> -<a class="indexterm" name="id2598608"></a> +<a class="indexterm" name="id2604675"></a> There are three possible workarounds. First, use only group names that comply with the limitations of the UNIX/Linux <code class="literal">groupadd</code> system tool. Second, it involves the use of the script mentioned earlier in this chapter, and third is the option is to manually create a UNIX/Linux group account that can substitute for the MS Windows group name, then use the procedure listed above to map that group to the MS Windows group. - </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2598630"></a>Adding Domain Users to the Workstation Power Users Group</h3></div></div></div><p>“<span class="quote"> + </p></div><div class="sect2" title="Adding Domain Users to the Workstation Power Users Group"><div class="titlepage"><div><div><h3 class="title"><a name="id2604697"></a>Adding Domain Users to the Workstation Power Users Group</h3></div></div></div><p><span class="quote">“<span class="quote"> What must I do to add domain users to the Power Users group? - </span>”</p><p> -<a class="indexterm" name="id2598644"></a> + </span>”</span></p><p> +<a class="indexterm" name="id2604711"></a> The Power Users group is a group that is local to each Windows 200x/XP Professional workstation. You cannot add the Domain Users group to the Power Users group automatically, it must be done on each workstation by logging in as the local workstation <span class="emphasis"><em>administrator</em></span> and then using the following procedure: - </p><div class="procedure"><ol type="1"><li><p> + </p><div class="procedure"><ol class="procedure" type="1"><li class="step" title="Step 1"><p> Click <span class="guimenu">Start -> Control Panel -> Users and Passwords</span>. - </p></li><li><p> + </p></li><li class="step" title="Step 2"><p> Click the <span class="guimenuitem">Advanced</span> tab. - </p></li><li><p> + </p></li><li class="step" title="Step 3"><p> Click the <span class="guibutton">Advanced</span> button. - </p></li><li><p> + </p></li><li class="step" title="Step 4"><p> Click <code class="constant">Groups</code>. - </p></li><li><p> + </p></li><li class="step" title="Step 5"><p> Double-click <code class="constant">Power Users</code>. This will launch the panel to add users or groups to the local machine <code class="constant">Power Users</code> group. - </p></li><li><p> + </p></li><li class="step" title="Step 6"><p> Click the <span class="guibutton">Add</span> button. - </p></li><li><p> + </p></li><li class="step" title="Step 7"><p> Select the domain from which the <code class="constant">Domain Users</code> group is to be added. - </p></li><li><p> + </p></li><li class="step" title="Step 8"><p> Double-click the <code class="constant">Domain Users</code> group. - </p></li><li><p> + </p></li><li class="step" title="Step 9"><p> Click the <span class="guibutton">OK</span> button. If a logon box is presented during this process, please remember to enter the connect as <code class="constant">DOMAIN\UserName</code>, that is, for the domain <code class="constant">MIDEARTH</code> and the user <code class="constant">root</code> enter |