Ignore:
Timestamp:
Sep 24, 2009, 9:15:13 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 to 3.2.14 (final)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/docs/htmldocs/Samba3-HOWTO/NetCommand.html

    r272 r335  
    1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 13. Remote and Local Management: The Net Command</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.2.x HOWTO and Reference Guide"><link rel="up" href="optional.html" title="Part III. Advanced Configuration"><link rel="prev" href="groupmapping.html" title="Chapter 12. Group Mapping: MS Windows and UNIX"><link rel="next" href="idmapper.html" title="Chapter 14. Identity Mapping (IDMAP)"></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 13. Remote and Local Management: The Net Command</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="groupmapping.html">Prev</a> </td><th width="60%" align="center">Part III. Advanced Configuration</th><td width="20%" align="right"> <a accesskey="n" href="idmapper.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="NetCommand"></a>Chapter 13. Remote and Local Management: The Net Command</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">&lt;<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Volker</span> <span class="orgname">Samba Team</span> <span class="surname">Lendecke</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:Volker.Lendecke@SerNet.DE">Volker.Lendecke@SerNet.DE</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Guenther</span> <span class="orgname">SuSE</span> <span class="surname">Deschner</span></h3><div class="affiliation"><span class="orgname">SuSE<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:gd@suse.de">gd@suse.de</a>&gt;</code></p></div></div></div></div><div><p class="pubdate">May 9, 2005</p></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="NetCommand.html#id2599024">Overview</a></span></dt><dt><span class="sect1"><a href="NetCommand.html#id2599318">Administrative Tasks and Methods</a></span></dt><dt><span class="sect1"><a href="NetCommand.html#id2599400">UNIX and Windows Group Management</a></span></dt><dd><dl><dt><span class="sect2"><a href="NetCommand.html#id2599558">Adding, Renaming, or Deletion of Group Accounts</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#grpmemshipchg">Manipulating Group Memberships</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#nestedgrpmgmgt">Nested Group Support</a></span></dt></dl></dd><dt><span class="sect1"><a href="NetCommand.html#id2600927">UNIX and Windows User Management</a></span></dt><dd><dl><dt><span class="sect2"><a href="NetCommand.html#sbeuseraddn">Adding User Accounts</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#id2601139">Deletion of User Accounts</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#id2601187">Managing User Accounts</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#id2601256">User Mapping</a></span></dt></dl></dd><dt><span class="sect1"><a href="NetCommand.html#id2601339">Administering User Rights and Privileges</a></span></dt><dt><span class="sect1"><a href="NetCommand.html#id2601684">Managing Trust Relationships</a></span></dt><dd><dl><dt><span class="sect2"><a href="NetCommand.html#id2601699">Machine Trust Accounts</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#id2602068">Interdomain Trusts</a></span></dt></dl></dd><dt><span class="sect1"><a href="NetCommand.html#id2602302">Managing Security Identifiers (SIDS)</a></span></dt><dt><span class="sect1"><a href="NetCommand.html#id2602524">Share Management</a></span></dt><dd><dl><dt><span class="sect2"><a href="NetCommand.html#id2602569">Creating, Editing, and Removing Shares</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#id2602757">Creating and Changing Share ACLs</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#id2602787">Share, Directory, and File Migration</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#id2603410">Printer Migration</a></span></dt></dl></dd><dt><span class="sect1"><a href="NetCommand.html#id2603661">Controlling Open Files</a></span></dt><dt><span class="sect1"><a href="NetCommand.html#id2603680">Session and Connection Management</a></span></dt><dt><span class="sect1"><a href="NetCommand.html#id2603746">Printers and ADS</a></span></dt><dt><span class="sect1"><a href="NetCommand.html#id2603861">Manipulating the Samba Cache</a></span></dt><dt><span class="sect1"><a href="NetCommand.html#id2603879">Managing IDMAP UID/SID Mappings</a></span></dt><dd><dl><dt><span class="sect2"><a href="NetCommand.html#id2603923">Creating an IDMAP Database Dump File</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#id2603958">Restoring the IDMAP Database Dump File</a></span></dt></dl></dd><dt><span class="sect1"><a href="NetCommand.html#netmisc1">Other Miscellaneous Operations</a></span></dt></dl></div><p>
    2 <a class="indexterm" name="id2598885"></a>
     1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 13. Remote and Local Management: The Net Command</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.2.x HOWTO and Reference Guide"><link rel="up" href="optional.html" title="Part III. Advanced Configuration"><link rel="prev" href="groupmapping.html" title="Chapter 12. Group Mapping: MS Windows and UNIX"><link rel="next" href="idmapper.html" title="Chapter 14. Identity Mapping (IDMAP)"></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 13. Remote and Local Management: The Net Command</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="groupmapping.html">Prev</a> </td><th width="60%" align="center">Part III. Advanced Configuration</th><td width="20%" align="right"> <a accesskey="n" href="idmapper.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="NetCommand"></a>Chapter 13. Remote and Local Management: The Net Command</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">&lt;<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Volker</span> <span class="orgname">Samba Team</span> <span class="surname">Lendecke</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:Volker.Lendecke@SerNet.DE">Volker.Lendecke@SerNet.DE</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Guenther</span> <span class="orgname">SuSE</span> <span class="surname">Deschner</span></h3><div class="affiliation"><span class="orgname">SuSE<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:gd@suse.de">gd@suse.de</a>&gt;</code></p></div></div></div></div><div><p class="pubdate">May 9, 2005</p></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="NetCommand.html#id2599024">Overview</a></span></dt><dt><span class="sect1"><a href="NetCommand.html#id2599319">Administrative Tasks and Methods</a></span></dt><dt><span class="sect1"><a href="NetCommand.html#id2599400">UNIX and Windows Group Management</a></span></dt><dd><dl><dt><span class="sect2"><a href="NetCommand.html#id2599558">Adding, Renaming, or Deletion of Group Accounts</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#grpmemshipchg">Manipulating Group Memberships</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#nestedgrpmgmgt">Nested Group Support</a></span></dt></dl></dd><dt><span class="sect1"><a href="NetCommand.html#id2600928">UNIX and Windows User Management</a></span></dt><dd><dl><dt><span class="sect2"><a href="NetCommand.html#sbeuseraddn">Adding User Accounts</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#id2601139">Deletion of User Accounts</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#id2601187">Managing User Accounts</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#id2601256">User Mapping</a></span></dt></dl></dd><dt><span class="sect1"><a href="NetCommand.html#id2601339">Administering User Rights and Privileges</a></span></dt><dt><span class="sect1"><a href="NetCommand.html#id2601684">Managing Trust Relationships</a></span></dt><dd><dl><dt><span class="sect2"><a href="NetCommand.html#id2601699">Machine Trust Accounts</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#id2602068">Interdomain Trusts</a></span></dt></dl></dd><dt><span class="sect1"><a href="NetCommand.html#id2602302">Managing Security Identifiers (SIDS)</a></span></dt><dt><span class="sect1"><a href="NetCommand.html#id2602524">Share Management</a></span></dt><dd><dl><dt><span class="sect2"><a href="NetCommand.html#id2602569">Creating, Editing, and Removing Shares</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#id2602757">Creating and Changing Share ACLs</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#id2602787">Share, Directory, and File Migration</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#id2603410">Printer Migration</a></span></dt></dl></dd><dt><span class="sect1"><a href="NetCommand.html#id2603661">Controlling Open Files</a></span></dt><dt><span class="sect1"><a href="NetCommand.html#id2603680">Session and Connection Management</a></span></dt><dt><span class="sect1"><a href="NetCommand.html#id2603746">Printers and ADS</a></span></dt><dt><span class="sect1"><a href="NetCommand.html#id2603862">Manipulating the Samba Cache</a></span></dt><dt><span class="sect1"><a href="NetCommand.html#id2603879">Managing IDMAP UID/SID Mappings</a></span></dt><dd><dl><dt><span class="sect2"><a href="NetCommand.html#id2603923">Creating an IDMAP Database Dump File</a></span></dt><dt><span class="sect2"><a href="NetCommand.html#id2603958">Restoring the IDMAP Database Dump File</a></span></dt></dl></dd><dt><span class="sect1"><a href="NetCommand.html#netmisc1">Other Miscellaneous Operations</a></span></dt></dl></div><p>
     2<a class="indexterm" name="id2598886"></a>
    33<a class="indexterm" name="id2598892"></a>
    44<a class="indexterm" name="id2598899"></a>
     
    4040<a class="indexterm" name="id2599097"></a>
    4141<a class="indexterm" name="id2599104"></a>
    42 <a class="indexterm" name="id2599110"></a>
     42<a class="indexterm" name="id2599111"></a>
    4343<a class="indexterm" name="id2599117"></a>
    4444<a class="indexterm" name="id2599124"></a>
    45 <a class="indexterm" name="id2599130"></a>
     45<a class="indexterm" name="id2599131"></a>
    4646        Regardless of the type of server being installed, local UNIX groups must be mapped to the Windows
    4747        networking domain global group accounts. Do you ask why? Because Samba always limits its access to
     
    8181        evidence of its importance, one that has grown in complexity to the point that it is no longer considered
    8282        prudent to cover its use fully in the online UNIX man pages.
    83         </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2599318"></a>Administrative Tasks and Methods</h2></div></div></div><p>
     83        </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2599319"></a>Administrative Tasks and Methods</h2></div></div></div><p>
    8484<a class="indexterm" name="id2599327"></a>
    8585<a class="indexterm" name="id2599333"></a>
     
    230230<a class="indexterm" name="id2599844"></a>
    231231<a class="indexterm" name="id2599851"></a>
    232 <a class="indexterm" name="id2599857"></a>
     232<a class="indexterm" name="id2599858"></a>
    233233<a class="indexterm" name="id2599864"></a>
    234234        All file system (file and directory) access controls, within the file system of a UNIX/Linux server that is
     
    240240        </p><p>
    241241<a class="indexterm" name="id2599890"></a>
    242 <a class="indexterm" name="id2599896"></a>
    243 <a class="indexterm" name="id2599903"></a>
     242<a class="indexterm" name="id2599897"></a>
     243<a class="indexterm" name="id2599904"></a>
    244244<a class="indexterm" name="id2599910"></a>
    245245<a class="indexterm" name="id2599917"></a>
     
    252252        of creation of the mapping.
    253253        </p><p>
    254 <a class="indexterm" name="id2599954"></a>
     254<a class="indexterm" name="id2599955"></a>
    255255<a class="indexterm" name="id2599966"></a>
    256256<a class="indexterm" name="id2599977"></a>
     
    291291        treated as local to the individual Samba server. Local groups can be used with Samba to enable multiple
    292292        nested group support.
    293         </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2600109"></a>Deleting a Group Account</h4></div></div></div><p>
    294 <a class="indexterm" name="id2600117"></a>
     293        </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2600110"></a>Deleting a Group Account</h4></div></div></div><p>
     294<a class="indexterm" name="id2600118"></a>
    295295        A group account may be deleted by executing the following command:
    296296</p><pre class="screen">
     
    299299        </p><p>
    300300        Validation of the deletion is advisable. The same commands may be executed as shown above.
    301         </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2600149"></a>Rename Group Accounts</h4></div></div></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
     301        </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2600150"></a>Rename Group Accounts</h4></div></div></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    302302        This command is not documented in the man pages; it is implemented in the source code, but it does not
    303303        work at this time. The example given documents, from the source code, how it should work. Watch the
     
    441441<code class="prompt">root# </code> net rpc group delmem demo "DOM\jht" -Uroot%not24get
    442442</pre><p>
    443         </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2600628"></a>Managing Nest Groups on Workstations from the Samba Server</h4></div></div></div><p>
     443        </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2600629"></a>Managing Nest Groups on Workstations from the Samba Server</h4></div></div></div><p>
    444444        Windows network administrators often ask on the Samba mailing list how it is possible to grant everyone
    445445        administrative rights on their own workstation. This is of course a very bad practice, but commonly done
     
    485485        for the use of this method is that it will guarantee that all users have appropriate rights on
    486486        the workstation.
    487         </p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2600927"></a>UNIX and Windows User Management</h2></div></div></div><p>
     487        </p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2600928"></a>UNIX and Windows User Management</h2></div></div></div><p>
    488488<a class="indexterm" name="id2600936"></a>
    489489<a class="indexterm" name="id2600942"></a>
     
    491491<a class="indexterm" name="id2600956"></a>
    492492<a class="indexterm" name="id2600963"></a>
    493 <a class="indexterm" name="id2600969"></a>
    494 <a class="indexterm" name="id2600976"></a>
     493<a class="indexterm" name="id2600970"></a>
     494<a class="indexterm" name="id2600977"></a>
    495495<a class="indexterm" name="id2600983"></a>
    496496        Every Windows network user account must be translated to a UNIX/Linux user account. In actual fact,
     
    535535</pre><p>
    536536        The following command will delete the user account <code class="constant">jacko</code>:
    537 <a class="indexterm" name="id2601161"></a>
     537<a class="indexterm" name="id2601162"></a>
    538538</p><pre class="screen">
    539539<code class="prompt">root# </code> net rpc user delete jacko -Uroot%not24get
     
    564564
    565565        </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2601256"></a>User Mapping</h3></div></div></div><p>
    566 <a class="indexterm" name="id2601263"></a>
     566<a class="indexterm" name="id2601264"></a>
    567567<a class="indexterm" name="id2601270"></a>
    568568<a class="indexterm" name="id2601277"></a>
     
    596596<a class="indexterm" name="id2601402"></a>
    597597<a class="indexterm" name="id2601408"></a>
    598 <a class="indexterm" name="id2601415"></a>
    599 <a class="indexterm" name="id2601422"></a>
     598<a class="indexterm" name="id2601416"></a>
     599<a class="indexterm" name="id2601423"></a>
    600600        New to Samba version 3.0.11 is the ability to delegate administrative privileges as necessary to either
    601601        a normal user or to groups of users. The significance of the administrative privileges is documented
     
    679679        </p><p>
    680680        The following step permits validation of the changes just made:
    681 <a class="indexterm" name="id2601649"></a>
     681<a class="indexterm" name="id2601650"></a>
    682682</p><pre class="screen">
    683683<code class="prompt">root# </code> net rpc rights list accounts -U root%not24get
     
    838838        create a trusted connection with this account. That means that the foreign domain is being trusted
    839839        to access resources in the local domain. This command creates the local trust account:
    840 <a class="indexterm" name="id2602117"></a>
     840<a class="indexterm" name="id2602118"></a>
    841841</p><pre class="screen">
    842842<code class="prompt">root# </code> net rpc trustdom add DAMNATION f00db4r -Uroot%not24get
     
    912912<a class="indexterm" name="id2602317"></a>
    913913<a class="indexterm" name="id2602324"></a>
    914 <a class="indexterm" name="id2602330"></a>
    915 <a class="indexterm" name="id2602337"></a>
     914<a class="indexterm" name="id2602331"></a>
     915<a class="indexterm" name="id2602338"></a>
    916916        The basic security identifier that is used by all Windows networking operations is the Windows security
    917917        identifier (SID). All Windows network machines (servers and workstations), users, and groups are
     
    921921<a class="indexterm" name="id2602354"></a>
    922922<a class="indexterm" name="id2602361"></a>
    923 <a class="indexterm" name="id2602367"></a>
     923<a class="indexterm" name="id2602368"></a>
    924924<a class="indexterm" name="id2602374"></a>
    925925        It is truly prudent to store the machine and/or domain SID in a file for safekeeping. Why? Because
     
    10041004        Often it is desirable also to permit a share to be removed using a command-line tool.
    10051005        The following step permits the share that was previously added to be removed:
    1006 <a class="indexterm" name="id2602716"></a>
     1006<a class="indexterm" name="id2602717"></a>
    10071007</p><pre class="screen">
    10081008<code class="prompt">root# </code> net rpc share delete Bulge -S MERLIN -Uroot%not24get
     
    10921092        large list of available shares on the system that is being migrated can be limited using the
    10931093        <em class="parameter"><code>--exclude</code></em> switch. For example:
    1094 <a class="indexterm" name="id2603010"></a>
     1094<a class="indexterm" name="id2603011"></a>
    10951095</p><pre class="screen">
    10961096<code class="prompt">root# </code> net rpc share migrate shares myshare\
     
    11111111        The steps taken so far perform only the migration of shares. Directories and directory contents
    11121112        are not migrated by the steps covered up to this point.
    1113         </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2603093"></a>File and Directory Migration</h4></div></div></div><p>
     1113        </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2603094"></a>File and Directory Migration</h4></div></div></div><p>
    11141114        Everything covered to this point has been done in preparation for the migration of file and directory
    11151115        data. For many people preparation is potentially boring and the real excitement only begins when file
     
    11711171        <code class="constant">nt4box</code> to the Samba server from which migration is initiated. Files that are group-owned
    11721172        will be owned by the user account <code class="constant">administrator</code>.
    1173         </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2603308"></a>Share-ACL Migration</h4></div></div></div><p>
     1173        </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2603309"></a>Share-ACL Migration</h4></div></div></div><p>
    11741174        It is possible to have share-ACLs (security descriptors) that won't allow you, even as Administrator, to
    11751175        copy any files or directories into it. Therefor the migration of the share-ACLs has been put into a separate
     
    12321232        Printer migration from a Windows print server (NT4 or 200x) is shown. This instruction causes the
    12331233        printer share to be created together with the underlying print queue:
    1234 <a class="indexterm" name="id2603545"></a>
     1234<a class="indexterm" name="id2603546"></a>
    12351235</p><pre class="screen">
    12361236net rpc printer MIGRATE PRINTERS [printer] [misc. options] [targets]
     
    13151315net ads printer search &lt;printer_name&gt; -Uadministrator%secret
    13161316</pre><p>
    1317         </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2603861"></a>Manipulating the Samba Cache</h2></div></div></div><p>
     1317        </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2603862"></a>Manipulating the Samba Cache</h2></div></div></div><p>
    13181318        Please refer to the <code class="literal">net</code> command man page for information regarding cache management.
    13191319        </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2603879"></a>Managing IDMAP UID/SID Mappings</h2></div></div></div><p>
Note: See TracChangeset for help on using the changeset viewer.