Ignore:
Timestamp:
Mar 1, 2010, 3:05:48 PM (15 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3.x to 3.3.11

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/docs/htmldocs/manpages/net.8.html

    r368 r411  
    1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>net</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" title="net"><a name="net.8"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>net &#8212; Tool for administration of Samba and remote
     1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>net</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="net.8"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>net &#8212; Tool for administration of Samba and remote
    22        CIFS servers.
    3         </p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="literal">net</code> {&lt;ads|rap|rpc&gt;} [-h] [-w workgroup] [-W myworkgroup] [-U user] [-I ip-address] [-p port] [-n myname] [-s conffile] [-S server] [-l] [-P] [-d debuglevel] [-V] [--request-timeout seconds]</p></div></div><div class="refsect1" title="DESCRIPTION"><a name="id2489664"></a><h2>DESCRIPTION</h2><p>This tool is part of the <a class="citerefentry" href="samba.7.html"><span class="citerefentry"><span class="refentrytitle">samba</span>(7)</span></a> suite.</p><p>The Samba net utility is meant to work just like the net utility
     3        </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="literal">net</code> {&lt;ads|rap|rpc&gt;} [-h] [-w workgroup] [-W myworkgroup] [-U user] [-I ip-address] [-p port] [-n myname] [-s conffile] [-S server] [-l] [-P] [-d debuglevel] [-V] [--request-timeout seconds]</p></div></div><div class="refsect1" lang="en"><a name="id2483395"></a><h2>DESCRIPTION</h2><p>This tool is part of the <a class="citerefentry" href="samba.7.html"><span class="citerefentry"><span class="refentrytitle">samba</span>(7)</span></a> suite.</p><p>The Samba net utility is meant to work just like the net utility
    44        available for windows and DOS. The first argument should be used
    55        to specify the protocol to use when executing a certain command.
     
    88        argument is omitted, net will try to determine it automatically.
    99        Not all commands are available on all protocols.
    10         </p></div><div class="refsect1" title="OPTIONS"><a name="id2489693"></a><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">-h|--help</span></dt><dd><p>Print a summary of command line options.
     10        </p></div><div class="refsect1" lang="en"><a name="id2483548"></a><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">-h|--help</span></dt><dd><p>Print a summary of command line options.
    1111</p></dd><dt><span class="term">-w target-workgroup</span></dt><dd><p>
    1212                Sets target workgroup or domain. You have to specify
     
    5858data, most of which is extremely cryptic.</p><p>Note that specifying this parameter here will
    5959override the <a class="link" href="smb.conf.5.html#" target="_top"></a> parameter
    60 in the <code class="filename">smb.conf</code> file.</p></dd></dl></div></div><div class="refsect1" title="COMMANDS"><a name="id2487548"></a><h2>COMMANDS</h2><div class="refsect2" title="CHANGESECRETPW"><a name="id2487554"></a><h3>CHANGESECRETPW</h3><p>This command allows the Samba machine account password to be set from an external application
     60in the <code class="filename">smb.conf</code> file.</p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id2481567"></a><h2>COMMANDS</h2><div class="refsect2" lang="en"><a name="id2481572"></a><h3>CHANGESECRETPW</h3><p>This command allows the Samba machine account password to be set from an external application
    6161to a machine account password that has already been stored in Active Directory. DO NOT USE this command
    6262unless you know exactly what you are doing. The use of this command requires that the force flag (-f)
     
    6565this without care and attention as it will overwrite a legitimate machine password without warning.
    6666YOU HAVE BEEN WARNED.
    67 </p></div><div class="refsect2" title="TIME"><a name="id2487574"></a><h3>TIME</h3><p>The <code class="literal">NET TIME</code> command allows you to view the time on a remote server
    68         or synchronise the time on the local server with the time on the remote server.</p><div class="refsect3" title="TIME"><a name="id2487592"></a><h4>TIME</h4><p>Without any options, the <code class="literal">NET TIME</code> command
     67</p></div><div class="refsect2" lang="en"><a name="id2481593"></a><h3>TIME</h3><p>The <code class="literal">NET TIME</code> command allows you to view the time on a remote server
     68        or synchronise the time on the local server with the time on the remote server.</p><div class="refsect3" lang="en"><a name="id2481610"></a><h4>TIME</h4><p>Without any options, the <code class="literal">NET TIME</code> command
    6969displays the time on the remote server.
    70 </p></div><div class="refsect3" title="TIME SYSTEM"><a name="id2487608"></a><h4>TIME SYSTEM</h4><p>Displays the time on the remote server in a format ready for <code class="literal">/bin/date</code>.</p></div><div class="refsect3" title="TIME SET"><a name="id2487625"></a><h4>TIME SET</h4><p>Tries to set the date and time of the local server to that on
    71 the remote server using <code class="literal">/bin/date</code>. </p></div><div class="refsect3" title="TIME ZONE"><a name="id2487643"></a><h4>TIME ZONE</h4><p>Displays the timezone in hours from GMT on the remote computer.</p></div></div><div class="refsect2" title="[RPC|ADS] JOIN [TYPE] [-U username[%password]] [createupn=UPN] [createcomputer=OU] [options]"><a name="id2487655"></a><h3>[RPC|ADS] JOIN [TYPE] [-U username[%password]] [createupn=UPN] [createcomputer=OU] [options]</h3><p>
     70</p></div><div class="refsect3" lang="en"><a name="id2481627"></a><h4>TIME SYSTEM</h4><p>Displays the time on the remote server in a format ready for <code class="literal">/bin/date</code>.</p></div><div class="refsect3" lang="en"><a name="id2481644"></a><h4>TIME SET</h4><p>Tries to set the date and time of the local server to that on
     71the remote server using <code class="literal">/bin/date</code>. </p></div><div class="refsect3" lang="en"><a name="id2481661"></a><h4>TIME ZONE</h4><p>Displays the timezone in hours from GMT on the remote computer.</p></div></div><div class="refsect2" lang="en"><a name="id2481673"></a><h3>[RPC|ADS] JOIN [TYPE] [-U username[%password]] [createupn=UPN] [createcomputer=OU] [options]</h3><p>
    7272Join a domain.  If the account already exists on the server, and
    7373[TYPE] is MEMBER, the machine will attempt to join automatically.
     
    8686and ldap, so it may need to be doubled or quadrupled to pass through,
    8787and it is not used as a delimiter.
    88 </p></div><div class="refsect2" title="[RPC] OLDJOIN [options]"><a name="id2487689"></a><h3>[RPC] OLDJOIN [options]</h3><p>Join a domain. Use the OLDJOIN option to join the domain
     88</p></div><div class="refsect2" lang="en"><a name="id2481708"></a><h3>[RPC] OLDJOIN [options]</h3><p>Join a domain. Use the OLDJOIN option to join the domain
    8989using the old style of domain joining - you need to create a trust
    90 account in server manager first.</p></div><div class="refsect2" title="[RPC|ADS] USER"><a name="id2487702"></a><h3>[RPC|ADS] USER</h3><div class="refsect3" title="[RPC|ADS] USER"><a name="id2487707"></a><h4>[RPC|ADS] USER</h4><p>List all users</p></div><div class="refsect3" title="[RPC|ADS] USER DELETE target"><a name="id2487718"></a><h4>[RPC|ADS] USER DELETE <em class="replaceable"><code>target</code></em></h4><p>Delete specified user</p></div><div class="refsect3" title="[RPC|ADS] USER INFO target"><a name="id2487730"></a><h4>[RPC|ADS] USER INFO <em class="replaceable"><code>target</code></em></h4><p>List the domain groups of the specified user.</p></div><div class="refsect3" title="[RPC|ADS] USER RENAME oldname newname"><a name="id2487743"></a><h4>[RPC|ADS] USER RENAME <em class="replaceable"><code>oldname</code></em> <em class="replaceable"><code>newname</code></em></h4><p>Rename specified user.</p></div><div class="refsect3" title="[RPC|ADS] USER ADD name [password] [-F user flags] [-C comment]"><a name="id2487758"></a><h4>[RPC|ADS] USER ADD <em class="replaceable"><code>name</code></em> [password] [-F user flags] [-C comment]</h4><p>Add specified user.</p></div></div><div class="refsect2" title="[RPC|ADS] GROUP"><a name="id2487773"></a><h3>[RPC|ADS] GROUP</h3><div class="refsect3" title="[RPC|ADS] GROUP [misc options] [targets]"><a name="id2487779"></a><h4>[RPC|ADS] GROUP [misc options] [targets]</h4><p>List user groups.</p></div><div class="refsect3" title="[RPC|ADS] GROUP DELETE name [misc. options]"><a name="id2487790"></a><h4>[RPC|ADS] GROUP DELETE <em class="replaceable"><code>name</code></em> [misc. options]</h4><p>Delete specified group.</p></div><div class="refsect3" title="[RPC|ADS] GROUP ADD name [-C comment]"><a name="id2487803"></a><h4>[RPC|ADS] GROUP ADD <em class="replaceable"><code>name</code></em> [-C comment]</h4><p>Create specified group.</p></div></div><div class="refsect2" title="[RAP|RPC] SHARE"><a name="id2487818"></a><h3>[RAP|RPC] SHARE</h3><div class="refsect3" title="[RAP|RPC] SHARE [misc. options] [targets]"><a name="id2487823"></a><h4>[RAP|RPC] SHARE [misc. options] [targets]</h4><p>Enumerates all exported resources (network shares) on target server.</p></div><div class="refsect3" title="[RAP|RPC] SHARE ADD name=serverpath [-C comment] [-M maxusers] [targets]"><a name="id2487835"></a><h4>[RAP|RPC] SHARE ADD <em class="replaceable"><code>name=serverpath</code></em> [-C comment] [-M maxusers] [targets]</h4><p>Adds a share from a server (makes the export active). Maxusers
     90account in server manager first.</p></div><div class="refsect2" lang="en"><a name="id2481720"></a><h3>[RPC|ADS] USER</h3><div class="refsect3" lang="en"><a name="id2481726"></a><h4>[RPC|ADS] USER</h4><p>List all users</p></div><div class="refsect3" lang="en"><a name="id2481736"></a><h4>[RPC|ADS] USER DELETE <em class="replaceable"><code>target</code></em></h4><p>Delete specified user</p></div><div class="refsect3" lang="en"><a name="id2481748"></a><h4>[RPC|ADS] USER INFO <em class="replaceable"><code>target</code></em></h4><p>List the domain groups of the specified user.</p></div><div class="refsect3" lang="en"><a name="id2481761"></a><h4>[RPC|ADS] USER RENAME <em class="replaceable"><code>oldname</code></em> <em class="replaceable"><code>newname</code></em></h4><p>Rename specified user.</p></div><div class="refsect3" lang="en"><a name="id2481777"></a><h4>[RPC|ADS] USER ADD <em class="replaceable"><code>name</code></em> [password] [-F user flags] [-C comment]</h4><p>Add specified user.</p></div></div><div class="refsect2" lang="en"><a name="id2481792"></a><h3>[RPC|ADS] GROUP</h3><div class="refsect3" lang="en"><a name="id2481797"></a><h4>[RPC|ADS] GROUP [misc options] [targets]</h4><p>List user groups.</p></div><div class="refsect3" lang="en"><a name="id2481808"></a><h4>[RPC|ADS] GROUP DELETE <em class="replaceable"><code>name</code></em> [misc. options]</h4><p>Delete specified group.</p></div><div class="refsect3" lang="en"><a name="id2481822"></a><h4>[RPC|ADS] GROUP ADD <em class="replaceable"><code>name</code></em> [-C comment]</h4><p>Create specified group.</p></div></div><div class="refsect2" lang="en"><a name="id2481836"></a><h3>[RAP|RPC] SHARE</h3><div class="refsect3" lang="en"><a name="id2481842"></a><h4>[RAP|RPC] SHARE [misc. options] [targets]</h4><p>Enumerates all exported resources (network shares) on target server.</p></div><div class="refsect3" lang="en"><a name="id2481854"></a><h4>[RAP|RPC] SHARE ADD <em class="replaceable"><code>name=serverpath</code></em> [-C comment] [-M maxusers] [targets]</h4><p>Adds a share from a server (makes the export active). Maxusers
    9191specifies the number of users that can be connected to the
    92 share simultaneously.</p></div><div class="refsect3" title="SHARE DELETE sharename"><a name="id2487852"></a><h4>SHARE DELETE <em class="replaceable"><code>sharename</code></em></h4><p>Delete specified share.</p></div></div><div class="refsect2" title="[RPC|RAP] FILE"><a name="id2487865"></a><h3>[RPC|RAP] FILE</h3><div class="refsect3" title="[RPC|RAP] FILE"><a name="id2487871"></a><h4>[RPC|RAP] FILE</h4><p>List all open files on remote server.</p></div><div class="refsect3" title="[RPC|RAP] FILE CLOSE fileid"><a name="id2487882"></a><h4>[RPC|RAP] FILE CLOSE <em class="replaceable"><code>fileid</code></em></h4><p>Close file with specified <em class="replaceable"><code>fileid</code></em> on
    93 remote server.</p></div><div class="refsect3" title="[RPC|RAP] FILE INFO fileid"><a name="id2487898"></a><h4>[RPC|RAP] FILE INFO <em class="replaceable"><code>fileid</code></em></h4><p>
     92share simultaneously.</p></div><div class="refsect3" lang="en"><a name="id2481870"></a><h4>SHARE DELETE <em class="replaceable"><code>sharename</code></em></h4><p>Delete specified share.</p></div></div><div class="refsect2" lang="en"><a name="id2481884"></a><h3>[RPC|RAP] FILE</h3><div class="refsect3" lang="en"><a name="id2481889"></a><h4>[RPC|RAP] FILE</h4><p>List all open files on remote server.</p></div><div class="refsect3" lang="en"><a name="id2481900"></a><h4>[RPC|RAP] FILE CLOSE <em class="replaceable"><code>fileid</code></em></h4><p>Close file with specified <em class="replaceable"><code>fileid</code></em> on
     93remote server.</p></div><div class="refsect3" lang="en"><a name="id2481916"></a><h4>[RPC|RAP] FILE INFO <em class="replaceable"><code>fileid</code></em></h4><p>
    9494Print information on specified <em class="replaceable"><code>fileid</code></em>.
    9595Currently listed are: file-id, username, locks, path, permissions.
    96 </p></div><div class="refsect3" title="[RAP|RPC] FILE USER user"><a name="id2487914"></a><h4>[RAP|RPC] FILE USER <em class="replaceable"><code>user</code></em></h4><p>
     96</p></div><div class="refsect3" lang="en"><a name="id2481933"></a><h4>[RAP|RPC] FILE USER <em class="replaceable"><code>user</code></em></h4><p>
    9797List files opened by specified <em class="replaceable"><code>user</code></em>.
    9898Please note that <code class="literal">net rap file user</code> does not work
    9999against Samba servers.
    100 </p></div></div><div class="refsect2" title="SESSION"><a name="id2487938"></a><h3>SESSION</h3><div class="refsect3" title="RAP SESSION"><a name="id2487944"></a><h4>RAP SESSION</h4><p>Without any other options, SESSION enumerates all active SMB/CIFS
    101 sessions on the target server.</p></div><div class="refsect3" title="RAP SESSION DELETE|CLOSE CLIENT_NAME"><a name="id2487955"></a><h4>RAP SESSION DELETE|CLOSE <em class="replaceable"><code>CLIENT_NAME</code></em></h4><p>Close the specified sessions.</p></div><div class="refsect3" title="RAP SESSION INFO CLIENT_NAME"><a name="id2487967"></a><h4>RAP SESSION INFO <em class="replaceable"><code>CLIENT_NAME</code></em></h4><p>Give a list with all the open files in specified session.</p></div></div><div class="refsect2" title="RAP SERVER DOMAIN"><a name="id2487982"></a><h3>RAP SERVER <em class="replaceable"><code>DOMAIN</code></em></h3><p>List all servers in specified domain or workgroup. Defaults
    102 to local domain.</p></div><div class="refsect2" title="RAP DOMAIN"><a name="id2487995"></a><h3>RAP DOMAIN</h3><p>Lists all domains and workgroups visible on the
    103 current network.</p></div><div class="refsect2" title="RAP PRINTQ"><a name="id2488006"></a><h3>RAP PRINTQ</h3><div class="refsect3" title="RAP PRINTQ INFO QUEUE_NAME"><a name="id2488012"></a><h4>RAP PRINTQ INFO <em class="replaceable"><code>QUEUE_NAME</code></em></h4><p>Lists the specified print queue and print jobs on the server.
     100</p></div></div><div class="refsect2" lang="en"><a name="id2481956"></a><h3>SESSION</h3><div class="refsect3" lang="en"><a name="id2481962"></a><h4>RAP SESSION</h4><p>Without any other options, SESSION enumerates all active SMB/CIFS
     101sessions on the target server.</p></div><div class="refsect3" lang="en"><a name="id2481974"></a><h4>RAP SESSION DELETE|CLOSE <em class="replaceable"><code>CLIENT_NAME</code></em></h4><p>Close the specified sessions.</p></div><div class="refsect3" lang="en"><a name="id2481986"></a><h4>RAP SESSION INFO <em class="replaceable"><code>CLIENT_NAME</code></em></h4><p>Give a list with all the open files in specified session.</p></div></div><div class="refsect2" lang="en"><a name="id2482000"></a><h3>RAP SERVER <em class="replaceable"><code>DOMAIN</code></em></h3><p>List all servers in specified domain or workgroup. Defaults
     102to local domain.</p></div><div class="refsect2" lang="en"><a name="id2482014"></a><h3>RAP DOMAIN</h3><p>Lists all domains and workgroups visible on the
     103current network.</p></div><div class="refsect2" lang="en"><a name="id2482025"></a><h3>RAP PRINTQ</h3><div class="refsect3" lang="en"><a name="id2482031"></a><h4>RAP PRINTQ INFO <em class="replaceable"><code>QUEUE_NAME</code></em></h4><p>Lists the specified print queue and print jobs on the server.
    104104If the <em class="replaceable"><code>QUEUE_NAME</code></em> is omitted, all
    105 queues are listed.</p></div><div class="refsect3" title="RAP PRINTQ DELETE JOBID"><a name="id2538499"></a><h4>RAP PRINTQ DELETE <em class="replaceable"><code>JOBID</code></em></h4><p>Delete job with specified id.</p></div></div><div class="refsect2" title="RAP VALIDATE user [password]"><a name="id2538512"></a><h3>RAP VALIDATE <em class="replaceable"><code>user</code></em> [<em class="replaceable"><code>password</code></em>]</h3><p>
     105queues are listed.</p></div><div class="refsect3" lang="en"><a name="id2532513"></a><h4>RAP PRINTQ DELETE <em class="replaceable"><code>JOBID</code></em></h4><p>Delete job with specified id.</p></div></div><div class="refsect2" lang="en"><a name="id2532525"></a><h3>RAP VALIDATE <em class="replaceable"><code>user</code></em> [<em class="replaceable"><code>password</code></em>]</h3><p>
    106106Validate whether the specified user can log in to the
    107107remote server. If the password is not specified on the commandline, it
    108108will be prompted.
    109 </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Currently NOT implemented.</p></div></div><div class="refsect2" title="RAP GROUPMEMBER"><a name="id2538534"></a><h3>RAP GROUPMEMBER</h3><div class="refsect3" title="RAP GROUPMEMBER LIST GROUP"><a name="id2538540"></a><h4>RAP GROUPMEMBER LIST <em class="replaceable"><code>GROUP</code></em></h4><p>List all members of the specified group.</p></div><div class="refsect3" title="RAP GROUPMEMBER DELETE GROUP USER"><a name="id2538552"></a><h4>RAP GROUPMEMBER DELETE <em class="replaceable"><code>GROUP</code></em> <em class="replaceable"><code>USER</code></em></h4><p>Delete member from group.</p></div><div class="refsect3" title="RAP GROUPMEMBER ADD GROUP USER"><a name="id2538567"></a><h4>RAP GROUPMEMBER ADD <em class="replaceable"><code>GROUP</code></em> <em class="replaceable"><code>USER</code></em></h4><p>Add member to group.</p></div></div><div class="refsect2" title="RAP ADMIN command"><a name="id2538583"></a><h3>RAP ADMIN <em class="replaceable"><code>command</code></em></h3><p>Execute the specified <em class="replaceable"><code>command</code></em> on
     109</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Currently NOT implemented.</p></div></div><div class="refsect2" lang="en"><a name="id2532548"></a><h3>RAP GROUPMEMBER</h3><div class="refsect3" lang="en"><a name="id2532554"></a><h4>RAP GROUPMEMBER LIST <em class="replaceable"><code>GROUP</code></em></h4><p>List all members of the specified group.</p></div><div class="refsect3" lang="en"><a name="id2532566"></a><h4>RAP GROUPMEMBER DELETE <em class="replaceable"><code>GROUP</code></em> <em class="replaceable"><code>USER</code></em></h4><p>Delete member from group.</p></div><div class="refsect3" lang="en"><a name="id2532581"></a><h4>RAP GROUPMEMBER ADD <em class="replaceable"><code>GROUP</code></em> <em class="replaceable"><code>USER</code></em></h4><p>Add member to group.</p></div></div><div class="refsect2" lang="en"><a name="id2532597"></a><h3>RAP ADMIN <em class="replaceable"><code>command</code></em></h3><p>Execute the specified <em class="replaceable"><code>command</code></em> on
    110110the remote server. Only works with OS/2 servers.
    111 </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Currently NOT implemented.</p></div></div><div class="refsect2" title="RAP SERVICE"><a name="id2538604"></a><h3>RAP SERVICE</h3><div class="refsect3" title="RAP SERVICE START NAME [arguments...]"><a name="id2538609"></a><h4>RAP SERVICE START <em class="replaceable"><code>NAME</code></em> [arguments...]</h4><p>Start the specified service on the remote server. Not implemented yet.</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Currently NOT implemented.</p></div></div><div class="refsect3" title="RAP SERVICE STOP"><a name="id2538627"></a><h4>RAP SERVICE STOP</h4><p>Stop the specified service on the remote server.</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Currently NOT implemented.</p></div></div></div><div class="refsect2" title="RAP PASSWORD USER OLDPASS NEWPASS"><a name="id2538643"></a><h3>RAP PASSWORD <em class="replaceable"><code>USER</code></em> <em class="replaceable"><code>OLDPASS</code></em> <em class="replaceable"><code>NEWPASS</code></em></h3><p>
     111</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Currently NOT implemented.</p></div></div><div class="refsect2" lang="en"><a name="id2532617"></a><h3>RAP SERVICE</h3><div class="refsect3" lang="en"><a name="id2532623"></a><h4>RAP SERVICE START <em class="replaceable"><code>NAME</code></em> [arguments...]</h4><p>Start the specified service on the remote server. Not implemented yet.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Currently NOT implemented.</p></div></div><div class="refsect3" lang="en"><a name="id2532641"></a><h4>RAP SERVICE STOP</h4><p>Stop the specified service on the remote server.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Currently NOT implemented.</p></div></div></div><div class="refsect2" lang="en"><a name="id2532657"></a><h3>RAP PASSWORD <em class="replaceable"><code>USER</code></em> <em class="replaceable"><code>OLDPASS</code></em> <em class="replaceable"><code>NEWPASS</code></em></h3><p>
    112112Change password of <em class="replaceable"><code>USER</code></em> from <em class="replaceable"><code>OLDPASS</code></em> to <em class="replaceable"><code>NEWPASS</code></em>.
    113 </p></div><div class="refsect2" title="LOOKUP"><a name="id2538671"></a><h3>LOOKUP</h3><div class="refsect3" title="LOOKUP HOST HOSTNAME [TYPE]"><a name="id2538676"></a><h4>LOOKUP HOST <em class="replaceable"><code>HOSTNAME</code></em> [<em class="replaceable"><code>TYPE</code></em>]</h4><p>
     113</p></div><div class="refsect2" lang="en"><a name="id2532685"></a><h3>LOOKUP</h3><div class="refsect3" lang="en"><a name="id2532690"></a><h4>LOOKUP HOST <em class="replaceable"><code>HOSTNAME</code></em> [<em class="replaceable"><code>TYPE</code></em>]</h4><p>
    114114Lookup the IP address of the given host with the specified type (netbios suffix).
    115115The type defaults to 0x20 (workstation).
    116 </p></div><div class="refsect3" title="LOOKUP LDAP [DOMAIN]"><a name="id2538694"></a><h4>LOOKUP LDAP [<em class="replaceable"><code>DOMAIN</code></em>]</h4><p>Give IP address of LDAP server of specified <em class="replaceable"><code>DOMAIN</code></em>. Defaults to local domain.</p></div><div class="refsect3" title="LOOKUP KDC [REALM]"><a name="id2538711"></a><h4>LOOKUP KDC [<em class="replaceable"><code>REALM</code></em>]</h4><p>Give IP address of KDC for the specified <em class="replaceable"><code>REALM</code></em>.
    117 Defaults to local realm.</p></div><div class="refsect3" title="LOOKUP DC [DOMAIN]"><a name="id2538728"></a><h4>LOOKUP DC [<em class="replaceable"><code>DOMAIN</code></em>]</h4><p>Give IP's of Domain Controllers for specified <em class="replaceable"><code>
    118 DOMAIN</code></em>. Defaults to local domain.</p></div><div class="refsect3" title="LOOKUP MASTER DOMAIN"><a name="id2538745"></a><h4>LOOKUP MASTER <em class="replaceable"><code>DOMAIN</code></em></h4><p>Give IP of master browser for specified <em class="replaceable"><code>DOMAIN</code></em>
    119 or workgroup. Defaults to local domain.</p></div></div><div class="refsect2" title="CACHE"><a name="id2538763"></a><h3>CACHE</h3><p>Samba uses a general caching interface called 'gencache'. It
     116</p></div><div class="refsect3" lang="en"><a name="id2532708"></a><h4>LOOKUP LDAP [<em class="replaceable"><code>DOMAIN</code></em>]</h4><p>Give IP address of LDAP server of specified <em class="replaceable"><code>DOMAIN</code></em>. Defaults to local domain.</p></div><div class="refsect3" lang="en"><a name="id2532725"></a><h4>LOOKUP KDC [<em class="replaceable"><code>REALM</code></em>]</h4><p>Give IP address of KDC for the specified <em class="replaceable"><code>REALM</code></em>.
     117Defaults to local realm.</p></div><div class="refsect3" lang="en"><a name="id2532742"></a><h4>LOOKUP DC [<em class="replaceable"><code>DOMAIN</code></em>]</h4><p>Give IP's of Domain Controllers for specified <em class="replaceable"><code>
     118DOMAIN</code></em>. Defaults to local domain.</p></div><div class="refsect3" lang="en"><a name="id2532759"></a><h4>LOOKUP MASTER <em class="replaceable"><code>DOMAIN</code></em></h4><p>Give IP of master browser for specified <em class="replaceable"><code>DOMAIN</code></em>
     119or workgroup. Defaults to local domain.</p></div></div><div class="refsect2" lang="en"><a name="id2532776"></a><h3>CACHE</h3><p>Samba uses a general caching interface called 'gencache'. It
    120120can be controlled using 'NET CACHE'.</p><p>All the timeout parameters support the suffixes:
    121121
    122 </p><table border="0" summary="Simple list" class="simplelist"><tr><td>s - Seconds</td></tr><tr><td>m - Minutes</td></tr><tr><td>h - Hours</td></tr><tr><td>d - Days</td></tr><tr><td>w - Weeks</td></tr></table><p>
    123 
    124 </p><div class="refsect3" title="CACHE ADD key data time-out"><a name="id2538798"></a><h4>CACHE ADD <em class="replaceable"><code>key</code></em> <em class="replaceable"><code>data</code></em> <em class="replaceable"><code>time-out</code></em></h4><p>Add specified key+data to the cache with the given timeout.</p></div><div class="refsect3" title="CACHE DEL key"><a name="id2538818"></a><h4>CACHE DEL <em class="replaceable"><code>key</code></em></h4><p>Delete key from the cache.</p></div><div class="refsect3" title="CACHE SET key data time-out"><a name="id2538829"></a><h4>CACHE SET <em class="replaceable"><code>key</code></em> <em class="replaceable"><code>data</code></em> <em class="replaceable"><code>time-out</code></em></h4><p>Update data of existing cache entry.</p></div><div class="refsect3" title="CACHE SEARCH PATTERN"><a name="id2538848"></a><h4>CACHE SEARCH <em class="replaceable"><code>PATTERN</code></em></h4><p>Search for the specified pattern in the cache data.</p></div><div class="refsect3" title="CACHE LIST"><a name="id2538861"></a><h4>CACHE LIST</h4><p>
     122</p><table class="simplelist" border="0" summary="Simple list"><tr><td>s - Seconds</td></tr><tr><td>m - Minutes</td></tr><tr><td>h - Hours</td></tr><tr><td>d - Days</td></tr><tr><td>w - Weeks</td></tr></table><p>
     123
     124</p><div class="refsect3" lang="en"><a name="id2532812"></a><h4>CACHE ADD <em class="replaceable"><code>key</code></em> <em class="replaceable"><code>data</code></em> <em class="replaceable"><code>time-out</code></em></h4><p>Add specified key+data to the cache with the given timeout.</p></div><div class="refsect3" lang="en"><a name="id2532831"></a><h4>CACHE DEL <em class="replaceable"><code>key</code></em></h4><p>Delete key from the cache.</p></div><div class="refsect3" lang="en"><a name="id2532843"></a><h4>CACHE SET <em class="replaceable"><code>key</code></em> <em class="replaceable"><code>data</code></em> <em class="replaceable"><code>time-out</code></em></h4><p>Update data of existing cache entry.</p></div><div class="refsect3" lang="en"><a name="id2532862"></a><h4>CACHE SEARCH <em class="replaceable"><code>PATTERN</code></em></h4><p>Search for the specified pattern in the cache data.</p></div><div class="refsect3" lang="en"><a name="id2532875"></a><h4>CACHE LIST</h4><p>
    125125List all current items in the cache.
    126 </p></div><div class="refsect3" title="CACHE FLUSH"><a name="id2538871"></a><h4>CACHE FLUSH</h4><p>Remove all the current items from the cache.</p></div></div><div class="refsect2" title="GETLOCALSID [DOMAIN]"><a name="id2538883"></a><h3>GETLOCALSID [DOMAIN]</h3><p>Prints the SID of the specified domain, or if the parameter is
    127 omitted, the SID of the local server.</p></div><div class="refsect2" title="SETLOCALSID S-1-5-21-x-y-z"><a name="id2538894"></a><h3>SETLOCALSID S-1-5-21-x-y-z</h3><p>Sets SID for the local server to the specified SID.</p></div><div class="refsect2" title="GETDOMAINSID"><a name="id2538905"></a><h3>GETDOMAINSID</h3><p>Prints the local machine SID and the SID of the current
    128 domain.</p></div><div class="refsect2" title="SETDOMAINSID"><a name="id2538916"></a><h3>SETDOMAINSID</h3><p>Sets the SID of the current domain.</p></div><div class="refsect2" title="GROUPMAP"><a name="id2538925"></a><h3>GROUPMAP</h3><p>Manage the mappings between Windows group SIDs and UNIX groups.
    129 Common options include:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>unixgroup - Name of the UNIX group</p></li><li class="listitem"><p>ntgroup - Name of the Windows NT group (must be
    130   resolvable to a SID</p></li><li class="listitem"><p>rid - Unsigned 32-bit integer</p></li><li class="listitem"><p>sid - Full SID in the form of "S-1-..."</p></li><li class="listitem"><p>type - Type of the group; either 'domain', 'local',
    131   or 'builtin'</p></li><li class="listitem"><p>comment - Freeform text description of the group</p></li></ul></div><div class="refsect3" title="GROUPMAP ADD"><a name="id2538968"></a><h4>GROUPMAP ADD</h4><p>
     126</p></div><div class="refsect3" lang="en"><a name="id2532885"></a><h4>CACHE FLUSH</h4><p>Remove all the current items from the cache.</p></div></div><div class="refsect2" lang="en"><a name="id2532897"></a><h3>GETLOCALSID [DOMAIN]</h3><p>Prints the SID of the specified domain, or if the parameter is
     127omitted, the SID of the local server.</p></div><div class="refsect2" lang="en"><a name="id2532908"></a><h3>SETLOCALSID S-1-5-21-x-y-z</h3><p>Sets SID for the local server to the specified SID.</p></div><div class="refsect2" lang="en"><a name="id2532919"></a><h3>GETDOMAINSID</h3><p>Prints the local machine SID and the SID of the current
     128domain.</p></div><div class="refsect2" lang="en"><a name="id2532929"></a><h3>SETDOMAINSID</h3><p>Sets the SID of the current domain.</p></div><div class="refsect2" lang="en"><a name="id2532939"></a><h3>GROUPMAP</h3><p>Manage the mappings between Windows group SIDs and UNIX groups.
     129Common options include:</p><div class="itemizedlist"><ul type="disc"><li><p>unixgroup - Name of the UNIX group</p></li><li><p>ntgroup - Name of the Windows NT group (must be
     130  resolvable to a SID</p></li><li><p>rid - Unsigned 32-bit integer</p></li><li><p>sid - Full SID in the form of "S-1-..."</p></li><li><p>type - Type of the group; either 'domain', 'local',
     131  or 'builtin'</p></li><li><p>comment - Freeform text description of the group</p></li></ul></div><div class="refsect3" lang="en"><a name="id2532982"></a><h4>GROUPMAP ADD</h4><p>
    132132Add a new group mapping entry:
    133133</p><pre class="programlisting">
     
    135135        [type={domain|local}] [ntgroup=string] [comment=string]
    136136</pre><p>
    137 </p></div><div class="refsect3" title="GROUPMAP DELETE"><a name="id2538985"></a><h4>GROUPMAP DELETE</h4><p>Delete a group mapping entry. If more than one group name matches, the first entry found is deleted.</p><p>net groupmap delete {ntgroup=string|sid=SID}</p></div><div class="refsect3" title="GROUPMAP MODIFY"><a name="id2539001"></a><h4>GROUPMAP MODIFY</h4><p>Update en existing group entry.</p><p>
     137</p></div><div class="refsect3" lang="en"><a name="id2532999"></a><h4>GROUPMAP DELETE</h4><p>Delete a group mapping entry. If more than one group name matches, the first entry found is deleted.</p><p>net groupmap delete {ntgroup=string|sid=SID}</p></div><div class="refsect3" lang="en"><a name="id2533015"></a><h4>GROUPMAP MODIFY</h4><p>Update en existing group entry.</p><p>
    138138</p><pre class="programlisting">
    139139net groupmap modify {ntgroup=string|sid=SID} [unixgroup=string] \
    140140       [comment=string] [type={domain|local}]
    141141</pre><p>
    142 </p></div><div class="refsect3" title="GROUPMAP LIST"><a name="id2539021"></a><h4>GROUPMAP LIST</h4><p>List existing group mapping entries.</p><p>net groupmap list [verbose] [ntgroup=string] [sid=SID]</p></div></div><div class="refsect2" title="MAXRID"><a name="id2539037"></a><h3>MAXRID</h3><p>Prints out the highest RID currently in use on the local
     142</p></div><div class="refsect3" lang="en"><a name="id2533035"></a><h4>GROUPMAP LIST</h4><p>List existing group mapping entries.</p><p>net groupmap list [verbose] [ntgroup=string] [sid=SID]</p></div></div><div class="refsect2" lang="en"><a name="id2533050"></a><h3>MAXRID</h3><p>Prints out the highest RID currently in use on the local
    143143server (by the active 'passdb backend').
    144 </p></div><div class="refsect2" title="RPC INFO"><a name="id2539048"></a><h3>RPC INFO</h3><p>Print information about the domain of the remote server,
     144</p></div><div class="refsect2" lang="en"><a name="id2533062"></a><h3>RPC INFO</h3><p>Print information about the domain of the remote server,
    145145such as domain name, domain sid and number of users and groups.
    146 </p></div><div class="refsect2" title="[RPC|ADS] TESTJOIN"><a name="id2539060"></a><h3>[RPC|ADS] TESTJOIN</h3><p>Check whether participation in a domain is still valid.</p></div><div class="refsect2" title="[RPC|ADS] CHANGETRUSTPW"><a name="id2539070"></a><h3>[RPC|ADS] CHANGETRUSTPW</h3><p>Force change of domain trust password.</p></div><div class="refsect2" title="RPC TRUSTDOM"><a name="id2539081"></a><h3>RPC TRUSTDOM</h3><div class="refsect3" title="RPC TRUSTDOM ADD DOMAIN"><a name="id2539086"></a><h4>RPC TRUSTDOM ADD <em class="replaceable"><code>DOMAIN</code></em></h4><p>Add a interdomain trust account for <em class="replaceable"><code>DOMAIN</code></em>.
     146</p></div><div class="refsect2" lang="en"><a name="id2533073"></a><h3>[RPC|ADS] TESTJOIN</h3><p>Check whether participation in a domain is still valid.</p></div><div class="refsect2" lang="en"><a name="id2533084"></a><h3>[RPC|ADS] CHANGETRUSTPW</h3><p>Force change of domain trust password.</p></div><div class="refsect2" lang="en"><a name="id2533094"></a><h3>RPC TRUSTDOM</h3><div class="refsect3" lang="en"><a name="id2533100"></a><h4>RPC TRUSTDOM ADD <em class="replaceable"><code>DOMAIN</code></em></h4><p>Add a interdomain trust account for <em class="replaceable"><code>DOMAIN</code></em>.
    147147This is in fact a Samba account named <em class="replaceable"><code>DOMAIN$</code></em>
    148148with the account flag <code class="constant">'I'</code> (interdomain trust account).
     
    150150<code class="literal">smbpasswd -a -i DOMAIN</code>. Please note that both commands
    151151expect a appropriate UNIX account.
    152 </p></div><div class="refsect3" title="RPC TRUSTDOM DEL DOMAIN"><a name="id2539117"></a><h4>RPC TRUSTDOM DEL <em class="replaceable"><code>DOMAIN</code></em></h4><p>Remove interdomain trust account for
     152</p></div><div class="refsect3" lang="en"><a name="id2533131"></a><h4>RPC TRUSTDOM DEL <em class="replaceable"><code>DOMAIN</code></em></h4><p>Remove interdomain trust account for
    153153<em class="replaceable"><code>DOMAIN</code></em>. If it is used against localhost
    154154it has the same effect as <code class="literal">smbpasswd -x DOMAIN$</code>.
    155 </p></div><div class="refsect3" title="RPC TRUSTDOM ESTABLISH DOMAIN"><a name="id2539139"></a><h4>RPC TRUSTDOM ESTABLISH <em class="replaceable"><code>DOMAIN</code></em></h4><p>
     155</p></div><div class="refsect3" lang="en"><a name="id2533153"></a><h4>RPC TRUSTDOM ESTABLISH <em class="replaceable"><code>DOMAIN</code></em></h4><p>
    156156Establish a trust relationship to a trusting domain.
    157157Interdomain account must already be created on the remote PDC.
    158 </p></div><div class="refsect3" title="RPC TRUSTDOM REVOKE DOMAIN"><a name="id2539153"></a><h4>RPC TRUSTDOM REVOKE <em class="replaceable"><code>DOMAIN</code></em></h4><p>Abandon relationship to trusted domain</p></div><div class="refsect3" title="RPC TRUSTDOM LIST"><a name="id2539166"></a><h4>RPC TRUSTDOM LIST</h4><p>List all current interdomain trust relationships.</p></div><div class="refsect3" title="RPC RIGHTS"><a name="id2539176"></a><h4>RPC RIGHTS</h4><p>This subcommand is used to view and manage Samba's rights assignments (also
     158</p></div><div class="refsect3" lang="en"><a name="id2533167"></a><h4>RPC TRUSTDOM REVOKE <em class="replaceable"><code>DOMAIN</code></em></h4><p>Abandon relationship to trusted domain</p></div><div class="refsect3" lang="en"><a name="id2533180"></a><h4>RPC TRUSTDOM LIST</h4><p>List all current interdomain trust relationships.</p></div><div class="refsect3" lang="en"><a name="id2533190"></a><h4>RPC RIGHTS</h4><p>This subcommand is used to view and manage Samba's rights assignments (also
    159159referred to as privileges).  There are three options currently available:
    160160<em class="parameter"><code>list</code></em>, <em class="parameter"><code>grant</code></em>, and
    161161<em class="parameter"><code>revoke</code></em>.  More details on Samba's privilege model and its use
    162 can be found in the Samba-HOWTO-Collection.</p></div></div><div class="refsect2" title="RPC ABORTSHUTDOWN"><a name="id2539207"></a><h3>RPC ABORTSHUTDOWN</h3><p>Abort the shutdown of a remote server.</p></div><div class="refsect2" title="RPC SHUTDOWN [-t timeout] [-r] [-f] [-C message]"><a name="id2539217"></a><h3>RPC SHUTDOWN [-t timeout] [-r] [-f] [-C message]</h3><p>Shut down the remote server.</p><div class="variablelist"><dl><dt><span class="term">-r</span></dt><dd><p>
     162can be found in the Samba-HOWTO-Collection.</p></div></div><div class="refsect2" lang="en"><a name="id2533221"></a><h3>RPC ABORTSHUTDOWN</h3><p>Abort the shutdown of a remote server.</p></div><div class="refsect2" lang="en"><a name="id2533231"></a><h3>RPC SHUTDOWN [-t timeout] [-r] [-f] [-C message]</h3><p>Shut down the remote server.</p><div class="variablelist"><dl><dt><span class="term">-r</span></dt><dd><p>
    163163Reboot after shutdown.
    164164</p></dd><dt><span class="term">-f</span></dt><dd><p>
     
    168168user of the system can use this time to cancel the shutdown.
    169169</p></dd><dt><span class="term">-C message</span></dt><dd><p>Display the specified message on the screen to
    170 announce the shutdown.</p></dd></dl></div></div><div class="refsect2" title="RPC SAMDUMP"><a name="id2539278"></a><h3>RPC SAMDUMP</h3><p>Print out sam database of remote server. You need
    171 to run this against the PDC, from a Samba machine joined as a BDC. </p></div><div class="refsect2" title="RPC VAMPIRE"><a name="id2539290"></a><h3>RPC VAMPIRE</h3><p>Export users, aliases and groups from remote server to
     170announce the shutdown.</p></dd></dl></div></div><div class="refsect2" lang="en"><a name="id2533292"></a><h3>RPC SAMDUMP</h3><p>Print out sam database of remote server. You need
     171to run this against the PDC, from a Samba machine joined as a BDC. </p></div><div class="refsect2" lang="en"><a name="id2533304"></a><h3>RPC VAMPIRE</h3><p>Export users, aliases and groups from remote server to
    172172local server.  You need to run this against the PDC, from a Samba machine joined as a BDC.
    173 </p></div><div class="refsect2" title="RPC VAMPIRE KEYTAB"><a name="id2539302"></a><h3>RPC VAMPIRE KEYTAB</h3><p>Dump remote SAM database to local Kerberos keytab file.
    174 </p></div><div class="refsect2" title="RPC VAMPIRE LDIF"><a name="id2539313"></a><h3>RPC VAMPIRE LDIF</h3><p>Dump remote SAM database to local LDIF file or standard output.
    175 </p></div><div class="refsect2" title="RPC GETSID"><a name="id2539324"></a><h3>RPC GETSID</h3><p>Fetch domain SID and store it in the local <code class="filename">secrets.tdb</code>. </p></div><div class="refsect2" title="ADS LEAVE"><a name="id2539339"></a><h3>ADS LEAVE</h3><p>Make the remote host leave the domain it is part of. </p></div><div class="refsect2" title="ADS STATUS"><a name="id2539350"></a><h3>ADS STATUS</h3><p>Print out status of machine account of the local machine in ADS.
     173</p></div><div class="refsect2" lang="en"><a name="id2533316"></a><h3>RPC VAMPIRE KEYTAB</h3><p>Dump remote SAM database to local Kerberos keytab file.
     174</p></div><div class="refsect2" lang="en"><a name="id2533327"></a><h3>RPC VAMPIRE LDIF</h3><p>Dump remote SAM database to local LDIF file or standard output.
     175</p></div><div class="refsect2" lang="en"><a name="id2533338"></a><h3>RPC GETSID</h3><p>Fetch domain SID and store it in the local <code class="filename">secrets.tdb</code>. </p></div><div class="refsect2" lang="en"><a name="id2533354"></a><h3>ADS LEAVE</h3><p>Make the remote host leave the domain it is part of. </p></div><div class="refsect2" lang="en"><a name="id2533364"></a><h3>ADS STATUS</h3><p>Print out status of machine account of the local machine in ADS.
    176176Prints out quite some debug info. Aimed at developers, regular
    177 users should use <code class="literal">NET ADS TESTJOIN</code>.</p></div><div class="refsect2" title="ADS PRINTER"><a name="id2539367"></a><h3>ADS PRINTER</h3><div class="refsect3" title="ADS PRINTER INFO [PRINTER] [SERVER]"><a name="id2539372"></a><h4>ADS PRINTER INFO [<em class="replaceable"><code>PRINTER</code></em>] [<em class="replaceable"><code>SERVER</code></em>]</h4><p>
     177users should use <code class="literal">NET ADS TESTJOIN</code>.</p></div><div class="refsect2" lang="en"><a name="id2533382"></a><h3>ADS PRINTER</h3><div class="refsect3" lang="en"><a name="id2533387"></a><h4>ADS PRINTER INFO [<em class="replaceable"><code>PRINTER</code></em>] [<em class="replaceable"><code>SERVER</code></em>]</h4><p>
    178178Lookup info for <em class="replaceable"><code>PRINTER</code></em> on <em class="replaceable"><code>SERVER</code></em>. The printer name defaults to "*", the
    179 server name defaults to the local host.</p></div><div class="refsect3" title="ADS PRINTER PUBLISH PRINTER"><a name="id2539396"></a><h4>ADS PRINTER PUBLISH <em class="replaceable"><code>PRINTER</code></em></h4><p>Publish specified printer using ADS.</p></div><div class="refsect3" title="ADS PRINTER REMOVE PRINTER"><a name="id2539409"></a><h4>ADS PRINTER REMOVE <em class="replaceable"><code>PRINTER</code></em></h4><p>Remove specified printer from ADS directory.</p></div></div><div class="refsect2" title="ADS SEARCH EXPRESSION ATTRIBUTES..."><a name="id2539423"></a><h3>ADS SEARCH <em class="replaceable"><code>EXPRESSION</code></em> <em class="replaceable"><code>ATTRIBUTES...</code></em></h3><p>Perform a raw LDAP search on a ADS server and dump the results. The
     179server name defaults to the local host.</p></div><div class="refsect3" lang="en"><a name="id2533411"></a><h4>ADS PRINTER PUBLISH <em class="replaceable"><code>PRINTER</code></em></h4><p>Publish specified printer using ADS.</p></div><div class="refsect3" lang="en"><a name="id2533423"></a><h4>ADS PRINTER REMOVE <em class="replaceable"><code>PRINTER</code></em></h4><p>Remove specified printer from ADS directory.</p></div></div><div class="refsect2" lang="en"><a name="id2533437"></a><h3>ADS SEARCH <em class="replaceable"><code>EXPRESSION</code></em> <em class="replaceable"><code>ATTRIBUTES...</code></em></h3><p>Perform a raw LDAP search on a ADS server and dump the results. The
    180180expression is a standard LDAP search expression, and the
    181181attributes are a list of LDAP fields to show in the results.</p><p>Example: <strong class="userinput"><code>net ads search '(objectCategory=group)' sAMAccountName</code></strong>
    182 </p></div><div class="refsect2" title="ADS DN DN (attributes)"><a name="id2539450"></a><h3>ADS DN <em class="replaceable"><code>DN</code></em> <em class="replaceable"><code>(attributes)</code></em></h3><p>
     182</p></div><div class="refsect2" lang="en"><a name="id2533465"></a><h3>ADS DN <em class="replaceable"><code>DN</code></em> <em class="replaceable"><code>(attributes)</code></em></h3><p>
    183183Perform a raw LDAP search on a ADS server and dump the results. The
    184184DN standard LDAP DN, and the attributes are a list of LDAP fields
    185185to show in the result.
    186 </p><p>Example: <strong class="userinput"><code>net ads dn 'CN=administrator,CN=Users,DC=my,DC=domain' SAMAccountName</code></strong></p></div><div class="refsect2" title="ADS WORKGROUP"><a name="id2539477"></a><h3>ADS WORKGROUP</h3><p>Print out workgroup name for specified kerberos realm.</p></div><div class="refsect2" title="SAM CREATEBUILTINGROUP &lt;NAME&gt;"><a name="id2539487"></a><h3>SAM CREATEBUILTINGROUP &lt;NAME&gt;</h3><p>
     186</p><p>Example: <strong class="userinput"><code>net ads dn 'CN=administrator,CN=Users,DC=my,DC=domain' SAMAccountName</code></strong></p></div><div class="refsect2" lang="en"><a name="id2533491"></a><h3>ADS WORKGROUP</h3><p>Print out workgroup name for specified kerberos realm.</p></div><div class="refsect2" lang="en"><a name="id2533502"></a><h3>SAM CREATEBUILTINGROUP &lt;NAME&gt;</h3><p>
    187187(Re)Create a BUILTIN group.
    188188Only a wellknown set of BUILTIN groups can be created with this command.
     
    194194This command requires a running Winbindd with idmap allocation properly
    195195configured. The group gid will be allocated out of the winbindd range.
    196 </p></div><div class="refsect2" title="SAM CREATELOCALGROUP &lt;NAME&gt;"><a name="id2539506"></a><h3>SAM CREATELOCALGROUP &lt;NAME&gt;</h3><p>
     196</p></div><div class="refsect2" lang="en"><a name="id2533520"></a><h3>SAM CREATELOCALGROUP &lt;NAME&gt;</h3><p>
    197197Create a LOCAL group (also known as Alias).
    198198
    199199This command requires a running Winbindd with idmap allocation properly
    200200configured. The group gid will be allocated out of the winbindd range.
    201 </p></div><div class="refsect2" title="SAM DELETELOCALGROUP &lt;NAME&gt;"><a name="id2539520"></a><h3>SAM DELETELOCALGROUP &lt;NAME&gt;</h3><p>
     201</p></div><div class="refsect2" lang="en"><a name="id2533534"></a><h3>SAM DELETELOCALGROUP &lt;NAME&gt;</h3><p>
    202202Delete an existing LOCAL group (also known as Alias).
    203203
    204 </p></div><div class="refsect2" title="SAM MAPUNIXGROUP &lt;NAME&gt;"><a name="id2539531"></a><h3>SAM MAPUNIXGROUP &lt;NAME&gt;</h3><p>
     204</p></div><div class="refsect2" lang="en"><a name="id2533546"></a><h3>SAM MAPUNIXGROUP &lt;NAME&gt;</h3><p>
    205205Map an existing Unix group and make it a Domain Group, the domain group
    206206will have the same name.
    207 </p></div><div class="refsect2" title="SAM UNMAPUNIXGROUP &lt;NAME&gt;"><a name="id2539544"></a><h3>SAM UNMAPUNIXGROUP &lt;NAME&gt;</h3><p>
     207</p></div><div class="refsect2" lang="en"><a name="id2533558"></a><h3>SAM UNMAPUNIXGROUP &lt;NAME&gt;</h3><p>
    208208Remove an existing group mapping entry.
    209 </p></div><div class="refsect2" title="SAM ADDMEM &lt;GROUP&gt; &lt;MEMBER&gt;"><a name="id2539555"></a><h3>SAM ADDMEM &lt;GROUP&gt; &lt;MEMBER&gt;</h3><p>
     209</p></div><div class="refsect2" lang="en"><a name="id2533569"></a><h3>SAM ADDMEM &lt;GROUP&gt; &lt;MEMBER&gt;</h3><p>
    210210Add a member to a Local group. The group can be specified only by name,
    211211the member can be specified by name or SID.
    212 </p></div><div class="refsect2" title="SAM DELMEM &lt;GROUP&gt; &lt;MEMBER&gt;"><a name="id2539568"></a><h3>SAM DELMEM  &lt;GROUP&gt; &lt;MEMBER&gt;</h3><p>
     212</p></div><div class="refsect2" lang="en"><a name="id2533582"></a><h3>SAM DELMEM  &lt;GROUP&gt; &lt;MEMBER&gt;</h3><p>
    213213Remove a member from a Local group. The group and the member must be
    214214specified by name.
    215 </p></div><div class="refsect2" title="SAM LISTMEM &lt;GROUP&gt;"><a name="id2539580"></a><h3>SAM LISTMEM &lt;GROUP&gt;</h3><p>
     215</p></div><div class="refsect2" lang="en"><a name="id2533594"></a><h3>SAM LISTMEM &lt;GROUP&gt;</h3><p>
    216216List Local group members. The group must be specified by name.
    217 </p></div><div class="refsect2" title="SAM LIST &lt;users|groups|localgroups|builtin|workstations&gt; [verbose]"><a name="id2539591"></a><h3>SAM LIST &lt;users|groups|localgroups|builtin|workstations&gt; [verbose]</h3><p>
     217</p></div><div class="refsect2" lang="en"><a name="id2533605"></a><h3>SAM LIST &lt;users|groups|localgroups|builtin|workstations&gt; [verbose]</h3><p>
    218218List the specified set of accounts by name. If verbose is specified,
    219219the rid and description is also provided for each account.
    220 </p></div><div class="refsect2" title="SAM RIGHTS LIST"><a name="id2539605"></a><h3>SAM RIGHTS LIST</h3><p>
     220</p></div><div class="refsect2" lang="en"><a name="id2533619"></a><h3>SAM RIGHTS LIST</h3><p>
    221221List all available privileges.
    222 </p></div><div class="refsect2" title="SAM RIGHTS GRANT &lt;NAME&gt; &lt;PRIVILEGE&gt;"><a name="id2539615"></a><h3>SAM RIGHTS GRANT &lt;NAME&gt; &lt;PRIVILEGE&gt;</h3><p>
     222</p></div><div class="refsect2" lang="en"><a name="id2533630"></a><h3>SAM RIGHTS GRANT &lt;NAME&gt; &lt;PRIVILEGE&gt;</h3><p>
    223223Grant a certain privilege to a user.
    224 </p></div><div class="refsect2" title="SAM RIGHTS REVOKE &lt;NAME&gt; &lt;PRIVILEGE&gt;"><a name="id2539626"></a><h3>SAM RIGHTS REVOKE &lt;NAME&gt; &lt;PRIVILEGE&gt;</h3><p>
     224</p></div><div class="refsect2" lang="en"><a name="id2533641"></a><h3>SAM RIGHTS REVOKE &lt;NAME&gt; &lt;PRIVILEGE&gt;</h3><p>
    225225Revoke a certain privilege from a user.
    226 </p></div><div class="refsect2" title="SAM SHOW &lt;NAME&gt;"><a name="id2539638"></a><h3>SAM SHOW &lt;NAME&gt;</h3><p>
     226</p></div><div class="refsect2" lang="en"><a name="id2533652"></a><h3>SAM SHOW &lt;NAME&gt;</h3><p>
    227227Show the full DOMAIN\\NAME the SID and the type for the corresponding
    228228account.
    229 </p></div><div class="refsect2" title="SAM SET HOMEDIR &lt;NAME&gt; &lt;DIRECTORY&gt;"><a name="id2539649"></a><h3>SAM SET HOMEDIR &lt;NAME&gt; &lt;DIRECTORY&gt;</h3><p>
     229</p></div><div class="refsect2" lang="en"><a name="id2533663"></a><h3>SAM SET HOMEDIR &lt;NAME&gt; &lt;DIRECTORY&gt;</h3><p>
    230230Set the home directory for a user account.
    231 </p></div><div class="refsect2" title="SAM SET PROFILEPATH &lt;NAME&gt; &lt;PATH&gt;"><a name="id2539660"></a><h3>SAM SET PROFILEPATH &lt;NAME&gt; &lt;PATH&gt;</h3><p>
     231</p></div><div class="refsect2" lang="en"><a name="id2533674"></a><h3>SAM SET PROFILEPATH &lt;NAME&gt; &lt;PATH&gt;</h3><p>
    232232Set the profile path for a user account.
    233 </p></div><div class="refsect2" title="SAM SET COMMENT &lt;NAME&gt; &lt;COMMENT&gt;"><a name="id2539671"></a><h3>SAM SET COMMENT &lt;NAME&gt; &lt;COMMENT&gt;</h3><p>
     233</p></div><div class="refsect2" lang="en"><a name="id2533686"></a><h3>SAM SET COMMENT &lt;NAME&gt; &lt;COMMENT&gt;</h3><p>
    234234Set the comment for a user or group account.
    235 </p></div><div class="refsect2" title="SAM SET FULLNAME &lt;NAME&gt; &lt;FULL NAME&gt;"><a name="id2539682"></a><h3>SAM SET FULLNAME &lt;NAME&gt; &lt;FULL NAME&gt;</h3><p>
     235</p></div><div class="refsect2" lang="en"><a name="id2533697"></a><h3>SAM SET FULLNAME &lt;NAME&gt; &lt;FULL NAME&gt;</h3><p>
    236236Set the full name for a user account.
    237 </p></div><div class="refsect2" title="SAM SET LOGONSCRIPT &lt;NAME&gt; &lt;SCRIPT&gt;"><a name="id2539694"></a><h3>SAM SET LOGONSCRIPT &lt;NAME&gt; &lt;SCRIPT&gt;</h3><p>
     237</p></div><div class="refsect2" lang="en"><a name="id2533708"></a><h3>SAM SET LOGONSCRIPT &lt;NAME&gt; &lt;SCRIPT&gt;</h3><p>
    238238Set the logon script for a user account.
    239 </p></div><div class="refsect2" title="SAM SET HOMEDRIVE &lt;NAME&gt; &lt;DRIVE&gt;"><a name="id2539705"></a><h3>SAM SET HOMEDRIVE &lt;NAME&gt; &lt;DRIVE&gt;</h3><p>
     239</p></div><div class="refsect2" lang="en"><a name="id2533719"></a><h3>SAM SET HOMEDRIVE &lt;NAME&gt; &lt;DRIVE&gt;</h3><p>
    240240Set the home drive for a user account.
    241 </p></div><div class="refsect2" title="SAM SET WORKSTATIONS &lt;NAME&gt; &lt;WORKSTATIONS&gt;"><a name="id2539716"></a><h3>SAM SET WORKSTATIONS &lt;NAME&gt; &lt;WORKSTATIONS&gt;</h3><p>
     241</p></div><div class="refsect2" lang="en"><a name="id2533730"></a><h3>SAM SET WORKSTATIONS &lt;NAME&gt; &lt;WORKSTATIONS&gt;</h3><p>
    242242Set the workstations a user account is allowed to log in from.
    243 </p></div><div class="refsect2" title="SAM SET DISABLE &lt;NAME&gt;"><a name="id2539728"></a><h3>SAM SET DISABLE &lt;NAME&gt;</h3><p>
     243</p></div><div class="refsect2" lang="en"><a name="id2533742"></a><h3>SAM SET DISABLE &lt;NAME&gt;</h3><p>
    244244Set the "disabled" flag for a user account.
    245 </p></div><div class="refsect2" title="SAM SET PWNOTREQ &lt;NAME&gt;"><a name="id2539739"></a><h3>SAM SET PWNOTREQ &lt;NAME&gt;</h3><p>
     245</p></div><div class="refsect2" lang="en"><a name="id2533753"></a><h3>SAM SET PWNOTREQ &lt;NAME&gt;</h3><p>
    246246Set the "password not required" flag for a user account.
    247 </p></div><div class="refsect2" title="SAM SET AUTOLOCK &lt;NAME&gt;"><a name="id2539750"></a><h3>SAM SET AUTOLOCK &lt;NAME&gt;</h3><p>
     247</p></div><div class="refsect2" lang="en"><a name="id2533765"></a><h3>SAM SET AUTOLOCK &lt;NAME&gt;</h3><p>
    248248Set the "autolock" flag for a user account.
    249 </p></div><div class="refsect2" title="SAM SET PWNOEXP &lt;NAME&gt;"><a name="id2539762"></a><h3>SAM SET PWNOEXP &lt;NAME&gt;</h3><p>
     249</p></div><div class="refsect2" lang="en"><a name="id2533776"></a><h3>SAM SET PWNOEXP &lt;NAME&gt;</h3><p>
    250250Set the "password do not expire" flag for a user account.
    251 </p></div><div class="refsect2" title="SAM SET PWDMUSTCHANGENOW &lt;NAME&gt; [yes|no]"><a name="id2539773"></a><h3>SAM SET PWDMUSTCHANGENOW &lt;NAME&gt; [yes|no]</h3><p>
     251</p></div><div class="refsect2" lang="en"><a name="id2533787"></a><h3>SAM SET PWDMUSTCHANGENOW &lt;NAME&gt; [yes|no]</h3><p>
    252252Set or unset the "password must change" flag for a user account.
    253 </p></div><div class="refsect2" title="SAM POLICY LIST"><a name="id2539785"></a><h3>SAM POLICY LIST</h3><p>
     253</p></div><div class="refsect2" lang="en"><a name="id2533799"></a><h3>SAM POLICY LIST</h3><p>
    254254List the available account policies.
    255 </p></div><div class="refsect2" title="SAM POLICY SHOW &lt;account policy&gt;"><a name="id2539795"></a><h3>SAM POLICY SHOW &lt;account policy&gt;</h3><p>
     255</p></div><div class="refsect2" lang="en"><a name="id2533810"></a><h3>SAM POLICY SHOW &lt;account policy&gt;</h3><p>
    256256Show the account policy value.
    257 </p></div><div class="refsect2" title="SAM POLICY SET &lt;account policy&gt; &lt;value&gt;"><a name="id2539806"></a><h3>SAM POLICY SET &lt;account policy&gt; &lt;value&gt;</h3><p>
     257</p></div><div class="refsect2" lang="en"><a name="id2533821"></a><h3>SAM POLICY SET &lt;account policy&gt; &lt;value&gt;</h3><p>
    258258Set a value for the account policy.
    259259Valid values can be: "forever", "never", "off", or a number.
    260 </p></div><div class="refsect2" title="SAM PROVISION"><a name="id2539819"></a><h3>SAM PROVISION</h3><p>
     260</p></div><div class="refsect2" lang="en"><a name="id2533833"></a><h3>SAM PROVISION</h3><p>
    261261Only available if ldapsam:editposix is set and winbindd is running.
    262262Properly populates the ldap tree with the basic accounts (Administrator)
    263263and groups (Domain Users, Domain Admins, Domain Guests) on the ldap tree.
    264 </p></div><div class="refsect2" title="IDMAP DUMP &lt;local tdb file name&gt;"><a name="id2539832"></a><h3>IDMAP DUMP &lt;local tdb file name&gt;</h3><p>
     264</p></div><div class="refsect2" lang="en"><a name="id2533847"></a><h3>IDMAP DUMP &lt;local tdb file name&gt;</h3><p>
    265265Dumps the mappings contained in the local tdb file specified.
    266266This command is useful to dump only the mappings produced by the idmap_tdb backend.
    267 </p></div><div class="refsect2" title="IDMAP RESTORE [input file]"><a name="id2539846"></a><h3>IDMAP RESTORE [input file]</h3><p>
     267</p></div><div class="refsect2" lang="en"><a name="id2533860"></a><h3>IDMAP RESTORE [input file]</h3><p>
    268268Restore the mappings from the specified file or stdin.
    269 </p></div><div class="refsect2" title="IDMAP SECRET &lt;DOMAIN&gt;|ALLOC &lt;secret&gt;"><a name="id2539857"></a><h3>IDMAP SECRET &lt;DOMAIN&gt;|ALLOC &lt;secret&gt;</h3><p>
     269</p></div><div class="refsect2" lang="en"><a name="id2533871"></a><h3>IDMAP SECRET &lt;DOMAIN&gt;|ALLOC &lt;secret&gt;</h3><p>
    270270Store a secret for the specified domain, used primarily for domains
    271271that use idmap_ldap as a backend. In this case the secret is used
    272272as the password for the user DN used to bind to the ldap server.
    273 </p></div><div class="refsect2" title="USERSHARE"><a name="id2539871"></a><h3>USERSHARE</h3><p>Starting with version 3.0.23, a Samba server now supports the ability for
     273</p></div><div class="refsect2" lang="en"><a name="id2533886"></a><h3>USERSHARE</h3><p>Starting with version 3.0.23, a Samba server now supports the ability for
    274274non-root users to add user defined shares to be exported using the "net usershare"
    275275commands.
     
    298298</p><p>The usershare commands are:
    299299
    300 </p><table border="0" summary="Simple list" class="simplelist"><tr><td>net usershare add sharename path [comment] [acl] [guest_ok=[y|n]] - to add or change a user defined share.</td></tr><tr><td>net usershare delete sharename - to delete a user defined share.</td></tr><tr><td>net usershare info [-l|--long] [wildcard sharename] - to print info about a user defined share.</td></tr><tr><td>net usershare list [-l|--long] [wildcard sharename] - to list user defined shares.</td></tr></table><p>
    301 
    302 </p><div class="refsect3" title="USERSHARE ADD sharename path [comment] [acl] [guest_ok=[y|n]]"><a name="id2539943"></a><h4>USERSHARE ADD <em class="replaceable"><code>sharename</code></em> <em class="replaceable"><code>path</code></em> <em class="replaceable"><code>[comment]</code></em> <em class="replaceable"><code>[acl]</code></em> <em class="replaceable"><code>[guest_ok=[y|n]]</code></em></h4><p>
     300</p><table class="simplelist" border="0" summary="Simple list"><tr><td>net usershare add sharename path [comment] [acl] [guest_ok=[y|n]] - to add or change a user defined share.</td></tr><tr><td>net usershare delete sharename - to delete a user defined share.</td></tr><tr><td>net usershare info [-l|--long] [wildcard sharename] - to print info about a user defined share.</td></tr><tr><td>net usershare list [-l|--long] [wildcard sharename] - to list user defined shares.</td></tr></table><p>
     301
     302</p><div class="refsect3" lang="en"><a name="id2533958"></a><h4>USERSHARE ADD <em class="replaceable"><code>sharename</code></em> <em class="replaceable"><code>path</code></em> <em class="replaceable"><code>[comment]</code></em> <em class="replaceable"><code>[acl]</code></em> <em class="replaceable"><code>[guest_ok=[y|n]]</code></em></h4><p>
    303303Add or replace a new user defined share, with name "sharename".
    304304</p><p>
     
    337337at connect time so will see the change immediately, there is no need
    338338to restart smbd on adding, deleting or changing a user defined share.
    339 </div><div class="refsect3" title="USERSHARE DELETE sharename"><a name="id2540016"></a><h4>USERSHARE DELETE <em class="replaceable"><code>sharename</code></em></h4><p>
     339</div><div class="refsect3" lang="en"><a name="id2534030"></a><h4>USERSHARE DELETE <em class="replaceable"><code>sharename</code></em></h4><p>
    340340Deletes the user defined share by name. The Samba smbd daemon
    341341immediately notices this change, although it will not disconnect
    342342any users currently connected to the deleted share.
    343 </p></div><div class="refsect3" title="USERSHARE INFO [-l|--long] [wildcard sharename]"><a name="id2540031"></a><h4>USERSHARE INFO <em class="replaceable"><code>[-l|--long]</code></em> <em class="replaceable"><code>[wildcard sharename]</code></em></h4><p>
     343</p></div><div class="refsect3" lang="en"><a name="id2534045"></a><h4>USERSHARE INFO <em class="replaceable"><code>[-l|--long]</code></em> <em class="replaceable"><code>[wildcard sharename]</code></em></h4><p>
    344344Get info on user defined shares owned by the current user matching the given pattern, or all users.
    345345</p><p>
     
    360360And is a list of the current settings of the user defined share that can be
    361361modified by the "net usershare add" command.
    362 </p></div><div class="refsect3" title="USERSHARE LIST [-l|--long] wildcard sharename"><a name="id2540070"></a><h4>USERSHARE LIST <em class="replaceable"><code>[-l|--long]</code></em> <em class="replaceable"><code>wildcard sharename</code></em></h4><p>
     362</p></div><div class="refsect3" lang="en"><a name="id2534085"></a><h4>USERSHARE LIST <em class="replaceable"><code>[-l|--long]</code></em> <em class="replaceable"><code>wildcard sharename</code></em></h4><p>
    363363List all the user defined shares owned by the current user matching the given pattern, or all users.
    364364</p><p>
     
    368368If the '-l' or '--long' option is also given, it includes the names of user defined
    369369shares created by other users.
    370 </p></div></div><div class="refsect2" title="CONF"><a name="id2540098"></a><h3>CONF</h3><p>Starting with version 3.2.0, a Samba server can be configured by data
     370</p></div></div><div class="refsect2" lang="en"><a name="id2534112"></a><h3>CONF</h3><p>Starting with version 3.2.0, a Samba server can be configured by data
    371371stored in registry. This configuration data can be edited with the new "net
    372372conf" commands.
     
    375375<span class="emphasis"><em>smb.conf</em></span> file: Share definitions from registry are
    376376activated by setting <em class="parameter"><code>registry shares</code></em> to
    377 <span class="quote">&#8220;<span class="quote">yes</span>&#8221;</span> in the [global] section and global configuration options are
     377&#8220;<span class="quote">yes</span>&#8221; in the [global] section and global configuration options are
    378378activated by setting <a class="link" href="smb.conf.5.html#INCLUDE" target="_top">include = registry</a> in
    379379the [global] section for a mixed configuration or by setting
     
    382382See the <a class="citerefentry" href="smb.conf.5.html"><span class="citerefentry"><span class="refentrytitle">smb.conf</span>(5)</span></a> manpage for details.
    383383</p><p>The conf commands are:
    384 </p><table border="0" summary="Simple list" class="simplelist"><tr><td>net conf list - Dump the complete configuration in smb.conf like
     384</p><table class="simplelist" border="0" summary="Simple list"><tr><td>net conf list - Dump the complete configuration in smb.conf like
    385385format.</td></tr><tr><td>net conf import - Import configuration from file in smb.conf
    386386format.</td></tr><tr><td>net conf listshares - List the registry shares.</td></tr><tr><td>net conf drop - Delete the complete configuration from
    387387registry.</td></tr><tr><td>net conf showshare - Show the definition of a registry share.</td></tr><tr><td>net conf addshare - Create a new registry share.</td></tr><tr><td>net conf delshare - Delete a registry share.</td></tr><tr><td>net conf setparm - Store a parameter.</td></tr><tr><td>net conf getparm - Retrieve the value of a parameter.</td></tr><tr><td>net conf delparm - Delete a parameter.</td></tr><tr><td>net conf getincludes - Show the includes of a share definition.</td></tr><tr><td>net conf setincludes - Set includes for a share.</td></tr><tr><td>net conf delincludes - Delete includes from a share definition.</td></tr></table><p>
    388 </p><div class="refsect3" title="CONF LIST"><a name="id2540218"></a><h4>CONF LIST</h4><p>
     388</p><div class="refsect3" lang="en"><a name="id2534233"></a><h4>CONF LIST</h4><p>
    389389Print the configuration data stored in the registry in a smb.conf-like format to
    390390standard output.
    391 </p></div><div class="refsect3" title="CONF IMPORT [--test|-T] filename [section]"><a name="id2540230"></a><h4>CONF IMPORT <em class="replaceable"><code>[--test|-T]</code></em> <em class="replaceable"><code>filename</code></em> <em class="replaceable"><code>[section]</code></em></h4><p>
     391</p></div><div class="refsect3" lang="en"><a name="id2534244"></a><h4>CONF IMPORT <em class="replaceable"><code>[--test|-T]</code></em> <em class="replaceable"><code>filename</code></em> <em class="replaceable"><code>[section]</code></em></h4><p>
    392392This command imports configuration from a file in smb.conf format.
    393393If a section encountered in the input file is present in registry,
     
    399399the parameter "-T" on the commandline. In test mode, no changes are made to the
    400400registry, and the resulting configuration is printed to standard output instead.
    401 </p></div><div class="refsect3" title="CONF LISTSHARES"><a name="id2540270"></a><h4>CONF LISTSHARES</h4><p>
     401</p></div><div class="refsect3" lang="en"><a name="id2534285"></a><h4>CONF LISTSHARES</h4><p>
    402402List the names of the shares defined in registry.
    403 </p></div><div class="refsect3" title="CONF DROP"><a name="id2540281"></a><h4>CONF DROP</h4><p>
     403</p></div><div class="refsect3" lang="en"><a name="id2534295"></a><h4>CONF DROP</h4><p>
    404404Delete the complete configuration data from registry.
    405 </p></div><div class="refsect3" title="CONF SHOWSHARE sharename"><a name="id2540292"></a><h4>CONF SHOWSHARE <em class="replaceable"><code>sharename</code></em></h4><p>
     405</p></div><div class="refsect3" lang="en"><a name="id2534306"></a><h4>CONF SHOWSHARE <em class="replaceable"><code>sharename</code></em></h4><p>
    406406Show the definition of the share or section specified. It is valid to specify
    407407"global" as sharename to retrieve the global configuration options from
    408408registry.
    409 </p></div><div class="refsect3" title="CONF ADDSHARE sharename path [writeable={y|N} [guest_ok={y|N} [comment]]]"><a name="id2540306"></a><h4>CONF ADDSHARE <em class="replaceable"><code>sharename</code></em> <em class="replaceable"><code>path</code></em> [<em class="replaceable"><code>writeable={y|N}</code></em> [<em class="replaceable"><code>guest_ok={y|N}</code></em> [<em class="replaceable"><code>comment</code></em>]]] </h4><p>Create a new share definition in registry.
     409</p></div><div class="refsect3" lang="en"><a name="id2534320"></a><h4>CONF ADDSHARE <em class="replaceable"><code>sharename</code></em> <em class="replaceable"><code>path</code></em> [<em class="replaceable"><code>writeable={y|N}</code></em> [<em class="replaceable"><code>guest_ok={y|N}</code></em> [<em class="replaceable"><code>comment</code></em>]]] </h4><p>Create a new share definition in registry.
    410410The sharename and path have to be given. The share name may
    411411<span class="emphasis"><em>not</em></span> be "global". Optionally, values for the very
     
    413413The same result may be obtained by a sequence of "net conf setparm"
    414414commands.
    415 </p></div><div class="refsect3" title="CONF DELSHARE sharename"><a name="id2540340"></a><h4>CONF DELSHARE <em class="replaceable"><code>sharename</code></em></h4><p>
     415</p></div><div class="refsect3" lang="en"><a name="id2534355"></a><h4>CONF DELSHARE <em class="replaceable"><code>sharename</code></em></h4><p>
    416416Delete a share definition from registry.
    417 </p></div><div class="refsect3" title="CONF SETPARM section parameter value"><a name="id2540353"></a><h4>CONF SETPARM <em class="replaceable"><code>section</code></em> <em class="replaceable"><code>parameter</code></em> <em class="replaceable"><code>value</code></em></h4><p>
     417</p></div><div class="refsect3" lang="en"><a name="id2534367"></a><h4>CONF SETPARM <em class="replaceable"><code>section</code></em> <em class="replaceable"><code>parameter</code></em> <em class="replaceable"><code>value</code></em></h4><p>
    418418Store a parameter in registry. The section may be global or a sharename.
    419419The section is created if it does not exist yet.
    420 </p></div><div class="refsect3" title="CONF GETPARM section parameter"><a name="id2540373"></a><h4>CONF GETPARM <em class="replaceable"><code>section</code></em> <em class="replaceable"><code>parameter</code></em></h4><p>
     420</p></div><div class="refsect3" lang="en"><a name="id2534387"></a><h4>CONF GETPARM <em class="replaceable"><code>section</code></em> <em class="replaceable"><code>parameter</code></em></h4><p>
    421421Show a parameter stored in registry.
    422 </p></div><div class="refsect3" title="CONF DELPARM section parameter"><a name="id2540389"></a><h4>CONF DELPARM <em class="replaceable"><code>section</code></em> <em class="replaceable"><code>parameter</code></em></h4><p>
     422</p></div><div class="refsect3" lang="en"><a name="id2534403"></a><h4>CONF DELPARM <em class="replaceable"><code>section</code></em> <em class="replaceable"><code>parameter</code></em></h4><p>
    423423Delete a parameter stored in registry.
    424 </p></div><div class="refsect3" title="CONF GETINCLUDES section"><a name="id2540404"></a><h4>CONF GETINCLUDES <em class="replaceable"><code>section</code></em></h4><p>
     424</p></div><div class="refsect3" lang="en"><a name="id2534419"></a><h4>CONF GETINCLUDES <em class="replaceable"><code>section</code></em></h4><p>
    425425Get the list of includes for the provided section (global or share).
    426426</p><p>
     
    438438configuration. In the future, there will be the ability to include configuration
    439439data from other registry keys.
    440 </p></div><div class="refsect3" title="CONF SETINCLUDES section [filename]+"><a name="id2540439"></a><h4>CONF SETINCLUDES <em class="replaceable"><code>section</code></em> [<em class="replaceable"><code>filename</code></em>]+</h4><p>
     440</p></div><div class="refsect3" lang="en"><a name="id2534454"></a><h4>CONF SETINCLUDES <em class="replaceable"><code>section</code></em> [<em class="replaceable"><code>filename</code></em>]+</h4><p>
    441441Set the list of includes for the provided section (global or share) to the given
    442442list of one or more filenames. The filenames may contain the usual smb.conf
    443443macros like %I.
    444 </p></div><div class="refsect3" title="CONF DELINCLUDES section"><a name="id2540458"></a><h4>CONF DELINCLUDES <em class="replaceable"><code>section</code></em></h4><p>
     444</p></div><div class="refsect3" lang="en"><a name="id2534473"></a><h4>CONF DELINCLUDES <em class="replaceable"><code>section</code></em></h4><p>
    445445Delete the list of includes from the provided section (global or share).
    446 </p></div></div><div class="refsect2" title="DOM"><a name="id2540473"></a><h3>DOM</h3><p>Starting with version 3.2.0 Samba has support for remote join and unjoin APIs, both client and server-side. Windows supports remote join capabilities since Windows 2000.
     446</p></div></div><div class="refsect2" lang="en"><a name="id2534487"></a><h3>DOM</h3><p>Starting with version 3.2.0 Samba has support for remote join and unjoin APIs, both client and server-side. Windows supports remote join capabilities since Windows 2000.
    447447</p><p>In order for Samba to be joined or unjoined remotely an account must be used that is either member of the Domain Admins group, a member of the local Administrators group or a user that is granted the SeMachineAccountPrivilege privilege.
    448448</p><p>The client side support for remote join is implemented in the net dom commands which are:
    449 </p><table border="0" summary="Simple list" class="simplelist"><tr><td>net dom join - Join a remote computer into a domain.</td></tr><tr><td>net dom unjoin - Unjoin a remote computer from a domain.</td></tr></table><p>
    450 </p><div class="refsect3" title="DOM JOIN domain=DOMAIN ou=OU account=ACCOUNT password=PASSWORD reboot"><a name="id2540510"></a><h4>DOM JOIN    <em class="replaceable"><code>domain=DOMAIN</code></em> <em class="replaceable"><code>ou=OU</code></em> <em class="replaceable"><code>account=ACCOUNT</code></em> <em class="replaceable"><code>password=PASSWORD</code></em> <em class="replaceable"><code>reboot</code></em></h4><p>
     449</p><table class="simplelist" border="0" summary="Simple list"><tr><td>net dom join - Join a remote computer into a domain.</td></tr><tr><td>net dom unjoin - Unjoin a remote computer from a domain.</td></tr></table><p>
     450</p><div class="refsect3" lang="en"><a name="id2534524"></a><h4>DOM JOIN        <em class="replaceable"><code>domain=DOMAIN</code></em> <em class="replaceable"><code>ou=OU</code></em> <em class="replaceable"><code>account=ACCOUNT</code></em> <em class="replaceable"><code>password=PASSWORD</code></em> <em class="replaceable"><code>reboot</code></em></h4><p>
    451451Joins a computer into a domain. This command supports the following additional parameters:
    452 </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p><em class="replaceable"><code>DOMAIN</code></em> can be a NetBIOS domain name (also known as short domain name) or a DNS domain name for Active Directory Domains. As in Windows, it is also possible to control which Domain Controller to use. This can be achieved by appending the DC name using the \ separator character. Example: MYDOM\MYDC. The <em class="replaceable"><code>DOMAIN</code></em> parameter cannot be NULL.</p></li><li class="listitem"><p><em class="replaceable"><code>OU</code></em> can be set to a RFC 1779 LDAP DN, like <span class="emphasis"><em>ou=mymachines,cn=Users,dc=example,dc=com</em></span> in order to create the machine account in a non-default LDAP containter. This optional parameter is only supported when joining Active Directory Domains.</p></li><li class="listitem"><p><em class="replaceable"><code>ACCOUNT</code></em> defines a domain account that will be used to join the machine to the domain. This domain account needs to have sufficient privileges to join machines.</p></li><li class="listitem"><p><em class="replaceable"><code>PASSWORD</code></em> defines the password for the domain account defined with <em class="replaceable"><code>ACCOUNT</code></em>.</p></li><li class="listitem"><p><em class="replaceable"><code>REBOOT</code></em> is an optional parameter that can be set to reboot the remote machine after successful join to the domain.</p></li></ul></div><p>
     452</p><div class="itemizedlist"><ul type="disc"><li><p><em class="replaceable"><code>DOMAIN</code></em> can be a NetBIOS domain name (also known as short domain name) or a DNS domain name for Active Directory Domains. As in Windows, it is also possible to control which Domain Controller to use. This can be achieved by appending the DC name using the \ separator character. Example: MYDOM\MYDC. The <em class="replaceable"><code>DOMAIN</code></em> parameter cannot be NULL.</p></li><li><p><em class="replaceable"><code>OU</code></em> can be set to a RFC 1779 LDAP DN, like <span class="emphasis"><em>ou=mymachines,cn=Users,dc=example,dc=com</em></span> in order to create the machine account in a non-default LDAP containter. This optional parameter is only supported when joining Active Directory Domains.</p></li><li><p><em class="replaceable"><code>ACCOUNT</code></em> defines a domain account that will be used to join the machine to the domain. This domain account needs to have sufficient privileges to join machines.</p></li><li><p><em class="replaceable"><code>PASSWORD</code></em> defines the password for the domain account defined with <em class="replaceable"><code>ACCOUNT</code></em>.</p></li><li><p><em class="replaceable"><code>REBOOT</code></em> is an optional parameter that can be set to reboot the remote machine after successful join to the domain.</p></li></ul></div><p>
    453453Note that you also need to use standard net parameters to connect and authenticate to the remote machine that you want to join. These additional parameters include: -S computer and -U user.
    454454</p><p>
     
    457457</p><p>
    458458This example would connect to a computer named XP as the local administrator using password secret, and join the computer into a domain called MYDOM using the MYDOM domain administrator account and password topsecret. After successful join, the computer would reboot.
    459 </p></div><div class="refsect3" title="DOM UNJOIN account=ACCOUNT password=PASSWORD reboot"><a name="id2540616"></a><h4>DOM UNJOIN <em class="replaceable"><code>account=ACCOUNT</code></em> <em class="replaceable"><code>password=PASSWORD</code></em> <em class="replaceable"><code>reboot</code></em></h4><p>
     459</p></div><div class="refsect3" lang="en"><a name="id2534630"></a><h4>DOM UNJOIN <em class="replaceable"><code>account=ACCOUNT</code></em> <em class="replaceable"><code>password=PASSWORD</code></em> <em class="replaceable"><code>reboot</code></em></h4><p>
    460460Unjoins a computer from a domain. This command supports the following additional parameters:
    461 </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p><em class="replaceable"><code>ACCOUNT</code></em> defines a domain account that will be used to unjoin the machine from the domain. This domain account needs to have sufficient privileges to unjoin machines.</p></li><li class="listitem"><p><em class="replaceable"><code>PASSWORD</code></em> defines the password for the domain account defined with <em class="replaceable"><code>ACCOUNT</code></em>.</p></li><li class="listitem"><p><em class="replaceable"><code>REBOOT</code></em> is an optional parameter that can be set to reboot the remote machine after successful unjoin from the domain.</p></li></ul></div><p>
     461</p><div class="itemizedlist"><ul type="disc"><li><p><em class="replaceable"><code>ACCOUNT</code></em> defines a domain account that will be used to unjoin the machine from the domain. This domain account needs to have sufficient privileges to unjoin machines.</p></li><li><p><em class="replaceable"><code>PASSWORD</code></em> defines the password for the domain account defined with <em class="replaceable"><code>ACCOUNT</code></em>.</p></li><li><p><em class="replaceable"><code>REBOOT</code></em> is an optional parameter that can be set to reboot the remote machine after successful unjoin from the domain.</p></li></ul></div><p>
    462462Note that you also need to use standard net parameters to connect and authenticate to the remote machine that you want to unjoin. These additional parameters include: -S computer and -U user.
    463463</p><p>
     
    466466</p><p>
    467467This example would connect to a computer named XP as the local administrator using password secret, and unjoin the computer from the domain using the MYDOM domain administrator account and password topsecret. After successful unjoin, the computer would reboot.
    468 </p></div></div><div class="refsect2" title="HELP [COMMAND]"><a name="id2540688"></a><h3>HELP [COMMAND]</h3><p>Gives usage information for the specified command.</p></div></div><div class="refsect1" title="VERSION"><a name="id2540699"></a><h2>VERSION</h2><p>This man page is complete for version 3 of the Samba
    469         suite.</p></div><div class="refsect1" title="AUTHOR"><a name="id2540710"></a><h2>AUTHOR</h2><p>The original Samba software and related utilities
     468</p></div></div><div class="refsect2" lang="en"><a name="id2534702"></a><h3>HELP [COMMAND]</h3><p>Gives usage information for the specified command.</p></div></div><div class="refsect1" lang="en"><a name="id2534714"></a><h2>VERSION</h2><p>This man page is complete for version 3 of the Samba
     469        suite.</p></div><div class="refsect1" lang="en"><a name="id2534725"></a><h2>AUTHOR</h2><p>The original Samba software and related utilities
    470470        were created by Andrew Tridgell. Samba is now developed
    471471        by the Samba Team as an Open Source project similar
Note: See TracChangeset for help on using the changeset viewer.