Ignore:
Timestamp:
May 23, 2008, 6:56:41 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.29

File:
1 edited

Legend:

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

    r44 r134  
    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.71.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
     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.73.2"></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"><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]</p></div></div><div class="refsect1" lang="en"><a name="id259362"></a><h2>DESCRIPTION</h2><p>This tool is part of the <a 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]</p></div></div><div class="refsect1" lang="en"><a name="id282818"></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" lang="en"><a name="id259387"></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="id283377"></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
     
    2525                </p></dd><dt><span class="term">-n &lt;primary NetBIOS name&gt;</span></dt><dd><p>This option allows you to override
    2626the NetBIOS name that Samba uses for itself. This is identical
    27 to setting the <a class="indexterm" name="id260390"></a> parameter in the <code class="filename">smb.conf</code> file.
     27to setting the <a class="link" href="smb.conf.5.html#NETBIOSNAME">netbios name</a> parameter in the <code class="filename">smb.conf</code> file.
    2828However, a command
    2929line setting will take precedence over settings in
     
    4343                Make queries to the external server using the machine account of the local server.
    4444                </p></dd><dt><span class="term">-d|--debuglevel=level</span></dt><dd><p><em class="replaceable"><code>level</code></em> is an integer
    45 from 0 to 10.  The default value if this parameter is
    46 not specified is zero.</p><p>The higher this value, the more detail will be
     45from 0 to 10. The default value if this parameter is
     46not specified is 0.</p><p>The higher this value, the more detail will be
    4747logged to the log files about the activities of the
    4848server. At level 0, only critical errors and serious
     
    5454use only by developers and generate HUGE amounts of log
    5555data, most of which is extremely cryptic.</p><p>Note that specifying this parameter here will
    56 override the <a class="indexterm" name="id260134"></a> parameter
    57 in the <code class="filename">smb.conf</code> file.</p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id260151"></a><h2>COMMANDS</h2><div class="refsect2" lang="en"><a name="id260156"></a><h3>CHANGESECRETPW</h3><p>This command allows the Samba machine account password to be set from an external application
     56override the <a class="link" href="smb.conf.5.html#LOGLEVEL">log level</a> parameter
     57in the <code class="filename">smb.conf</code> file.</p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id324518"></a><h2>COMMANDS</h2><div class="refsect2" lang="en"><a name="id324523"></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="id260172"></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="id260188"></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="id324538"></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="id324553"></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="id260203"></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="id300441"></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="id300456"></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="id300467"></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="id324568"></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="id324583"></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="id324597"></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="id324609"></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="id300496"></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="id324636"></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="id300507"></a><h3>[RPC|ADS] USER</h3><div class="refsect3" lang="en"><a name="id300513"></a><h4>[RPC|ADS] USER</h4><p>List all users</p></div><div class="refsect3" lang="en"><a name="id300522"></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="id300535"></a><h4>[RPC|ADS] USER INFO <em class="replaceable"><code>target</code></em></h4><p>List the domain groups of a the specified user.</p></div><div class="refsect3" lang="en"><a name="id300547"></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="id300563"></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="id300579"></a><h3>[RPC|ADS] GROUP</h3><div class="refsect3" lang="en"><a name="id300584"></a><h4>[RPC|ADS] GROUP [misc options] [targets]</h4><p>List user groups.</p></div><div class="refsect3" lang="en"><a name="id300595"></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="id300608"></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="id300623"></a><h3>[RAP|RPC] SHARE</h3><div class="refsect3" lang="en"><a name="id300629"></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="id300640"></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="id324647"></a><h3>[RPC|ADS] USER</h3><div class="refsect3" lang="en"><a name="id324652"></a><h4>[RPC|ADS] USER</h4><p>List all users</p></div><div class="refsect3" lang="en"><a name="id324662"></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="id324674"></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="id324685"></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="id324700"></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="id324714"></a><h3>[RPC|ADS] GROUP</h3><div class="refsect3" lang="en"><a name="id324720"></a><h4>[RPC|ADS] GROUP [misc options] [targets]</h4><p>List user groups.</p></div><div class="refsect3" lang="en"><a name="id324729"></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="id324742"></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="id324756"></a><h3>[RAP|RPC] SHARE</h3><div class="refsect3" lang="en"><a name="id324761"></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="id324771"></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="id300655"></a><h4>SHARE DELETE <em class="replaceable"><code>sharenam</code></em></h4><p>Delete specified share.</p></div></div><div class="refsect2" lang="en"><a name="id300668"></a><h3>[RPC|RAP] FILE</h3><div class="refsect3" lang="en"><a name="id300674"></a><h4>[RPC|RAP] FILE</h4><p>List all open files on remote server.</p></div><div class="refsect3" lang="en"><a name="id300684"></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="id300701"></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="id324786"></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="id324798"></a><h3>[RPC|RAP] FILE</h3><div class="refsect3" lang="en"><a name="id324804"></a><h4>[RPC|RAP] FILE</h4><p>List all open files on remote server.</p></div><div class="refsect3" lang="en"><a name="id324813"></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="id324828"></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="id300718"></a><h4>[RAP|RPC] FILE USER</h4><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="id300730"></a><h3>SESSION</h3><div class="refsect3" lang="en"><a name="id300736"></a><h4>RAP SESSION</h4><p>Without any other options, SESSION enumerates all active SMB/CIFS
    94 sessions on the target server.</p></div><div class="refsect3" lang="en"><a name="id300746"></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="id300759"></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="id300773"></a><h3>RAP SERVER <em class="replaceable"><code>DOMAIN</code></em></h3><p>List all servers in specified domain or workgroup. Defaults
    95 to local domain.</p></div><div class="refsect2" lang="en"><a name="id300786"></a><h3>RAP DOMAIN</h3><p>Lists all domains and workgroups visible on the
    96 current network.</p></div><div class="refsect2" lang="en"><a name="id300797"></a><h3>RAP PRINTQ</h3><div class="refsect3" lang="en"><a name="id300802"></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.
     93</p></div><div class="refsect3" lang="en"><a name="id324844"></a><h4>[RAP|RPC] FILE USER <em class="replaceable"><code>user</code></em></h4><p>
     94List files opened by specified <em class="replaceable"><code>user</code></em>.
     95Please note that <code class="literal">net rap file user</code> does not work
     96against Samba servers.
     97</p></div></div><div class="refsect2" lang="en"><a name="id324865"></a><h3>SESSION</h3><div class="refsect3" lang="en"><a name="id324870"></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="id324881"></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="id324893"></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="id324906"></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="id324919"></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="id324929"></a><h3>RAP PRINTQ</h3><div class="refsect3" lang="en"><a name="id324934"></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.
    97101If the <em class="replaceable"><code>QUEUE_NAME</code></em> is omitted, all
    98 queues are listed.</p></div><div class="refsect3" lang="en"><a name="id300819"></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="id300833"></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="id324950"></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="id324963"></a><h3>RAP VALIDATE <em class="replaceable"><code>user</code></em> [<em class="replaceable"><code>password</code></em>]</h3><p>
    99103Validate whether the specified user can log in to the
    100104remote server. If the password is not specified on the commandline, it
    101105will be prompted.
    102 </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="id300856"></a><h3>RAP GROUPMEMBER</h3><div class="refsect3" lang="en"><a name="id300861"></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="id300874"></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="id300890"></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="id300907"></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="id324984"></a><h3>RAP GROUPMEMBER</h3><div class="refsect3" lang="en"><a name="id324990"></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="id325001"></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="id325016"></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="id325032"></a><h3>RAP ADMIN <em class="replaceable"><code>command</code></em></h3><p>Execute the specified <em class="replaceable"><code>command</code></em> on
    103107the remote server. Only works with OS/2 servers.
    104 </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="id300928"></a><h3>RAP SERVICE</h3><div class="refsect3" lang="en"><a name="id300934"></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="id300953"></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="id300969"></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="id325051"></a><h3>RAP SERVICE</h3><div class="refsect3" lang="en"><a name="id325057"></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="id325074"></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="id325089"></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>
    105109Change 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>.
    106 </p></div><div class="refsect2" lang="en"><a name="id301000"></a><h3>LOOKUP</h3><div class="refsect3" lang="en"><a name="id301005"></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="id325117"></a><h3>LOOKUP</h3><div class="refsect3" lang="en"><a name="id325122"></a><h4>LOOKUP HOST <em class="replaceable"><code>HOSTNAME</code></em> [<em class="replaceable"><code>TYPE</code></em>]</h4><p>
    107111Lookup the IP address of the given host with the specified type (netbios suffix).
    108112The type defaults to 0x20 (workstation).
    109 </p></div><div class="refsect3" lang="en"><a name="id301023"></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="id301040"></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>.
    110 Defaults to local realm.</p></div><div class="refsect3" lang="en"><a name="id301058"></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>
    111 DOMAIN</code></em>. Defaults to local domain.</p></div><div class="refsect3" lang="en"><a name="id301075"></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>
    112 or workgroup. Defaults to local domain.</p></div></div><div class="refsect2" lang="en"><a name="id301093"></a><h3>CACHE</h3><p>Samba uses a general caching interface called 'gencache'. It
     113</p></div><div class="refsect3" lang="en"><a name="id325140"></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="id325156"></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="id325172"></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="id325188"></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="id325204"></a><h3>CACHE</h3><p>Samba uses a general caching interface called 'gencache'. It
    113117can be controlled using 'NET CACHE'.</p><p>All the timeout parameters support the suffixes:
    114118
    115119</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>
    116120
    117 </p><div class="refsect3" lang="en"><a name="id301129"></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="id301149"></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="id301161"></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="id301181"></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="id301194"></a><h4>CACHE LIST</h4><p>
     121</p><div class="refsect3" lang="en"><a name="id325238"></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="id325256"></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="id325268"></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="id325286"></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="id325298"></a><h4>CACHE LIST</h4><p>
    118122List all current items in the cache.
    119 </p></div><div class="refsect3" lang="en"><a name="id301204"></a><h4>CACHE FLUSH</h4><p>Remove all the current items from the cache.</p></div></div><div class="refsect2" lang="en"><a name="id301215"></a><h3>GETLOCALSID [DOMAIN]</h3><p>Print the SID of the specified domain, or if the parameter is
    120 omitted, the SID of the domain the local server is in.</p></div><div class="refsect2" lang="en"><a name="id301226"></a><h3>SETLOCALSID S-1-5-21-x-y-z</h3><p>Sets domain sid for the local server to the specified SID.</p></div><div class="refsect2" lang="en"><a name="id301237"></a><h3>GROUPMAP</h3><p>Manage the mappings between Windows group SIDs and UNIX groups.
    121 Parameters take the for "parameter=value".  Common 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
     123</p></div><div class="refsect3" lang="en"><a name="id325308"></a><h4>CACHE FLUSH</h4><p>Remove all the current items from the cache.</p></div></div><div class="refsect2" lang="en"><a name="id325318"></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="id325329"></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="id325338"></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="id325349"></a><h3>SETDOMAINSID</h3><p>Sets the SID of the current domain.</p></div><div class="refsect2" lang="en"><a name="id325358"></a><h3>GROUPMAP</h3><p>Manage the mappings between Windows group SIDs and UNIX groups.
     126Common 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
    122127  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',
    123   or 'builtin'</p></li><li><p>comment - Freeform text description of the group</p></li></ul></div><div class="refsect3" lang="en"><a name="id301279"></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="id325398"></a><h4>GROUPMAP ADD</h4><p>
    124129Add a new group mapping entry:
    125130</p><pre class="programlisting">
    126131net groupmap add {rid=int|sid=string} unixgroup=string \
    127       [type={domain|local}] [ntgroup=string] [comment=string]
     132        [type={domain|local}] [ntgroup=string] [comment=string]
    128133</pre><p>
    129 </p></div><div class="refsect3" lang="en"><a name="id301296"></a><h4>GROUPMAP DELETE</h4><p>Delete a group mapping entry. If more then 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="id301310"></a><h4>GROUPMAP MODIFY</h4><p>Update en existing group entry</p><p>
     134</p></div><div class="refsect3" lang="en"><a name="id325414"></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="id325427"></a><h4>GROUPMAP MODIFY</h4><p>Update en existing group entry.</p><p>
    130135</p><pre class="programlisting">
    131136net groupmap modify {ntgroup=string|sid=SID} [unixgroup=string] \
    132137       [comment=string] [type={domain|local}]
    133138</pre><p>
    134 </p></div><div class="refsect3" lang="en"><a name="id301330"></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="id301345"></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="id325446"></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="id325460"></a><h3>MAXRID</h3><p>Prints out the highest RID currently in use on the local
    135140server (by the active 'passdb backend').
    136 </p></div><div class="refsect2" lang="en"><a name="id301356"></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="id325471"></a><h3>RPC INFO</h3><p>Print information about the domain of the remote server,
    137142such as domain name, domain sid and number of users and groups.
    138 </p></div><div class="refsect2" lang="en"><a name="id301367"></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="id301378"></a><h3>[RPC|ADS] CHANGETRUSTPW</h3><p>Force change of domain trust password.</p></div><div class="refsect2" lang="en"><a name="id301388"></a><h3>RPC TRUSTDOM</h3><div class="refsect3" lang="en"><a name="id301393"></a><h4>RPC TRUSTDOM ADD <em class="replaceable"><code>DOMAIN</code></em></h4><p>Add a interdomain trust account for
    139 <em class="replaceable"><code>DOMAIN</code></em> to the remote server.
    140 </p></div><div class="refsect3" lang="en"><a name="id301410"></a><h4>RPC TRUSTDOM DEL <em class="replaceable"><code>DOMAIM</code></em></h4><p>Remove interdomain trust account for
    141 <em class="replaceable"><code>DOMAIN</code></em> from the remote server.
    142 </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="id301431"></a><h4>RPC TRUSTDOM ESTABLISH <em class="replaceable"><code>DOMAIN</code></em></h4><p>
     143</p></div><div class="refsect2" lang="en"><a name="id325482"></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="id325491"></a><h3>[RPC|ADS] CHANGETRUSTPW</h3><p>Force change of domain trust password.</p></div><div class="refsect2" lang="en"><a name="id325501"></a><h3>RPC TRUSTDOM</h3><div class="refsect3" lang="en"><a name="id325506"></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>.
     144This is in fact a Samba account named <em class="replaceable"><code>DOMAIN$</code></em>
     145with the account flag <code class="constant">'I'</code> (interdomain trust account).
     146If the command is used against localhost it has the same effect as
     147<code class="literal">smbpasswd -a -i DOMAIN</code>. Please note that both commands
     148expect a appropriate UNIX account.
     149</p></div><div class="refsect3" lang="en"><a name="id325534"></a><h4>RPC TRUSTDOM DEL <em class="replaceable"><code>DOMAIN</code></em></h4><p>Remove interdomain trust account for
     150<em class="replaceable"><code>DOMAIN</code></em>. If it is used against localhost
     151it has the same effect as <code class="literal">smbpasswd -x DOMAIN$</code>.
     152</p></div><div class="refsect3" lang="en"><a name="id325555"></a><h4>RPC TRUSTDOM ESTABLISH <em class="replaceable"><code>DOMAIN</code></em></h4><p>
    143153Establish a trust relationship to a trusting domain.
    144154Interdomain account must already be created on the remote PDC.
    145 </p></div><div class="refsect3" lang="en"><a name="id301444"></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="id301457"></a><h4>RPC TRUSTDOM LIST</h4><p>List all current interdomain trust relationships.</p></div><div class="refsect3" lang="en"><a name="id301468"></a><h4>RPC RIGHTS</h4><p>This subcommand is used to view and manage Samba's rights assignments (also
    146 referred to as privileges).  There are three options current available:
     155</p></div><div class="refsect3" lang="en"><a name="id325568"></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="id325580"></a><h4>RPC TRUSTDOM LIST</h4><p>List all current interdomain trust relationships.</p></div><div class="refsect3" lang="en"><a name="id325589"></a><h4>RPC RIGHTS</h4><p>This subcommand is used to view and manage Samba's rights assignments (also
     156referred to as privileges).  There are three options currently available:
    147157<em class="parameter"><code>list</code></em>, <em class="parameter"><code>grant</code></em>, and
    148158<em class="parameter"><code>revoke</code></em>.  More details on Samba's privilege model and its use
    149 can be found in the Samba-HOWTO-Collection.</p></div></div><div class="refsect2" lang="en"><a name="id301498"></a><h3>RPC ABORTSHUTDOWN</h3><p>Abort the shutdown of a remote server.</p></div><div class="refsect2" lang="en"><a name="id301509"></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="id325618"></a><h3>RPC ABORTSHUTDOWN</h3><p>Abort the shutdown of a remote server.</p></div><div class="refsect2" lang="en"><a name="id325627"></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>
    150160Reboot after shutdown.
    151161</p></dd><dt><span class="term">-f</span></dt><dd><p>
     
    155165user of the system can use this time to cancel the shutdown.
    156166</p></dd><dt><span class="term">-C message</span></dt><dd><p>Display the specified message on the screen to
    157 announce the shutdown.</p></dd></dl></div></div><div class="refsect2" lang="en"><a name="id301568"></a><h3>RPC SAMDUMP</h3><p>Print out sam database of remote server. You need
    158 to run this against the PDC, from a Samba machine joined as a BDC. </p></div><div class="refsect2" lang="en"><a name="id301579"></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="id325685"></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="id325695"></a><h3>RPC VAMPIRE</h3><p>Export users, aliases and groups from remote server to
    159169local server.  You need to run this against the PDC, from a Samba machine joined as a BDC.
    160 </p></div><div class="refsect2" lang="en"><a name="id301591"></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="id301607"></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="id301617"></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="id325706"></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="id325721"></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="id325731"></a><h3>ADS STATUS</h3><p>Print out status of machine account of the local machine in ADS.
    161171Prints out quite some debug info. Aimed at developers, regular
    162 users should use <code class="literal">NET ADS TESTJOIN</code>.</p></div><div class="refsect2" lang="en"><a name="id301634"></a><h3>ADS PRINTER</h3><div class="refsect3" lang="en"><a name="id301640"></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="id325747"></a><h3>ADS PRINTER</h3><div class="refsect3" lang="en"><a name="id325752"></a><h4>ADS PRINTER INFO [<em class="replaceable"><code>PRINTER</code></em>] [<em class="replaceable"><code>SERVER</code></em>]</h4><p>
    163173Lookup info for <em class="replaceable"><code>PRINTER</code></em> on <em class="replaceable"><code>SERVER</code></em>. The printer name defaults to "*", the
    164 server name defaults to the local host.</p></div><div class="refsect3" lang="en"><a name="id301665"></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="id301677"></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="id301691"></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="id325775"></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="id325787"></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="id325800"></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
    165175expression is a standard LDAP search expression, and the
    166176attributes 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>
    167 </p></div><div class="refsect2" lang="en"><a name="id301718"></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="id325825"></a><h3>ADS DN <em class="replaceable"><code>DN</code></em> <em class="replaceable"><code>(attributes)</code></em></h3><p>
    168178Perform a raw LDAP search on a ADS server and dump the results. The
    169179DN standard LDAP DN, and the attributes are a list of LDAP fields
    170180to show in the result.
    171 </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="id301744"></a><h3>ADS WORKGROUP</h3><p>Print out workgroup name for specified kerberos realm.</p></div><div class="refsect2" lang="en"><a name="id301754"></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="id325849"></a><h3>ADS WORKGROUP</h3><p>Print out workgroup name for specified kerberos realm.</p></div><div class="refsect2" lang="en"><a name="id325859"></a><h3>SAM CREATEBUILTINGROUP &lt;NAME&gt;</h3><p>
    172182(Re)Create a BUILTIN group.
    173183Only a wellknown set of BUILTIN groups can be created with this command.
     
    175185Users, Guests, Power Users, Account Operators, Server Operators, Print
    176186Operators, Backup Operators, Replicator, RAS Servers, Pre-Windows 2000
    177 ompatible Access.
     187compatible Access.
    178188
    179189This command requires a running Winbindd with idmap allocation properly
    180190configured. The group gid will be allocated out of the winbindd range.
    181 </p></div><div class="refsect2" lang="en"><a name="id301768"></a><h3>SAM CREATELOCALGROUP &lt;NAME&gt;</h3><p>
     191</p></div><div class="refsect2" lang="en"><a name="id325873"></a><h3>SAM CREATELOCALGROUP &lt;NAME&gt;</h3><p>
    182192Create a LOCAL group (also known as Alias).
    183193
    184194This command requires a running Winbindd with idmap allocation properly
    185195configured. The group gid will be allocated out of the winbindd range.
    186 </p></div><div class="refsect2" lang="en"><a name="id301780"></a><h3>SAM DELETELOCALGROUP &lt;NAME&gt;</h3><p>
     196</p></div><div class="refsect2" lang="en"><a name="id325884"></a><h3>SAM DELETELOCALGROUP &lt;NAME&gt;</h3><p>
    187197Delete an existing LOCAL group (also known as Alias).
    188198
    189 </p></div><div class="refsect2" lang="en"><a name="id301791"></a><h3>SAM MAPUNIXGROUP &lt;NAME&gt;</h3><p>
     199</p></div><div class="refsect2" lang="en"><a name="id325894"></a><h3>SAM MAPUNIXGROUP &lt;NAME&gt;</h3><p>
    190200Map an existing Unix group and make it a Domain Group, the domain group
    191201will have the same name.
    192 </p></div><div class="refsect2" lang="en"><a name="id301802"></a><h3>SAM UNMAPUNIXGROUP &lt;NAME&gt;</h3><p>
     202</p></div><div class="refsect2" lang="en"><a name="id325905"></a><h3>SAM UNMAPUNIXGROUP &lt;NAME&gt;</h3><p>
    193203Remove an existing group mapping entry.
    194 </p></div><div class="refsect2" lang="en"><a name="id301813"></a><h3>SAM ADDMEM &lt;GROUP&gt; &lt;MEMBER&gt;</h3><p>
     204</p></div><div class="refsect2" lang="en"><a name="id325914"></a><h3>SAM ADDMEM &lt;GROUP&gt; &lt;MEMBER&gt;</h3><p>
    195205Add a member to a Local group. The group can be specified only by name,
    196206the member can be specified by name or SID.
    197 </p></div><div class="refsect2" lang="en"><a name="id301824"></a><h3>SAM DELMEM  &lt;GROUP&gt; &lt;MEMBER&gt;</h3><p>
     207</p></div><div class="refsect2" lang="en"><a name="id325926"></a><h3>SAM DELMEM  &lt;GROUP&gt; &lt;MEMBER&gt;</h3><p>
    198208Remove a member from a Local group. The group and the member must be
    199209specified by name.
    200 </p></div><div class="refsect2" lang="en"><a name="id301835"></a><h3>SAM LISTMEM &lt;GROUP&gt;</h3><p>
     210</p></div><div class="refsect2" lang="en"><a name="id325937"></a><h3>SAM LISTMEM &lt;GROUP&gt;</h3><p>
    201211List Local group members. The group must be specified by name.
    202 </p></div><div class="refsect2" lang="en"><a name="id301846"></a><h3>SAM LIST &lt;users|groups|localgroups|builtin|workstations&gt; [verbose]</h3><p>
     212</p></div><div class="refsect2" lang="en"><a name="id325947"></a><h3>SAM LIST &lt;users|groups|localgroups|builtin|workstations&gt; [verbose]</h3><p>
    203213List the specified set of accounts by name. If verbose is specified,
    204214the rid and description is also provided for each account.
    205 </p></div><div class="refsect2" lang="en"><a name="id301858"></a><h3>SAM SHOW &lt;NAME&gt;</h3><p>
    206 Show the full DOMAIN\\NAME the SID and the type for the corrisponding
     215</p></div><div class="refsect2" lang="en"><a name="id325959"></a><h3>SAM SHOW &lt;NAME&gt;</h3><p>
     216Show the full DOMAIN\\NAME the SID and the type for the corresponding
    207217account.
    208 </p></div><div class="refsect2" lang="en"><a name="id301868"></a><h3>SAM SET HOMEDIR &lt;NAME&gt; &lt;DIRECTORY&gt;</h3><p>
     218</p></div><div class="refsect2" lang="en"><a name="id325970"></a><h3>SAM SET HOMEDIR &lt;NAME&gt; &lt;DIRECTORY&gt;</h3><p>
    209219Set the home directory for a user account.
    210 </p></div><div class="refsect2" lang="en"><a name="id301879"></a><h3>SAM SET PROFILEPATH &lt;NAME&gt; &lt;PATH&gt;</h3><p>
     220</p></div><div class="refsect2" lang="en"><a name="id325979"></a><h3>SAM SET PROFILEPATH &lt;NAME&gt; &lt;PATH&gt;</h3><p>
    211221Set the profile path for a user account.
    212 </p></div><div class="refsect2" lang="en"><a name="id301890"></a><h3>SAM SET COMMENT &lt;NAME&gt; &lt;COMMENT&gt;</h3><p>
     222</p></div><div class="refsect2" lang="en"><a name="id325989"></a><h3>SAM SET COMMENT &lt;NAME&gt; &lt;COMMENT&gt;</h3><p>
    213223Set the comment for a user or group account.
    214 </p></div><div class="refsect2" lang="en"><a name="id301900"></a><h3>SAM SET FULLNAME &lt;NAME&gt; &lt;FULL NAME&gt;</h3><p>
     224</p></div><div class="refsect2" lang="en"><a name="id325998"></a><h3>SAM SET FULLNAME &lt;NAME&gt; &lt;FULL NAME&gt;</h3><p>
    215225Set the full name for a user account.
    216 </p></div><div class="refsect2" lang="en"><a name="id301911"></a><h3>SAM SET LOGONSCRIPT &lt;NAME&gt; &lt;SCRIPT&gt;</h3><p>
     226</p></div><div class="refsect2" lang="en"><a name="id326008"></a><h3>SAM SET LOGONSCRIPT &lt;NAME&gt; &lt;SCRIPT&gt;</h3><p>
    217227Set the logon script for a user account.
    218 </p></div><div class="refsect2" lang="en"><a name="id301921"></a><h3>SAM SET HOMEDRIVE &lt;NAME&gt; &lt;DRIVE&gt;</h3><p>
     228</p></div><div class="refsect2" lang="en"><a name="id326018"></a><h3>SAM SET HOMEDRIVE &lt;NAME&gt; &lt;DRIVE&gt;</h3><p>
    219229Set the home drive for a user account.
    220 </p></div><div class="refsect2" lang="en"><a name="id301932"></a><h3>SAM SET WORKSTATIONS &lt;NAME&gt; &lt;WORKSTATIONS&gt;</h3><p>
     230</p></div><div class="refsect2" lang="en"><a name="id326027"></a><h3>SAM SET WORKSTATIONS &lt;NAME&gt; &lt;WORKSTATIONS&gt;</h3><p>
    221231Set the workstations a user account is allowed to log in from.
    222 </p></div><div class="refsect2" lang="en"><a name="id301943"></a><h3>SAM SET DISABLE &lt;NAME&gt;</h3><p>
     232</p></div><div class="refsect2" lang="en"><a name="id326037"></a><h3>SAM SET DISABLE &lt;NAME&gt;</h3><p>
    223233Set the "disabled" flag for a user account.
    224 </p></div><div class="refsect2" lang="en"><a name="id301953"></a><h3>SAM SET PWNOTREQ &lt;NAME&gt;</h3><p>
     234</p></div><div class="refsect2" lang="en"><a name="id326047"></a><h3>SAM SET PWNOTREQ &lt;NAME&gt;</h3><p>
    225235Set the "password not required" flag for a user account.
    226 </p></div><div class="refsect2" lang="en"><a name="id301964"></a><h3>SAM SET AUTOLOCK &lt;NAME&gt;</h3><p>
     236</p></div><div class="refsect2" lang="en"><a name="id326057"></a><h3>SAM SET AUTOLOCK &lt;NAME&gt;</h3><p>
    227237Set the "autolock" flag for a user account.
    228 </p></div><div class="refsect2" lang="en"><a name="id301974"></a><h3>SAM SET PWNOEXP &lt;NAME&gt;</h3><p>
     238</p></div><div class="refsect2" lang="en"><a name="id326067"></a><h3>SAM SET PWNOEXP &lt;NAME&gt;</h3><p>
    229239Set the "password do not expire" flag for a user account.
    230 </p></div><div class="refsect2" lang="en"><a name="id301985"></a><h3>SAM SET PWMUSTCHANGENOW &lt;NAME&gt; [yes|no]</h3><p>
    231 Set or unset the "password must change" flag fro a user account.
    232 </p></div><div class="refsect2" lang="en"><a name="id301996"></a><h3>SAM POLICY LIST</h3><p>
    233 List the avilable account policies.
    234 </p></div><div class="refsect2" lang="en"><a name="id302006"></a><h3>SAM POLICY SHOW &lt;account policy&gt;</h3><p>
     240</p></div><div class="refsect2" lang="en"><a name="id326077"></a><h3>SAM SET PWDMUSTCHANGENOW &lt;NAME&gt; [yes|no]</h3><p>
     241Set or unset the "password must change" flag for a user account.
     242</p></div><div class="refsect2" lang="en"><a name="id326087"></a><h3>SAM POLICY LIST</h3><p>
     243List the available account policies.
     244</p></div><div class="refsect2" lang="en"><a name="id326097"></a><h3>SAM POLICY SHOW &lt;account policy&gt;</h3><p>
    235245Show the account policy value.
    236 </p></div><div class="refsect2" lang="en"><a name="id302016"></a><h3>SAM POLICY SET &lt;account policy&gt; &lt;value&gt;</h3><p>
     246</p></div><div class="refsect2" lang="en"><a name="id326107"></a><h3>SAM POLICY SET &lt;account policy&gt; &lt;value&gt;</h3><p>
    237247Set a value for the account policy.
    238248Valid values can be: "forever", "never", "off", or a number.
    239 </p></div><div class="refsect2" lang="en"><a name="id302028"></a><h3>SAM PROVISION</h3><p>
     249</p></div><div class="refsect2" lang="en"><a name="id326118"></a><h3>SAM PROVISION</h3><p>
    240250Only available if ldapsam:editposix is set and winbindd is running.
    241251Properly populates the ldap tree with the basic accounts (Administrator)
    242252and groups (Domain Users, Domain Admins, Domain Guests) on the ldap tree.
    243 </p></div><div class="refsect2" lang="en"><a name="id302040"></a><h3>IDMAP DUMP &lt;output file&gt;</h3><p>
    244 Dumps the mappings in the specified output file.
    245 </p></div><div class="refsect2" lang="en"><a name="id302050"></a><h3>IDMAP RESTORE [input file]</h3><p>
     253</p></div><div class="refsect2" lang="en"><a name="id326130"></a><h3>IDMAP DUMP &lt;local tdb file name&gt;</h3><p>
     254Dumps the mappings contained in the local tdb file specified.
     255This command is useful to dump only the mappings produced by the idmap_tdb backend.
     256</p></div><div class="refsect2" lang="en"><a name="id326141"></a><h3>IDMAP RESTORE [input file]</h3><p>
    246257Restore the mappings from the specified file or stdin.
    247 </p></div><div class="refsect2" lang="en"><a name="id302061"></a><h3>IDMAP SECRET &lt;DOMAIN&gt;|ALLOC &lt;secret&gt;</h3><p>
    248 Store a secret for the sepcified domain, used primarily for domains
     258</p></div><div class="refsect2" lang="en"><a name="id326152"></a><h3>IDMAP SECRET &lt;DOMAIN&gt;|ALLOC &lt;secret&gt;</h3><p>
     259Store a secret for the specified domain, used primarily for domains
    249260that use idmap_ldap as a backend. In this case the secret is used
    250261as the password for the user DN used to bind to the ldap server.
    251 </p></div><div class="refsect2" lang="en"><a name="id302073"></a><h3>USERSHARE</h3><p>Starting with version 3.0.23, a Samba server now supports the ability for
    252 non-root users to add user define shares to be exported using the "net usershare"
     262</p></div><div class="refsect2" lang="en"><a name="id326164"></a><h3>USERSHARE</h3><p>Starting with version 3.0.23, a Samba server now supports the ability for
     263non-root users to add user defined shares to be exported using the "net usershare"
    253264commands.
    254265</p><p>
    255 To set this up, first set up your smb.conf by adding to the [global] section :
     266To set this up, first set up your smb.conf by adding to the [global] section:
    256267
    257268usershare path = /usr/local/samba/lib/usershares
     
    278289</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>
    279290
    280 </p><div class="refsect3" lang="en"><a name="id302119"></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="id326209"></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>
    281292Add or replace a new user defined share, with name "sharename".
    282293</p><p>
    283294"path" specifies the absolute pathname on the system to be exported.
    284 Restrictions may be put on this, see the global smb.conf parameters :
     295Restrictions may be put on this, see the global smb.conf parameters:
    285296"usershare owner only", "usershare prefix allow list", and
    286297"usershare prefix deny list".
     
    292303Note that guest connections are not allowed unless the smb.conf parameter
    293304"usershare allow guests" has been set. The definition of a user
    294 defined share acl is : "user:permission", where user is a valid
     305defined share acl is: "user:permission", where user is a valid
    295306username on the system and permission can be "F", "R", or "D".
    296307"F" stands for "full permissions", ie. read and write permissions.
     
    315326at connect time so will see the change immediately, there is no need
    316327to restart smbd on adding, deleting or changing a user defined share.
    317 </div><div class="refsect3" lang="en"><a name="id302183"></a><h4>USERSHARE DELETE <em class="replaceable"><code>sharename</code></em></h4><p>
     328</div><div class="refsect3" lang="en"><a name="id326266"></a><h4>USERSHARE DELETE <em class="replaceable"><code>sharename</code></em></h4><p>
    318329Deletes the user defined share by name. The Samba smbd daemon
    319330immediately notices this change, although it will not disconnect
    320331any users currently connected to the deleted share.
    321 </p></div><div class="refsect3" lang="en"><a name="id302197"></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="id326279"></a><h4>USERSHARE INFO <em class="replaceable"><code>[-l|--long]</code></em> <em class="replaceable"><code>[wildcard sharename]</code></em></h4><p>
    322333Get info on user defined shares owned by the current user matching the given pattern, or all users.
    323334</p><p>
     
    328339shares created by other users.
    329340</p><p>
    330 The information given about a share looks like :
     341The information given about a share looks like:
    331342
    332343[foobar]
     
    338349And is a list of the current settings of the user defined share that can be
    339350modified by the "net usershare add" command.
    340 </p></div><div class="refsect3" lang="en"><a name="id302225"></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="id326307"></a><h4>USERSHARE LIST <em class="replaceable"><code>[-l|--long]</code></em> <em class="replaceable"><code>wildcard sharename</code></em></h4><p>
    341352List all the user defined shares owned by the current user matching the given pattern, or all users.
    342353</p><p>
     
    346357If the '-l' or '--long' option is also given, it includes the names of user defined
    347358shares created by other users.
    348 </p></div></div><div class="refsect2" lang="en"><a name="id302250"></a><h3>HELP [COMMAND]</h3><p>Gives usage information for the specified command.</p></div></div><div class="refsect1" lang="en"><a name="id302261"></a><h2>VERSION</h2><p>This man page is complete for version 3.0 of the Samba
    349         suite.</p></div><div class="refsect1" lang="en"><a name="id302272"></a><h2>AUTHOR</h2><p>The original Samba software and related utilities
     359</p></div></div><div class="refsect2" lang="en"><a name="id326334"></a><h3>HELP [COMMAND]</h3><p>Gives usage information for the specified command.</p></div></div><div class="refsect1" lang="en"><a name="id326344"></a><h2>VERSION</h2><p>This man page is complete for version 3.0 of the Samba
     360        suite.</p></div><div class="refsect1" lang="en"><a name="id326354"></a><h2>AUTHOR</h2><p>The original Samba software and related utilities
    350361        were created by Andrew Tridgell. Samba is now developed
    351362        by the Samba Team as an Open Source project similar
Note: See TracChangeset for help on using the changeset viewer.