Ignore:
Timestamp:
May 20, 2009, 6:46:53 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.4

File:
1 edited

Legend:

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

    r202 r204  
    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" lang="en"><a name="id2479253"></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="id2479254"></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
     
    5555data, most of which is extremely cryptic.</p><p>Note that specifying this parameter here will
    5656override the <a class="link" href="smb.conf.5.html#LOGLEVEL">log level</a> parameter
    57 in the <code class="filename">smb.conf</code> file.</p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id2478334"></a><h2>COMMANDS</h2><div class="refsect2" lang="en"><a name="id2478339"></a><h3>CHANGESECRETPW</h3><p>This command allows the Samba machine account password to be set from an external application
     57in the <code class="filename">smb.conf</code> file.</p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id2478336"></a><h2>COMMANDS</h2><div class="refsect2" lang="en"><a name="id2478341"></a><h3>CHANGESECRETPW</h3><p>This command allows the Samba machine account password to be set from an external application
    5858to a machine account password that has already been stored in Active Directory. DO NOT USE this command
    5959unless you know exactly what you are doing. The use of this command requires that the force flag (-f)
     
    6262this without care and attention as it will overwrite a legitimate machine password without warning.
    6363YOU HAVE BEEN WARNED.
    64 </p></div><div class="refsect2" lang="en"><a name="id2478360"></a><h3>TIME</h3><p>The <code class="literal">NET TIME</code> command allows you to view the time on a remote server
    65         or synchronise the time on the local server with the time on the remote server.</p><div class="refsect3" lang="en"><a name="id2478377"></a><h4>TIME</h4><p>Without any options, the <code class="literal">NET TIME</code> command
     64</p></div><div class="refsect2" lang="en"><a name="id2478362"></a><h3>TIME</h3><p>The <code class="literal">NET TIME</code> command allows you to view the time on a remote server
     65        or synchronise the time on the local server with the time on the remote server.</p><div class="refsect3" lang="en"><a name="id2478379"></a><h4>TIME</h4><p>Without any options, the <code class="literal">NET TIME</code> command
    6666displays the time on the remote server.
    67 </p></div><div class="refsect3" lang="en"><a name="id2478394"></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="id2478411"></a><h4>TIME SET</h4><p>Tries to set the date and time of the local server to that on
    68 the remote server using <code class="literal">/bin/date</code>. </p></div><div class="refsect3" lang="en"><a name="id2478429"></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="id2478441"></a><h3>[RPC|ADS] JOIN [TYPE] [-U username[%password]] [createupn=UPN] [createcomputer=OU] [options]</h3><p>
     67</p></div><div class="refsect3" lang="en"><a name="id2478396"></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="id2478413"></a><h4>TIME SET</h4><p>Tries to set the date and time of the local server to that on
     68the remote server using <code class="literal">/bin/date</code>. </p></div><div class="refsect3" lang="en"><a name="id2478430"></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="id2478442"></a><h3>[RPC|ADS] JOIN [TYPE] [-U username[%password]] [createupn=UPN] [createcomputer=OU] [options]</h3><p>
    6969Join a domain.  If the account already exists on the server, and
    7070[TYPE] is MEMBER, the machine will attempt to join automatically.
     
    8383and ldap, so it may need to be doubled or quadrupled to pass through,
    8484and it is not used as a delimiter.
    85 </p></div><div class="refsect2" lang="en"><a name="id2478475"></a><h3>[RPC] OLDJOIN [options]</h3><p>Join a domain. Use the OLDJOIN option to join the domain
     85</p></div><div class="refsect2" lang="en"><a name="id2478477"></a><h3>[RPC] OLDJOIN [options]</h3><p>Join a domain. Use the OLDJOIN option to join the domain
    8686using the old style of domain joining - you need to create a trust
    87 account in server manager first.</p></div><div class="refsect2" lang="en"><a name="id2478488"></a><h3>[RPC|ADS] USER</h3><div class="refsect3" lang="en"><a name="id2478494"></a><h4>[RPC|ADS] USER</h4><p>List all users</p></div><div class="refsect3" lang="en"><a name="id2478504"></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="id2478517"></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="id2478531"></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="id2478547"></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="id2478562"></a><h3>[RPC|ADS] GROUP</h3><div class="refsect3" lang="en"><a name="id2478568"></a><h4>[RPC|ADS] GROUP [misc options] [targets]</h4><p>List user groups.</p></div><div class="refsect3" lang="en"><a name="id2478579"></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="id2478593"></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="id2478609"></a><h3>[RAP|RPC] SHARE</h3><div class="refsect3" lang="en"><a name="id2478615"></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="id2478626"></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
     87account in server manager first.</p></div><div class="refsect2" lang="en"><a name="id2478490"></a><h3>[RPC|ADS] USER</h3><div class="refsect3" lang="en"><a name="id2478496"></a><h4>[RPC|ADS] USER</h4><p>List all users</p></div><div class="refsect3" lang="en"><a name="id2478506"></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="id2478519"></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="id2478533"></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="id2478549"></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="id2478564"></a><h3>[RPC|ADS] GROUP</h3><div class="refsect3" lang="en"><a name="id2478570"></a><h4>[RPC|ADS] GROUP [misc options] [targets]</h4><p>List user groups.</p></div><div class="refsect3" lang="en"><a name="id2478581"></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="id2478595"></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="id2478611"></a><h3>[RAP|RPC] SHARE</h3><div class="refsect3" lang="en"><a name="id2478616"></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="id2478628"></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
    8888specifies the number of users that can be connected to the
    89 share simultaneously.</p></div><div class="refsect3" lang="en"><a name="id2478644"></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="id2478658"></a><h3>[RPC|RAP] FILE</h3><div class="refsect3" lang="en"><a name="id2478663"></a><h4>[RPC|RAP] FILE</h4><p>List all open files on remote server.</p></div><div class="refsect3" lang="en"><a name="id2478674"></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
    90 remote server.</p></div><div class="refsect3" lang="en"><a name="id2478691"></a><h4>[RPC|RAP] FILE INFO <em class="replaceable"><code>fileid</code></em></h4><p>
     89share simultaneously.</p></div><div class="refsect3" lang="en"><a name="id2478645"></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="id2478659"></a><h3>[RPC|RAP] FILE</h3><div class="refsect3" lang="en"><a name="id2478665"></a><h4>[RPC|RAP] FILE</h4><p>List all open files on remote server.</p></div><div class="refsect3" lang="en"><a name="id2478676"></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
     90remote server.</p></div><div class="refsect3" lang="en"><a name="id2478693"></a><h4>[RPC|RAP] FILE INFO <em class="replaceable"><code>fileid</code></em></h4><p>
    9191Print information on specified <em class="replaceable"><code>fileid</code></em>.
    9292Currently listed are: file-id, username, locks, path, permissions.
    93 </p></div><div class="refsect3" lang="en"><a name="id2478709"></a><h4>[RAP|RPC] FILE USER <em class="replaceable"><code>user</code></em></h4><p>
     93</p></div><div class="refsect3" lang="en"><a name="id2478710"></a><h4>[RAP|RPC] FILE USER <em class="replaceable"><code>user</code></em></h4><p>
    9494List files opened by specified <em class="replaceable"><code>user</code></em>.
    9595Please note that <code class="literal">net rap file user</code> does not work
    9696against Samba servers.
    97 </p></div></div><div class="refsect2" lang="en"><a name="id2478734"></a><h3>SESSION</h3><div class="refsect3" lang="en"><a name="id2478739"></a><h4>RAP SESSION</h4><p>Without any other options, SESSION enumerates all active SMB/CIFS
    98 sessions on the target server.</p></div><div class="refsect3" lang="en"><a name="id2478751"></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="id2478764"></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="id2478779"></a><h3>RAP SERVER <em class="replaceable"><code>DOMAIN</code></em></h3><p>List all servers in specified domain or workgroup. Defaults
    99 to local domain.</p></div><div class="refsect2" lang="en"><a name="id2478792"></a><h3>RAP DOMAIN</h3><p>Lists all domains and workgroups visible on the
    100 current network.</p></div><div class="refsect2" lang="en"><a name="id2478804"></a><h3>RAP PRINTQ</h3><div class="refsect3" lang="en"><a name="id2525477"></a><h4>RAP PRINTQ LIST <em class="replaceable"><code>QUEUE_NAME</code></em></h4><p>Lists the specified print queue and print jobs on the server.
     97</p></div></div><div class="refsect2" lang="en"><a name="id2478735"></a><h3>SESSION</h3><div class="refsect3" lang="en"><a name="id2478740"></a><h4>RAP SESSION</h4><p>Without any other options, SESSION enumerates all active SMB/CIFS
     98sessions on the target server.</p></div><div class="refsect3" lang="en"><a name="id2478752"></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="id2478765"></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="id2478780"></a><h3>RAP SERVER <em class="replaceable"><code>DOMAIN</code></em></h3><p>List all servers in specified domain or workgroup. Defaults
     99to local domain.</p></div><div class="refsect2" lang="en"><a name="id2478794"></a><h3>RAP DOMAIN</h3><p>Lists all domains and workgroups visible on the
     100current network.</p></div><div class="refsect2" lang="en"><a name="id2478805"></a><h3>RAP PRINTQ</h3><div class="refsect3" lang="en"><a name="id2525473"></a><h4>RAP PRINTQ LIST <em class="replaceable"><code>QUEUE_NAME</code></em></h4><p>Lists the specified print queue and print jobs on the server.
    101101If the <em class="replaceable"><code>QUEUE_NAME</code></em> is omitted, all
    102 queues are listed.</p></div><div class="refsect3" lang="en"><a name="id2525495"></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="id2525510"></a><h3>RAP VALIDATE <em class="replaceable"><code>user</code></em> [<em class="replaceable"><code>password</code></em>]</h3><p>
     102queues are listed.</p></div><div class="refsect3" lang="en"><a name="id2525491"></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="id2525505"></a><h3>RAP VALIDATE <em class="replaceable"><code>user</code></em> [<em class="replaceable"><code>password</code></em>]</h3><p>
    103103Validate whether the specified user can log in to the
    104104remote server. If the password is not specified on the commandline, it
    105105will be prompted.
    106 </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="id2525534"></a><h3>RAP GROUPMEMBER</h3><div class="refsect3" lang="en"><a name="id2525540"></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="id2525553"></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="id2525569"></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="id2525587"></a><h3>RAP ADMIN <em class="replaceable"><code>command</code></em></h3><p>Execute the specified <em class="replaceable"><code>command</code></em> on
     106</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="id2525529"></a><h3>RAP GROUPMEMBER</h3><div class="refsect3" lang="en"><a name="id2525535"></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="id2525548"></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="id2525565"></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="id2525582"></a><h3>RAP ADMIN <em class="replaceable"><code>command</code></em></h3><p>Execute the specified <em class="replaceable"><code>command</code></em> on
    107107the remote server. Only works with OS/2 servers.
    108 </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="id2525609"></a><h3>RAP SERVICE</h3><div class="refsect3" lang="en"><a name="id2525615"></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="id2525635"></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="id2525652"></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>
     108</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="id2525604"></a><h3>RAP SERVICE</h3><div class="refsect3" lang="en"><a name="id2525610"></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="id2525630"></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="id2525647"></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>
    109109Change 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>.
    110 </p></div><div class="refsect2" lang="en"><a name="id2525682"></a><h3>LOOKUP</h3><div class="refsect3" lang="en"><a name="id2525688"></a><h4>LOOKUP HOST <em class="replaceable"><code>HOSTNAME</code></em> [<em class="replaceable"><code>TYPE</code></em>]</h4><p>
     110</p></div><div class="refsect2" lang="en"><a name="id2525678"></a><h3>LOOKUP</h3><div class="refsect3" lang="en"><a name="id2525683"></a><h4>LOOKUP HOST <em class="replaceable"><code>HOSTNAME</code></em> [<em class="replaceable"><code>TYPE</code></em>]</h4><p>
    111111Lookup the IP address of the given host with the specified type (netbios suffix).
    112112The type defaults to 0x20 (workstation).
    113 </p></div><div class="refsect3" lang="en"><a name="id2525707"></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="id2525726"></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>.
    114 Defaults to local realm.</p></div><div class="refsect3" lang="en"><a name="id2525744"></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>
    115 DOMAIN</code></em>. Defaults to local domain.</p></div><div class="refsect3" lang="en"><a name="id2525762"></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>
    116 or workgroup. Defaults to local domain.</p></div></div><div class="refsect2" lang="en"><a name="id2525781"></a><h3>CACHE</h3><p>Samba uses a general caching interface called 'gencache'. It
     113</p></div><div class="refsect3" lang="en"><a name="id2525702"></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="id2525721"></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>.
     114Defaults to local realm.</p></div><div class="refsect3" lang="en"><a name="id2525739"></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>
     115DOMAIN</code></em>. Defaults to local domain.</p></div><div class="refsect3" lang="en"><a name="id2525757"></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>
     116or workgroup. Defaults to local domain.</p></div></div><div class="refsect2" lang="en"><a name="id2525776"></a><h3>CACHE</h3><p>Samba uses a general caching interface called 'gencache'. It
    117117can be controlled using 'NET CACHE'.</p><p>All the timeout parameters support the suffixes:
    118118
    119119</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>
    120120
    121 </p><div class="refsect3" lang="en"><a name="id2525818"></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="id2525838"></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="id2525851"></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="id2525870"></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="id2525884"></a><h4>CACHE LIST</h4><p>
     121</p><div class="refsect3" lang="en"><a name="id2525813"></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="id2525833"></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="id2525846"></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="id2525866"></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="id2525879"></a><h4>CACHE LIST</h4><p>
    122122List all current items in the cache.
    123 </p></div><div class="refsect3" lang="en"><a name="id2525894"></a><h4>CACHE FLUSH</h4><p>Remove all the current items from the cache.</p></div></div><div class="refsect2" lang="en"><a name="id2525906"></a><h3>GETLOCALSID [DOMAIN]</h3><p>Prints the SID of the specified domain, or if the parameter is
    124 omitted, the SID of the local server.</p></div><div class="refsect2" lang="en"><a name="id2525918"></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="id2525929"></a><h3>GETDOMAINSID</h3><p>Prints the local machine SID and the SID of the current
    125 domain.</p></div><div class="refsect2" lang="en"><a name="id2525940"></a><h3>SETDOMAINSID</h3><p>Sets the SID of the current domain.</p></div><div class="refsect2" lang="en"><a name="id2525951"></a><h3>GROUPMAP</h3><p>Manage the mappings between Windows group SIDs and UNIX groups.
     123</p></div><div class="refsect3" lang="en"><a name="id2525890"></a><h4>CACHE FLUSH</h4><p>Remove all the current items from the cache.</p></div></div><div class="refsect2" lang="en"><a name="id2525902"></a><h3>GETLOCALSID [DOMAIN]</h3><p>Prints the SID of the specified domain, or if the parameter is
     124omitted, the SID of the local server.</p></div><div class="refsect2" lang="en"><a name="id2525914"></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="id2525925"></a><h3>GETDOMAINSID</h3><p>Prints the local machine SID and the SID of the current
     125domain.</p></div><div class="refsect2" lang="en"><a name="id2525936"></a><h3>SETDOMAINSID</h3><p>Sets the SID of the current domain.</p></div><div class="refsect2" lang="en"><a name="id2525946"></a><h3>GROUPMAP</h3><p>Manage the mappings between Windows group SIDs and UNIX groups.
    126126Common 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
    127127  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',
    128   or 'builtin'</p></li><li><p>comment - Freeform text description of the group</p></li></ul></div><div class="refsect3" lang="en"><a name="id2525996"></a><h4>GROUPMAP ADD</h4><p>
     128  or 'builtin'</p></li><li><p>comment - Freeform text description of the group</p></li></ul></div><div class="refsect3" lang="en"><a name="id2525991"></a><h4>GROUPMAP ADD</h4><p>
    129129Add a new group mapping entry:
    130130</p><pre class="programlisting">
     
    132132        [type={domain|local}] [ntgroup=string] [comment=string]
    133133</pre><p>
    134 </p></div><div class="refsect3" lang="en"><a name="id2526014"></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="id2526030"></a><h4>GROUPMAP MODIFY</h4><p>Update en existing group entry.</p><p>
     134</p></div><div class="refsect3" lang="en"><a name="id2526010"></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="id2526026"></a><h4>GROUPMAP MODIFY</h4><p>Update en existing group entry.</p><p>
    135135</p><pre class="programlisting">
    136136net groupmap modify {ntgroup=string|sid=SID} [unixgroup=string] \
    137137       [comment=string] [type={domain|local}]
    138138</pre><p>
    139 </p></div><div class="refsect3" lang="en"><a name="id2526052"></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="id2526068"></a><h3>MAXRID</h3><p>Prints out the highest RID currently in use on the local
     139</p></div><div class="refsect3" lang="en"><a name="id2526047"></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="id2526063"></a><h3>MAXRID</h3><p>Prints out the highest RID currently in use on the local
    140140server (by the active 'passdb backend').
    141 </p></div><div class="refsect2" lang="en"><a name="id2526079"></a><h3>RPC INFO</h3><p>Print information about the domain of the remote server,
     141</p></div><div class="refsect2" lang="en"><a name="id2526075"></a><h3>RPC INFO</h3><p>Print information about the domain of the remote server,
    142142such as domain name, domain sid and number of users and groups.
    143 </p></div><div class="refsect2" lang="en"><a name="id2526091"></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="id2526102"></a><h3>[RPC|ADS] CHANGETRUSTPW</h3><p>Force change of domain trust password.</p></div><div class="refsect2" lang="en"><a name="id2526113"></a><h3>RPC TRUSTDOM</h3><div class="refsect3" lang="en"><a name="id2526119"></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>.
     143</p></div><div class="refsect2" lang="en"><a name="id2526087"></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="id2526098"></a><h3>[RPC|ADS] CHANGETRUSTPW</h3><p>Force change of domain trust password.</p></div><div class="refsect2" lang="en"><a name="id2526109"></a><h3>RPC TRUSTDOM</h3><div class="refsect3" lang="en"><a name="id2526114"></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>.
    144144This is in fact a Samba account named <em class="replaceable"><code>DOMAIN$</code></em>
    145145with the account flag <code class="constant">'I'</code> (interdomain trust account).
     
    147147<code class="literal">smbpasswd -a -i DOMAIN</code>. Please note that both commands
    148148expect a appropriate UNIX account.
    149 </p></div><div class="refsect3" lang="en"><a name="id2526153"></a><h4>RPC TRUSTDOM DEL <em class="replaceable"><code>DOMAIN</code></em></h4><p>Remove interdomain trust account for
     149</p></div><div class="refsect3" lang="en"><a name="id2526148"></a><h4>RPC TRUSTDOM DEL <em class="replaceable"><code>DOMAIN</code></em></h4><p>Remove interdomain trust account for
    150150<em class="replaceable"><code>DOMAIN</code></em>. If it is used against localhost
    151151it has the same effect as <code class="literal">smbpasswd -x DOMAIN$</code>.
    152 </p></div><div class="refsect3" lang="en"><a name="id2526177"></a><h4>RPC TRUSTDOM ESTABLISH <em class="replaceable"><code>DOMAIN</code></em></h4><p>
     152</p></div><div class="refsect3" lang="en"><a name="id2526172"></a><h4>RPC TRUSTDOM ESTABLISH <em class="replaceable"><code>DOMAIN</code></em></h4><p>
    153153Establish a trust relationship to a trusting domain.
    154154Interdomain account must already be created on the remote PDC.
    155 </p></div><div class="refsect3" lang="en"><a name="id2526191"></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="id2526205"></a><h4>RPC TRUSTDOM LIST</h4><p>List all current interdomain trust relationships.</p></div><div class="refsect3" lang="en"><a name="id2526216"></a><h4>RPC RIGHTS</h4><p>This subcommand is used to view and manage Samba's rights assignments (also
     155</p></div><div class="refsect3" lang="en"><a name="id2526187"></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="id2526200"></a><h4>RPC TRUSTDOM LIST</h4><p>List all current interdomain trust relationships.</p></div><div class="refsect3" lang="en"><a name="id2526211"></a><h4>RPC RIGHTS</h4><p>This subcommand is used to view and manage Samba's rights assignments (also
    156156referred to as privileges).  There are three options currently available:
    157157<em class="parameter"><code>list</code></em>, <em class="parameter"><code>grant</code></em>, and
    158158<em class="parameter"><code>revoke</code></em>.  More details on Samba's privilege model and its use
    159 can be found in the Samba-HOWTO-Collection.</p></div></div><div class="refsect2" lang="en"><a name="id2526249"></a><h3>RPC ABORTSHUTDOWN</h3><p>Abort the shutdown of a remote server.</p></div><div class="refsect2" lang="en"><a name="id2526260"></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>
     159can be found in the Samba-HOWTO-Collection.</p></div></div><div class="refsect2" lang="en"><a name="id2526244"></a><h3>RPC ABORTSHUTDOWN</h3><p>Abort the shutdown of a remote server.</p></div><div class="refsect2" lang="en"><a name="id2526255"></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>
    160160Reboot after shutdown.
    161161</p></dd><dt><span class="term">-f</span></dt><dd><p>
     
    165165user of the system can use this time to cancel the shutdown.
    166166</p></dd><dt><span class="term">-C message</span></dt><dd><p>Display the specified message on the screen to
    167 announce the shutdown.</p></dd></dl></div></div><div class="refsect2" lang="en"><a name="id2526322"></a><h3>RPC SAMDUMP</h3><p>Print out sam database of remote server. You need
    168 to run this against the PDC, from a Samba machine joined as a BDC. </p></div><div class="refsect2" lang="en"><a name="id2526334"></a><h3>RPC VAMPIRE</h3><p>Export users, aliases and groups from remote server to
     167announce the shutdown.</p></dd></dl></div></div><div class="refsect2" lang="en"><a name="id2526318"></a><h3>RPC SAMDUMP</h3><p>Print out sam database of remote server. You need
     168to run this against the PDC, from a Samba machine joined as a BDC. </p></div><div class="refsect2" lang="en"><a name="id2526330"></a><h3>RPC VAMPIRE</h3><p>Export users, aliases and groups from remote server to
    169169local server.  You need to run this against the PDC, from a Samba machine joined as a BDC.
    170 </p></div><div class="refsect2" lang="en"><a name="id2526347"></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="id2526363"></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="id2526374"></a><h3>ADS STATUS</h3><p>Print out status of machine account of the local machine in ADS.
     170</p></div><div class="refsect2" lang="en"><a name="id2526342"></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="id2526359"></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="id2526370"></a><h3>ADS STATUS</h3><p>Print out status of machine account of the local machine in ADS.
    171171Prints out quite some debug info. Aimed at developers, regular
    172 users should use <code class="literal">NET ADS TESTJOIN</code>.</p></div><div class="refsect2" lang="en"><a name="id2526392"></a><h3>ADS PRINTER</h3><div class="refsect3" lang="en"><a name="id2526398"></a><h4>ADS PRINTER INFO [<em class="replaceable"><code>PRINTER</code></em>] [<em class="replaceable"><code>SERVER</code></em>]</h4><p>
     172users should use <code class="literal">NET ADS TESTJOIN</code>.</p></div><div class="refsect2" lang="en"><a name="id2526388"></a><h3>ADS PRINTER</h3><div class="refsect3" lang="en"><a name="id2526393"></a><h4>ADS PRINTER INFO [<em class="replaceable"><code>PRINTER</code></em>] [<em class="replaceable"><code>SERVER</code></em>]</h4><p>
    173173Lookup info for <em class="replaceable"><code>PRINTER</code></em> on <em class="replaceable"><code>SERVER</code></em>. The printer name defaults to "*", the
    174 server name defaults to the local host.</p></div><div class="refsect3" lang="en"><a name="id2526424"></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="id2526437"></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="id2526452"></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
     174server name defaults to the local host.</p></div><div class="refsect3" lang="en"><a name="id2526419"></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="id2526433"></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="id2526447"></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
    175175expression is a standard LDAP search expression, and the
    176176attributes 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>
    177 </p></div><div class="refsect2" lang="en"><a name="id2526481"></a><h3>ADS DN <em class="replaceable"><code>DN</code></em> <em class="replaceable"><code>(attributes)</code></em></h3><p>
     177</p></div><div class="refsect2" lang="en"><a name="id2526476"></a><h3>ADS DN <em class="replaceable"><code>DN</code></em> <em class="replaceable"><code>(attributes)</code></em></h3><p>
    178178Perform a raw LDAP search on a ADS server and dump the results. The
    179179DN standard LDAP DN, and the attributes are a list of LDAP fields
    180180to show in the result.
    181 </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="id2526508"></a><h3>ADS WORKGROUP</h3><p>Print out workgroup name for specified kerberos realm.</p></div><div class="refsect2" lang="en"><a name="id2526520"></a><h3>SAM CREATEBUILTINGROUP &lt;NAME&gt;</h3><p>
     181</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="id2526504"></a><h3>ADS WORKGROUP</h3><p>Print out workgroup name for specified kerberos realm.</p></div><div class="refsect2" lang="en"><a name="id2526515"></a><h3>SAM CREATEBUILTINGROUP &lt;NAME&gt;</h3><p>
    182182(Re)Create a BUILTIN group.
    183183Only a wellknown set of BUILTIN groups can be created with this command.
     
    189189This command requires a running Winbindd with idmap allocation properly
    190190configured. The group gid will be allocated out of the winbindd range.
    191 </p></div><div class="refsect2" lang="en"><a name="id2526538"></a><h3>SAM CREATELOCALGROUP &lt;NAME&gt;</h3><p>
     191</p></div><div class="refsect2" lang="en"><a name="id2526534"></a><h3>SAM CREATELOCALGROUP &lt;NAME&gt;</h3><p>
    192192Create a LOCAL group (also known as Alias).
    193193
    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" lang="en"><a name="id2526552"></a><h3>SAM DELETELOCALGROUP &lt;NAME&gt;</h3><p>
     196</p></div><div class="refsect2" lang="en"><a name="id2526547"></a><h3>SAM DELETELOCALGROUP &lt;NAME&gt;</h3><p>
    197197Delete an existing LOCAL group (also known as Alias).
    198198
    199 </p></div><div class="refsect2" lang="en"><a name="id2526564"></a><h3>SAM MAPUNIXGROUP &lt;NAME&gt;</h3><p>
     199</p></div><div class="refsect2" lang="en"><a name="id2526559"></a><h3>SAM MAPUNIXGROUP &lt;NAME&gt;</h3><p>
    200200Map an existing Unix group and make it a Domain Group, the domain group
    201201will have the same name.
    202 </p></div><div class="refsect2" lang="en"><a name="id2526576"></a><h3>SAM UNMAPUNIXGROUP &lt;NAME&gt;</h3><p>
     202</p></div><div class="refsect2" lang="en"><a name="id2526571"></a><h3>SAM UNMAPUNIXGROUP &lt;NAME&gt;</h3><p>
    203203Remove an existing group mapping entry.
    204 </p></div><div class="refsect2" lang="en"><a name="id2526587"></a><h3>SAM ADDMEM &lt;GROUP&gt; &lt;MEMBER&gt;</h3><p>
     204</p></div><div class="refsect2" lang="en"><a name="id2526582"></a><h3>SAM ADDMEM &lt;GROUP&gt; &lt;MEMBER&gt;</h3><p>
    205205Add a member to a Local group. The group can be specified only by name,
    206206the member can be specified by name or SID.
    207 </p></div><div class="refsect2" lang="en"><a name="id2526600"></a><h3>SAM DELMEM  &lt;GROUP&gt; &lt;MEMBER&gt;</h3><p>
     207</p></div><div class="refsect2" lang="en"><a name="id2526595"></a><h3>SAM DELMEM  &lt;GROUP&gt; &lt;MEMBER&gt;</h3><p>
    208208Remove a member from a Local group. The group and the member must be
    209209specified by name.
    210 </p></div><div class="refsect2" lang="en"><a name="id2526612"></a><h3>SAM LISTMEM &lt;GROUP&gt;</h3><p>
     210</p></div><div class="refsect2" lang="en"><a name="id2526608"></a><h3>SAM LISTMEM &lt;GROUP&gt;</h3><p>
    211211List Local group members. The group must be specified by name.
    212 </p></div><div class="refsect2" lang="en"><a name="id2526624"></a><h3>SAM LIST &lt;users|groups|localgroups|builtin|workstations&gt; [verbose]</h3><p>
     212</p></div><div class="refsect2" lang="en"><a name="id2526619"></a><h3>SAM LIST &lt;users|groups|localgroups|builtin|workstations&gt; [verbose]</h3><p>
    213213List the specified set of accounts by name. If verbose is specified,
    214214the rid and description is also provided for each account.
    215 </p></div><div class="refsect2" lang="en"><a name="id2526638"></a><h3>SAM SHOW &lt;NAME&gt;</h3><p>
     215</p></div><div class="refsect2" lang="en"><a name="id2526633"></a><h3>SAM SHOW &lt;NAME&gt;</h3><p>
    216216Show the full DOMAIN\\NAME the SID and the type for the corresponding
    217217account.
    218 </p></div><div class="refsect2" lang="en"><a name="id2526649"></a><h3>SAM SET HOMEDIR &lt;NAME&gt; &lt;DIRECTORY&gt;</h3><p>
     218</p></div><div class="refsect2" lang="en"><a name="id2526645"></a><h3>SAM SET HOMEDIR &lt;NAME&gt; &lt;DIRECTORY&gt;</h3><p>
    219219Set the home directory for a user account.
    220 </p></div><div class="refsect2" lang="en"><a name="id2526661"></a><h3>SAM SET PROFILEPATH &lt;NAME&gt; &lt;PATH&gt;</h3><p>
     220</p></div><div class="refsect2" lang="en"><a name="id2526656"></a><h3>SAM SET PROFILEPATH &lt;NAME&gt; &lt;PATH&gt;</h3><p>
    221221Set the profile path for a user account.
    222 </p></div><div class="refsect2" lang="en"><a name="id2526672"></a><h3>SAM SET COMMENT &lt;NAME&gt; &lt;COMMENT&gt;</h3><p>
     222</p></div><div class="refsect2" lang="en"><a name="id2526667"></a><h3>SAM SET COMMENT &lt;NAME&gt; &lt;COMMENT&gt;</h3><p>
    223223Set the comment for a user or group account.
    224 </p></div><div class="refsect2" lang="en"><a name="id2526683"></a><h3>SAM SET FULLNAME &lt;NAME&gt; &lt;FULL NAME&gt;</h3><p>
     224</p></div><div class="refsect2" lang="en"><a name="id2526678"></a><h3>SAM SET FULLNAME &lt;NAME&gt; &lt;FULL NAME&gt;</h3><p>
    225225Set the full name for a user account.
    226 </p></div><div class="refsect2" lang="en"><a name="id2526694"></a><h3>SAM SET LOGONSCRIPT &lt;NAME&gt; &lt;SCRIPT&gt;</h3><p>
     226</p></div><div class="refsect2" lang="en"><a name="id2526690"></a><h3>SAM SET LOGONSCRIPT &lt;NAME&gt; &lt;SCRIPT&gt;</h3><p>
    227227Set the logon script for a user account.
    228 </p></div><div class="refsect2" lang="en"><a name="id2526705"></a><h3>SAM SET HOMEDRIVE &lt;NAME&gt; &lt;DRIVE&gt;</h3><p>
     228</p></div><div class="refsect2" lang="en"><a name="id2526701"></a><h3>SAM SET HOMEDRIVE &lt;NAME&gt; &lt;DRIVE&gt;</h3><p>
    229229Set the home drive for a user account.
    230 </p></div><div class="refsect2" lang="en"><a name="id2526717"></a><h3>SAM SET WORKSTATIONS &lt;NAME&gt; &lt;WORKSTATIONS&gt;</h3><p>
     230</p></div><div class="refsect2" lang="en"><a name="id2526712"></a><h3>SAM SET WORKSTATIONS &lt;NAME&gt; &lt;WORKSTATIONS&gt;</h3><p>
    231231Set the workstations a user account is allowed to log in from.
    232 </p></div><div class="refsect2" lang="en"><a name="id2526728"></a><h3>SAM SET DISABLE &lt;NAME&gt;</h3><p>
     232</p></div><div class="refsect2" lang="en"><a name="id2526724"></a><h3>SAM SET DISABLE &lt;NAME&gt;</h3><p>
    233233Set the "disabled" flag for a user account.
    234 </p></div><div class="refsect2" lang="en"><a name="id2526740"></a><h3>SAM SET PWNOTREQ &lt;NAME&gt;</h3><p>
     234</p></div><div class="refsect2" lang="en"><a name="id2526735"></a><h3>SAM SET PWNOTREQ &lt;NAME&gt;</h3><p>
    235235Set the "password not required" flag for a user account.
    236 </p></div><div class="refsect2" lang="en"><a name="id2526751"></a><h3>SAM SET AUTOLOCK &lt;NAME&gt;</h3><p>
     236</p></div><div class="refsect2" lang="en"><a name="id2526746"></a><h3>SAM SET AUTOLOCK &lt;NAME&gt;</h3><p>
    237237Set the "autolock" flag for a user account.
    238 </p></div><div class="refsect2" lang="en"><a name="id2526762"></a><h3>SAM SET PWNOEXP &lt;NAME&gt;</h3><p>
     238</p></div><div class="refsect2" lang="en"><a name="id2526758"></a><h3>SAM SET PWNOEXP &lt;NAME&gt;</h3><p>
    239239Set the "password do not expire" flag for a user account.
    240 </p></div><div class="refsect2" lang="en"><a name="id2526774"></a><h3>SAM SET PWDMUSTCHANGENOW &lt;NAME&gt; [yes|no]</h3><p>
     240</p></div><div class="refsect2" lang="en"><a name="id2526769"></a><h3>SAM SET PWDMUSTCHANGENOW &lt;NAME&gt; [yes|no]</h3><p>
    241241Set or unset the "password must change" flag for a user account.
    242 </p></div><div class="refsect2" lang="en"><a name="id2526786"></a><h3>SAM POLICY LIST</h3><p>
     242</p></div><div class="refsect2" lang="en"><a name="id2526781"></a><h3>SAM POLICY LIST</h3><p>
    243243List the available account policies.
    244 </p></div><div class="refsect2" lang="en"><a name="id2526796"></a><h3>SAM POLICY SHOW &lt;account policy&gt;</h3><p>
     244</p></div><div class="refsect2" lang="en"><a name="id2526792"></a><h3>SAM POLICY SHOW &lt;account policy&gt;</h3><p>
    245245Show the account policy value.
    246 </p></div><div class="refsect2" lang="en"><a name="id2526807"></a><h3>SAM POLICY SET &lt;account policy&gt; &lt;value&gt;</h3><p>
     246</p></div><div class="refsect2" lang="en"><a name="id2526803"></a><h3>SAM POLICY SET &lt;account policy&gt; &lt;value&gt;</h3><p>
    247247Set a value for the account policy.
    248248Valid values can be: "forever", "never", "off", or a number.
    249 </p></div><div class="refsect2" lang="en"><a name="id2526820"></a><h3>SAM PROVISION</h3><p>
     249</p></div><div class="refsect2" lang="en"><a name="id2526815"></a><h3>SAM PROVISION</h3><p>
    250250Only available if ldapsam:editposix is set and winbindd is running.
    251251Properly populates the ldap tree with the basic accounts (Administrator)
    252252and groups (Domain Users, Domain Admins, Domain Guests) on the ldap tree.
    253 </p></div><div class="refsect2" lang="en"><a name="id2526834"></a><h3>IDMAP DUMP &lt;local tdb file name&gt;</h3><p>
     253</p></div><div class="refsect2" lang="en"><a name="id2526829"></a><h3>IDMAP DUMP &lt;local tdb file name&gt;</h3><p>
    254254Dumps the mappings contained in the local tdb file specified.
    255255This command is useful to dump only the mappings produced by the idmap_tdb backend.
    256 </p></div><div class="refsect2" lang="en"><a name="id2526848"></a><h3>IDMAP RESTORE [input file]</h3><p>
     256</p></div><div class="refsect2" lang="en"><a name="id2526843"></a><h3>IDMAP RESTORE [input file]</h3><p>
    257257Restore the mappings from the specified file or stdin.
    258 </p></div><div class="refsect2" lang="en"><a name="id2526859"></a><h3>IDMAP SECRET &lt;DOMAIN&gt;|ALLOC &lt;secret&gt;</h3><p>
     258</p></div><div class="refsect2" lang="en"><a name="id2526854"></a><h3>IDMAP SECRET &lt;DOMAIN&gt;|ALLOC &lt;secret&gt;</h3><p>
    259259Store a secret for the specified domain, used primarily for domains
    260260that use idmap_ldap as a backend. In this case the secret is used
    261261as the password for the user DN used to bind to the ldap server.
    262 </p></div><div class="refsect2" lang="en"><a name="id2526873"></a><h3>USERSHARE</h3><p>Starting with version 3.0.23, a Samba server now supports the ability for
     262</p></div><div class="refsect2" lang="en"><a name="id2526868"></a><h3>USERSHARE</h3><p>Starting with version 3.0.23, a Samba server now supports the ability for
    263263non-root users to add user defined shares to be exported using the "net usershare"
    264264commands.
     
    289289</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>
    290290
    291 </p><div class="refsect3" lang="en"><a name="id2526931"></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>
     291</p><div class="refsect3" lang="en"><a name="id2526927"></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>
    292292Add or replace a new user defined share, with name "sharename".
    293293</p><p>
     
    326326at connect time so will see the change immediately, there is no need
    327327to restart smbd on adding, deleting or changing a user defined share.
    328 </div><div class="refsect3" lang="en"><a name="id2527006"></a><h4>USERSHARE DELETE <em class="replaceable"><code>sharename</code></em></h4><p>
     328</div><div class="refsect3" lang="en"><a name="id2527001"></a><h4>USERSHARE DELETE <em class="replaceable"><code>sharename</code></em></h4><p>
    329329Deletes the user defined share by name. The Samba smbd daemon
    330330immediately notices this change, although it will not disconnect
    331331any users currently connected to the deleted share.
    332 </p></div><div class="refsect3" lang="en"><a name="id2527021"></a><h4>USERSHARE INFO <em class="replaceable"><code>[-l|--long]</code></em> <em class="replaceable"><code>[wildcard sharename]</code></em></h4><p>
     332</p></div><div class="refsect3" lang="en"><a name="id2527016"></a><h4>USERSHARE INFO <em class="replaceable"><code>[-l|--long]</code></em> <em class="replaceable"><code>[wildcard sharename]</code></em></h4><p>
    333333Get info on user defined shares owned by the current user matching the given pattern, or all users.
    334334</p><p>
     
    349349And is a list of the current settings of the user defined share that can be
    350350modified by the "net usershare add" command.
    351 </p></div><div class="refsect3" lang="en"><a name="id2527056"></a><h4>USERSHARE LIST <em class="replaceable"><code>[-l|--long]</code></em> <em class="replaceable"><code>wildcard sharename</code></em></h4><p>
     351</p></div><div class="refsect3" lang="en"><a name="id2527051"></a><h4>USERSHARE LIST <em class="replaceable"><code>[-l|--long]</code></em> <em class="replaceable"><code>wildcard sharename</code></em></h4><p>
    352352List all the user defined shares owned by the current user matching the given pattern, or all users.
    353353</p><p>
     
    357357If the '-l' or '--long' option is also given, it includes the names of user defined
    358358shares created by other users.
    359 </p></div></div><div class="refsect2" lang="en"><a name="id2527091"></a><h3>CONF</h3><p>Starting with version 3.2.0, a Samba server can be configured by data
     359</p></div></div><div class="refsect2" lang="en"><a name="id2527086"></a><h3>CONF</h3><p>Starting with version 3.2.0, a Samba server can be configured by data
    360360stored in registry. This configuration data can be edited with the new "net
    361361conf" commands.
     
    375375format.</td></tr><tr><td>net conf listshares - List the registry shares.</td></tr><tr><td>net conf drop - Delete the complete configuration from
    376376registry.</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>
    377 </p><div class="refsect3" lang="en"><a name="id2527222"></a><h4>CONF LIST</h4><p>
     377</p><div class="refsect3" lang="en"><a name="id2527217"></a><h4>CONF LIST</h4><p>
    378378Print the configuration data stored in the registry in a smb.conf-like format to
    379379standard output.
    380 </p></div><div class="refsect3" lang="en"><a name="id2527234"></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>
     380</p></div><div class="refsect3" lang="en"><a name="id2527229"></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>
    381381This command imports configuration from a file in smb.conf format.
    382382If a section encountered in the input file is present in registry,
     
    388388the parameter "-T" on the commandline. In test mode, no changes are made to the
    389389registry, and the resulting configuration is printed to standard output instead.
    390 </p></div><div class="refsect3" lang="en"><a name="id2527264"></a><h4>CONF LISTSHARES</h4><p>
     390</p></div><div class="refsect3" lang="en"><a name="id2527259"></a><h4>CONF LISTSHARES</h4><p>
    391391List the names of the shares defined in registry.
    392 </p></div><div class="refsect3" lang="en"><a name="id2527275"></a><h4>CONF DROP</h4><p>
     392</p></div><div class="refsect3" lang="en"><a name="id2527270"></a><h4>CONF DROP</h4><p>
    393393Delete the complete configuration data from registry.
    394 </p></div><div class="refsect3" lang="en"><a name="id2527286"></a><h4>CONF SHOWSHARE <em class="replaceable"><code>sharename</code></em></h4><p>
     394</p></div><div class="refsect3" lang="en"><a name="id2527281"></a><h4>CONF SHOWSHARE <em class="replaceable"><code>sharename</code></em></h4><p>
    395395Show the definition of the share or section specified. It is valid to specify
    396396"global" as sharename to retrieve the global configuration options from
    397397registry.
    398 </p></div><div class="refsect3" lang="en"><a name="id2527301"></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.
     398</p></div><div class="refsect3" lang="en"><a name="id2527296"></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.
    399399The sharename and path have to be given. The share name may
    400400<span class="emphasis"><em>not</em></span> be "global". Optionally, values for the very
     
    402402The same result may be obtained by a sequence of "net conf setparm"
    403403commands.
    404 </p></div><div class="refsect3" lang="en"><a name="id2527337"></a><h4>CONF DELSHARE <em class="replaceable"><code>sharename</code></em></h4><p>
     404</p></div><div class="refsect3" lang="en"><a name="id2527333"></a><h4>CONF DELSHARE <em class="replaceable"><code>sharename</code></em></h4><p>
    405405Delete a share definition from registry.
    406 </p></div><div class="refsect3" lang="en"><a name="id2527351"></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>
     406</p></div><div class="refsect3" lang="en"><a name="id2527346"></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>
    407407Store a parameter in registry. The section may be global or a sharename.
    408408The section is created if it does not exist yet.
    409 </p></div><div class="refsect3" lang="en"><a name="id2527372"></a><h4>CONF GETPARM <em class="replaceable"><code>section</code></em> <em class="replaceable"><code>parameter</code></em></h4><p>
     409</p></div><div class="refsect3" lang="en"><a name="id2527367"></a><h4>CONF GETPARM <em class="replaceable"><code>section</code></em> <em class="replaceable"><code>parameter</code></em></h4><p>
    410410Show a parameter stored in registry.
    411 </p></div><div class="refsect3" lang="en"><a name="id2527389"></a><h4>CONF DELPARM <em class="replaceable"><code>section</code></em> <em class="replaceable"><code>parameter</code></em></h4><p>
     411</p></div><div class="refsect3" lang="en"><a name="id2527384"></a><h4>CONF DELPARM <em class="replaceable"><code>section</code></em> <em class="replaceable"><code>parameter</code></em></h4><p>
    412412Delete a parameter stored in registry.
    413 </p></div><div class="refsect3" lang="en"><a name="id2527405"></a><h4>CONF GETINCLUDES <em class="replaceable"><code>section</code></em></h4><p>
     413</p></div><div class="refsect3" lang="en"><a name="id2527401"></a><h4>CONF GETINCLUDES <em class="replaceable"><code>section</code></em></h4><p>
    414414Get the list of includes for the provided section (global or share).
    415415</p><p>
     
    427427configuration. In the future, there will be the ability to include configuration
    428428data from other registry keys.
    429 </p></div><div class="refsect3" lang="en"><a name="id2527441"></a><h4>CONF SETINCLUDES <em class="replaceable"><code>section</code></em> [<em class="replaceable"><code>filename</code></em>]+</h4><p>
     429</p></div><div class="refsect3" lang="en"><a name="id2527436"></a><h4>CONF SETINCLUDES <em class="replaceable"><code>section</code></em> [<em class="replaceable"><code>filename</code></em>]+</h4><p>
    430430Set the list of includes for the provided section (global or share) to the given
    431431list of one or more filenames. The filenames may contain the usual smb.conf
    432432macros like %I.
    433 </p></div><div class="refsect3" lang="en"><a name="id2527461"></a><h4>CONF DELINCLUDES <em class="replaceable"><code>section</code></em></h4><p>
     433</p></div><div class="refsect3" lang="en"><a name="id2527456"></a><h4>CONF DELINCLUDES <em class="replaceable"><code>section</code></em></h4><p>
    434434Delete the list of includes from the provided section (global or share).
    435 </p></div></div><div class="refsect2" lang="en"><a name="id2527476"></a><h3>HELP [COMMAND]</h3><p>Gives usage information for the specified command.</p></div></div><div class="refsect1" lang="en"><a name="id2527488"></a><h2>VERSION</h2><p>This man page is complete for version 3 of the Samba
    436         suite.</p></div><div class="refsect1" lang="en"><a name="id2527499"></a><h2>AUTHOR</h2><p>The original Samba software and related utilities
     435</p></div></div><div class="refsect2" lang="en"><a name="id2527471"></a><h3>HELP [COMMAND]</h3><p>Gives usage information for the specified command.</p></div></div><div class="refsect1" lang="en"><a name="id2527483"></a><h2>VERSION</h2><p>This man page is complete for version 3 of the Samba
     436        suite.</p></div><div class="refsect1" lang="en"><a name="id2527494"></a><h2>AUTHOR</h2><p>The original Samba software and related utilities
    437437        were created by Andrew Tridgell. Samba is now developed
    438438        by the Samba Team as an Open Source project similar
Note: See TracChangeset for help on using the changeset viewer.