Changeset 739 for branches/samba-3.5.x/docs/htmldocs/manpages/net.8.html
- Timestamp:
- Nov 12, 2012, 7:37:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/docs/htmldocs/manpages/net.8.html
r599 r739 1 1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>net</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" title="net"><a name="net.8"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>net — Tool for administration of Samba and remote 2 2 CIFS servers. 3 </p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="literal">net</code> {<ads|rap|rpc>} [-h] [-w workgroup] [-W myworkgroup] [-U user] [-I ip-address] [-p port] [-n myname] [-s conffile] [-S server] [-l] [-P] [-d debuglevel] [-V] [--request-timeout seconds]</p></div></div><div class="refsect1" title="DESCRIPTION"><a name="id2 65711"></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 utility3 </p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="literal">net</code> {<ads|rap|rpc>} [-h] [-w workgroup] [-W myworkgroup] [-U user] [-I ip-address] [-p port] [-n myname] [-s conffile] [-S server] [-l] [-P] [-d debuglevel] [-V] [--request-timeout seconds]</p></div></div><div class="refsect1" title="DESCRIPTION"><a name="id294873"></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 4 4 available for windows and DOS. The first argument should be used 5 5 to specify the protocol to use when executing a certain command. … … 8 8 argument is omitted, net will try to determine it automatically. 9 9 Not all commands are available on all protocols. 10 </p></div><div class="refsect1" title="OPTIONS"><a name="id2 65737"></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" title="OPTIONS"><a name="id290238"></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. 11 11 </p></dd><dt><span class="term">-w target-workgroup</span></dt><dd><p> 12 12 Sets target workgroup or domain. You have to specify … … 58 58 data, most of which is extremely cryptic.</p><p>Note that specifying this parameter here will 59 59 override the <a class="link" href="smb.conf.5.html#" target="_top"></a> parameter 60 in the <code class="filename">smb.conf</code> file.</p></dd></dl></div></div><div class="refsect1" title="COMMANDS"><a name="id30 7116"></a><h2>COMMANDS</h2><div class="refsect2" title="CHANGESECRETPW"><a name="id307121"></a><h3>CHANGESECRETPW</h3><p>This command allows the Samba machine account password to be set from an external application60 in the <code class="filename">smb.conf</code> file.</p></dd></dl></div></div><div class="refsect1" title="COMMANDS"><a name="id304274"></a><h2>COMMANDS</h2><div class="refsect2" title="CHANGESECRETPW"><a name="id304894"></a><h3>CHANGESECRETPW</h3><p>This command allows the Samba machine account password to be set from an external application 61 61 to a machine account password that has already been stored in Active Directory. DO NOT USE this command 62 62 unless you know exactly what you are doing. The use of this command requires that the force flag (-f) … … 65 65 this without care and attention as it will overwrite a legitimate machine password without warning. 66 66 YOU HAVE BEEN WARNED. 67 </p></div><div class="refsect2" title="TIME"><a name="id 307136"></a><h3>TIME</h3><p>The <code class="literal">NET TIME</code> command allows you to view the time on a remote server68 or synchronise the time on the local server with the time on the remote server.</p><div class="refsect3" title="TIME"><a name="id 307151"></a><h4>TIME</h4><p>Without any options, the <code class="literal">NET TIME</code> command67 </p></div><div class="refsect2" title="TIME"><a name="id293681"></a><h3>TIME</h3><p>The <code class="literal">NET TIME</code> command allows you to view the time on a remote server 68 or synchronise the time on the local server with the time on the remote server.</p><div class="refsect3" title="TIME"><a name="id286431"></a><h4>TIME</h4><p>Without any options, the <code class="literal">NET TIME</code> command 69 69 displays the time on the remote server. 70 </p></div><div class="refsect3" title="TIME SYSTEM"><a name="id 307166"></a><h4>TIME SYSTEM</h4><p>Displays the time on the remote server in a format ready for <code class="literal">/bin/date</code>.</p></div><div class="refsect3" title="TIME SET"><a name="id307181"></a><h4>TIME SET</h4><p>Tries to set the date and time of the local server to that on71 the remote server using <code class="literal">/bin/date</code>. </p></div><div class="refsect3" title="TIME ZONE"><a name="id30 7196"></a><h4>TIME ZONE</h4><p>Displays the timezone in hours from GMT on the remote computer.</p></div></div><div class="refsect2" title="[RPC|ADS] JOIN [TYPE] [-U username[%password]] [createupn=UPN] [createcomputer=OU] [options]"><a name="id307206"></a><h3>[RPC|ADS] JOIN [TYPE] [-U username[%password]] [createupn=UPN] [createcomputer=OU] [options]</h3><p>70 </p></div><div class="refsect3" title="TIME SYSTEM"><a name="id296962"></a><h4>TIME SYSTEM</h4><p>Displays the time on the remote server in a format ready for <code class="literal">/bin/date</code>.</p></div><div class="refsect3" title="TIME SET"><a name="id281276"></a><h4>TIME SET</h4><p>Tries to set the date and time of the local server to that on 71 the remote server using <code class="literal">/bin/date</code>. </p></div><div class="refsect3" title="TIME ZONE"><a name="id300954"></a><h4>TIME ZONE</h4><p>Displays the timezone in hours from GMT on the remote computer.</p></div></div><div class="refsect2" title="[RPC|ADS] JOIN [TYPE] [-U username[%password]] [createupn=UPN] [createcomputer=OU] [options]"><a name="id294266"></a><h3>[RPC|ADS] JOIN [TYPE] [-U username[%password]] [createupn=UPN] [createcomputer=OU] [options]</h3><p> 72 72 Join a domain. If the account already exists on the server, and 73 73 [TYPE] is MEMBER, the machine will attempt to join automatically. … … 86 86 and ldap, so it may need to be doubled or quadrupled to pass through, 87 87 and it is not used as a delimiter. 88 </p></div><div class="refsect2" title="[RPC] OLDJOIN [options]"><a name="id 307233"></a><h3>[RPC] OLDJOIN [options]</h3><p>Join a domain. Use the OLDJOIN option to join the domain88 </p></div><div class="refsect2" title="[RPC] OLDJOIN [options]"><a name="id289719"></a><h3>[RPC] OLDJOIN [options]</h3><p>Join a domain. Use the OLDJOIN option to join the domain 89 89 using the old style of domain joining - you need to create a trust 90 account in server manager first.</p></div><div class="refsect2" title="[RPC|ADS] USER"><a name="id30 7244"></a><h3>[RPC|ADS] USER</h3><div class="refsect3" title="[RPC|ADS] USER"><a name="id307250"></a><h4>[RPC|ADS] USER</h4><p>List all users</p></div><div class="refsect3" title="[RPC|ADS] USER DELETE target"><a name="id307259"></a><h4>[RPC|ADS] USER DELETE <em class="replaceable"><code>target</code></em></h4><p>Delete specified user</p></div><div class="refsect3" title="[RPC|ADS] USER INFO target"><a name="id307271"></a><h4>[RPC|ADS] USER INFO <em class="replaceable"><code>target</code></em></h4><p>List the domain groups of the specified user.</p></div><div class="refsect3" title="[RPC|ADS] USER RENAME oldname newname"><a name="id307283"></a><h4>[RPC|ADS] USER RENAME <em class="replaceable"><code>oldname</code></em> <em class="replaceable"><code>newname</code></em></h4><p>Rename specified user.</p></div><div class="refsect3" title="[RPC|ADS] USER ADD name [password] [-F user flags] [-C comment]"><a name="id307298"></a><h4>[RPC|ADS] USER ADD <em class="replaceable"><code>name</code></em> [password] [-F user flags] [-C comment]</h4><p>Add specified user.</p></div></div><div class="refsect2" title="[RPC|ADS] GROUP"><a name="id307312"></a><h3>[RPC|ADS] GROUP</h3><div class="refsect3" title="[RPC|ADS] GROUP [misc options] [targets]"><a name="id307317"></a><h4>[RPC|ADS] GROUP [misc options] [targets]</h4><p>List user groups.</p></div><div class="refsect3" title="[RPC|ADS] GROUP DELETE name [misc. options]"><a name="id307327"></a><h4>[RPC|ADS] GROUP DELETE <em class="replaceable"><code>name</code></em> [misc. options]</h4><p>Delete specified group.</p></div><div class="refsect3" title="[RPC|ADS] GROUP ADD name [-C comment]"><a name="id307339"></a><h4>[RPC|ADS] GROUP ADD <em class="replaceable"><code>name</code></em> [-C comment]</h4><p>Create specified group.</p></div></div><div class="refsect2" title="[RAP|RPC] SHARE"><a name="id307353"></a><h3>[RAP|RPC] SHARE</h3><div class="refsect3" title="[RAP|RPC] SHARE [misc. options] [targets]"><a name="id307359"></a><h4>[RAP|RPC] SHARE [misc. options] [targets]</h4><p>Enumerates all exported resources (network shares) on target server.</p></div><div class="refsect3" title="[RAP|RPC] SHARE ADD name=serverpath [-C comment] [-M maxusers] [targets]"><a name="id307368"></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). Maxusers90 account in server manager first.</p></div><div class="refsect2" title="[RPC|ADS] USER"><a name="id305014"></a><h3>[RPC|ADS] USER</h3><div class="refsect3" title="[RPC|ADS] USER"><a name="id293570"></a><h4>[RPC|ADS] USER</h4><p>List all users</p></div><div class="refsect3" title="[RPC|ADS] USER DELETE target"><a name="id290187"></a><h4>[RPC|ADS] USER DELETE <em class="replaceable"><code>target</code></em></h4><p>Delete specified user</p></div><div class="refsect3" title="[RPC|ADS] USER INFO target"><a name="id287090"></a><h4>[RPC|ADS] USER INFO <em class="replaceable"><code>target</code></em></h4><p>List the domain groups of the specified user.</p></div><div class="refsect3" title="[RPC|ADS] USER RENAME oldname newname"><a name="id302083"></a><h4>[RPC|ADS] USER RENAME <em class="replaceable"><code>oldname</code></em> <em class="replaceable"><code>newname</code></em></h4><p>Rename specified user.</p></div><div class="refsect3" title="[RPC|ADS] USER ADD name [password] [-F user flags] [-C comment]"><a name="id297655"></a><h4>[RPC|ADS] USER ADD <em class="replaceable"><code>name</code></em> [password] [-F user flags] [-C comment]</h4><p>Add specified user.</p></div></div><div class="refsect2" title="[RPC|ADS] GROUP"><a name="id278721"></a><h3>[RPC|ADS] GROUP</h3><div class="refsect3" title="[RPC|ADS] GROUP [misc options] [targets]"><a name="id297339"></a><h4>[RPC|ADS] GROUP [misc options] [targets]</h4><p>List user groups.</p></div><div class="refsect3" title="[RPC|ADS] GROUP DELETE name [misc. options]"><a name="id294686"></a><h4>[RPC|ADS] GROUP DELETE <em class="replaceable"><code>name</code></em> [misc. options]</h4><p>Delete specified group.</p></div><div class="refsect3" title="[RPC|ADS] GROUP ADD name [-C comment]"><a name="id293741"></a><h4>[RPC|ADS] GROUP ADD <em class="replaceable"><code>name</code></em> [-C comment]</h4><p>Create specified group.</p></div></div><div class="refsect2" title="[RAP|RPC] SHARE"><a name="id287808"></a><h3>[RAP|RPC] SHARE</h3><div class="refsect3" title="[RAP|RPC] SHARE [misc. options] [targets]"><a name="id301511"></a><h4>[RAP|RPC] SHARE [misc. options] [targets]</h4><p>Enumerates all exported resources (network shares) on target server.</p></div><div class="refsect3" title="[RAP|RPC] SHARE ADD name=serverpath [-C comment] [-M maxusers] [targets]"><a name="id297783"></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 91 91 specifies the number of users that can be connected to the 92 share simultaneously.</p></div><div class="refsect3" title="SHARE DELETE sharename"><a name="id 307382"></a><h4>SHARE DELETE <em class="replaceable"><code>sharename</code></em></h4><p>Delete specified share.</p></div></div><div class="refsect2" title="[RPC|RAP] FILE"><a name="id307395"></a><h3>[RPC|RAP] FILE</h3><div class="refsect3" title="[RPC|RAP] FILE"><a name="id307400"></a><h4>[RPC|RAP] FILE</h4><p>List all open files on remote server.</p></div><div class="refsect3" title="[RPC|RAP] FILE CLOSE fileid"><a name="id307410"></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> on93 remote server.</p></div><div class="refsect3" title="[RPC|RAP] FILE INFO fileid"><a name="id 307425"></a><h4>[RPC|RAP] FILE INFO <em class="replaceable"><code>fileid</code></em></h4><p>92 share simultaneously.</p></div><div class="refsect3" title="SHARE DELETE sharename"><a name="id298810"></a><h4>SHARE DELETE <em class="replaceable"><code>sharename</code></em></h4><p>Delete specified share.</p></div></div><div class="refsect2" title="[RPC|RAP] FILE"><a name="id298824"></a><h3>[RPC|RAP] FILE</h3><div class="refsect3" title="[RPC|RAP] FILE"><a name="id298829"></a><h4>[RPC|RAP] FILE</h4><p>List all open files on remote server.</p></div><div class="refsect3" title="[RPC|RAP] FILE CLOSE fileid"><a name="id266216"></a><h4>[RPC|RAP] FILE CLOSE <em class="replaceable"><code>fileid</code></em></h4><p>Close file with specified <em class="replaceable"><code>fileid</code></em> on 93 remote server.</p></div><div class="refsect3" title="[RPC|RAP] FILE INFO fileid"><a name="id266232"></a><h4>[RPC|RAP] FILE INFO <em class="replaceable"><code>fileid</code></em></h4><p> 94 94 Print information on specified <em class="replaceable"><code>fileid</code></em>. 95 95 Currently listed are: file-id, username, locks, path, permissions. 96 </p></div><div class="refsect3" title="[RAP|RPC] FILE USER user"><a name="id 307440"></a><h4>[RAP|RPC] FILE USER <em class="replaceable"><code>user</code></em></h4><p>96 </p></div><div class="refsect3" title="[RAP|RPC] FILE USER user"><a name="id266249"></a><h4>[RAP|RPC] FILE USER <em class="replaceable"><code>user</code></em></h4><p> 97 97 List files opened by specified <em class="replaceable"><code>user</code></em>. 98 98 Please note that <code class="literal">net rap file user</code> does not work 99 99 against Samba servers. 100 </p></div></div><div class="refsect2" title="SESSION"><a name="id 307461"></a><h3>SESSION</h3><div class="refsect3" title="RAP SESSION"><a name="id307466"></a><h4>RAP SESSION</h4><p>Without any other options, SESSION enumerates all active SMB/CIFS101 sessions on the target server.</p></div><div class="refsect3" title="RAP SESSION DELETE|CLOSE CLIENT_NAME"><a name="id 307477"></a><h4>RAP SESSION DELETE|CLOSE <em class="replaceable"><code>CLIENT_NAME</code></em></h4><p>Close the specified sessions.</p></div><div class="refsect3" title="RAP SESSION INFO CLIENT_NAME"><a name="id307489"></a><h4>RAP SESSION INFO <em class="replaceable"><code>CLIENT_NAME</code></em></h4><p>Give a list with all the open files in specified session.</p></div></div><div class="refsect2" title="RAP SERVER DOMAIN"><a name="id307502"></a><h3>RAP SERVER <em class="replaceable"><code>DOMAIN</code></em></h3><p>List all servers in specified domain or workgroup. Defaults102 to local domain.</p></div><div class="refsect2" title="RAP DOMAIN"><a name="id 307514"></a><h3>RAP DOMAIN</h3><p>Lists all domains and workgroups visible on the103 current network.</p></div><div class="refsect2" title="RAP PRINTQ"><a name="id 307524"></a><h3>RAP PRINTQ</h3><div class="refsect3" title="RAP PRINTQ INFO QUEUE_NAME"><a name="id307529"></a><h4>RAP PRINTQ INFO <em class="replaceable"><code>QUEUE_NAME</code></em></h4><p>Lists the specified print queue and print jobs on the server.100 </p></div></div><div class="refsect2" title="SESSION"><a name="id266272"></a><h3>SESSION</h3><div class="refsect3" title="RAP SESSION"><a name="id266278"></a><h4>RAP SESSION</h4><p>Without any other options, SESSION enumerates all active SMB/CIFS 101 sessions on the target server.</p></div><div class="refsect3" title="RAP SESSION DELETE|CLOSE CLIENT_NAME"><a name="id266289"></a><h4>RAP SESSION DELETE|CLOSE <em class="replaceable"><code>CLIENT_NAME</code></em></h4><p>Close the specified sessions.</p></div><div class="refsect3" title="RAP SESSION INFO CLIENT_NAME"><a name="id266301"></a><h4>RAP SESSION INFO <em class="replaceable"><code>CLIENT_NAME</code></em></h4><p>Give a list with all the open files in specified session.</p></div></div><div class="refsect2" title="RAP SERVER DOMAIN"><a name="id266315"></a><h3>RAP SERVER <em class="replaceable"><code>DOMAIN</code></em></h3><p>List all servers in specified domain or workgroup. Defaults 102 to local domain.</p></div><div class="refsect2" title="RAP DOMAIN"><a name="id266328"></a><h3>RAP DOMAIN</h3><p>Lists all domains and workgroups visible on the 103 current network.</p></div><div class="refsect2" title="RAP PRINTQ"><a name="id266338"></a><h3>RAP PRINTQ</h3><div class="refsect3" title="RAP PRINTQ INFO QUEUE_NAME"><a name="id266343"></a><h4>RAP PRINTQ INFO <em class="replaceable"><code>QUEUE_NAME</code></em></h4><p>Lists the specified print queue and print jobs on the server. 104 104 If the <em class="replaceable"><code>QUEUE_NAME</code></em> is omitted, all 105 queues are listed.</p></div><div class="refsect3" title="RAP PRINTQ DELETE JOBID"><a name="id 307545"></a><h4>RAP PRINTQ DELETE <em class="replaceable"><code>JOBID</code></em></h4><p>Delete job with specified id.</p></div></div><div class="refsect2" title="RAP VALIDATE user [password]"><a name="id307557"></a><h3>RAP VALIDATE <em class="replaceable"><code>user</code></em> [<em class="replaceable"><code>password</code></em>]</h3><p>105 queues are listed.</p></div><div class="refsect3" title="RAP PRINTQ DELETE JOBID"><a name="id266359"></a><h4>RAP PRINTQ DELETE <em class="replaceable"><code>JOBID</code></em></h4><p>Delete job with specified id.</p></div></div><div class="refsect2" title="RAP VALIDATE user [password]"><a name="id266373"></a><h3>RAP VALIDATE <em class="replaceable"><code>user</code></em> [<em class="replaceable"><code>password</code></em>]</h3><p> 106 106 Validate whether the specified user can log in to the 107 107 remote server. If the password is not specified on the commandline, it 108 108 will be prompted. 109 </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Currently NOT implemented.</p></div></div><div class="refsect2" title="RAP GROUPMEMBER"><a name="id 307579"></a><h3>RAP GROUPMEMBER</h3><div class="refsect3" title="RAP GROUPMEMBER LIST GROUP"><a name="id307584"></a><h4>RAP GROUPMEMBER LIST <em class="replaceable"><code>GROUP</code></em></h4><p>List all members of the specified group.</p></div><div class="refsect3" title="RAP GROUPMEMBER DELETE GROUP USER"><a name="id307596"></a><h4>RAP GROUPMEMBER DELETE <em class="replaceable"><code>GROUP</code></em> <em class="replaceable"><code>USER</code></em></h4><p>Delete member from group.</p></div><div class="refsect3" title="RAP GROUPMEMBER ADD GROUP USER"><a name="id307611"></a><h4>RAP GROUPMEMBER ADD <em class="replaceable"><code>GROUP</code></em> <em class="replaceable"><code>USER</code></em></h4><p>Add member to group.</p></div></div><div class="refsect2" title="RAP ADMIN command"><a name="id307627"></a><h3>RAP ADMIN <em class="replaceable"><code>command</code></em></h3><p>Execute the specified <em class="replaceable"><code>command</code></em> on109 </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Currently NOT implemented.</p></div></div><div class="refsect2" title="RAP GROUPMEMBER"><a name="id266396"></a><h3>RAP GROUPMEMBER</h3><div class="refsect3" title="RAP GROUPMEMBER LIST GROUP"><a name="id266402"></a><h4>RAP GROUPMEMBER LIST <em class="replaceable"><code>GROUP</code></em></h4><p>List all members of the specified group.</p></div><div class="refsect3" title="RAP GROUPMEMBER DELETE GROUP USER"><a name="id266414"></a><h4>RAP GROUPMEMBER DELETE <em class="replaceable"><code>GROUP</code></em> <em class="replaceable"><code>USER</code></em></h4><p>Delete member from group.</p></div><div class="refsect3" title="RAP GROUPMEMBER ADD GROUP USER"><a name="id266430"></a><h4>RAP GROUPMEMBER ADD <em class="replaceable"><code>GROUP</code></em> <em class="replaceable"><code>USER</code></em></h4><p>Add member to group.</p></div></div><div class="refsect2" title="RAP ADMIN command"><a name="id266447"></a><h3>RAP ADMIN <em class="replaceable"><code>command</code></em></h3><p>Execute the specified <em class="replaceable"><code>command</code></em> on 110 110 the remote server. Only works with OS/2 servers. 111 </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Currently NOT implemented.</p></div></div><div class="refsect2" title="RAP SERVICE"><a name="id 307646"></a><h3>RAP SERVICE</h3><div class="refsect3" title="RAP SERVICE START NAME [arguments...]"><a name="id307652"></a><h4>RAP SERVICE START <em class="replaceable"><code>NAME</code></em> [arguments...]</h4><p>Start the specified service on the remote server. Not implemented yet.</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Currently NOT implemented.</p></div></div><div class="refsect3" title="RAP SERVICE STOP"><a name="id307669"></a><h4>RAP SERVICE STOP</h4><p>Stop the specified service on the remote server.</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Currently NOT implemented.</p></div></div></div><div class="refsect2" title="RAP PASSWORD USER OLDPASS NEWPASS"><a name="id307684"></a><h3>RAP PASSWORD <em class="replaceable"><code>USER</code></em> <em class="replaceable"><code>OLDPASS</code></em> <em class="replaceable"><code>NEWPASS</code></em></h3><p>111 </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Currently NOT implemented.</p></div></div><div class="refsect2" title="RAP SERVICE"><a name="id266468"></a><h3>RAP SERVICE</h3><div class="refsect3" title="RAP SERVICE START NAME [arguments...]"><a name="id266473"></a><h4>RAP SERVICE START <em class="replaceable"><code>NAME</code></em> [arguments...]</h4><p>Start the specified service on the remote server. Not implemented yet.</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Currently NOT implemented.</p></div></div><div class="refsect3" title="RAP SERVICE STOP"><a name="id266492"></a><h4>RAP SERVICE STOP</h4><p>Stop the specified service on the remote server.</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Currently NOT implemented.</p></div></div></div><div class="refsect2" title="RAP PASSWORD USER OLDPASS NEWPASS"><a name="id266507"></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> 112 112 Change password of <em class="replaceable"><code>USER</code></em> from <em class="replaceable"><code>OLDPASS</code></em> to <em class="replaceable"><code>NEWPASS</code></em>. 113 </p></div><div class="refsect2" title="LOOKUP"><a name="id 307712"></a><h3>LOOKUP</h3><div class="refsect3" title="LOOKUP HOST HOSTNAME [TYPE]"><a name="id307717"></a><h4>LOOKUP HOST <em class="replaceable"><code>HOSTNAME</code></em> [<em class="replaceable"><code>TYPE</code></em>]</h4><p>113 </p></div><div class="refsect2" title="LOOKUP"><a name="id266538"></a><h3>LOOKUP</h3><div class="refsect3" title="LOOKUP HOST HOSTNAME [TYPE]"><a name="id266544"></a><h4>LOOKUP HOST <em class="replaceable"><code>HOSTNAME</code></em> [<em class="replaceable"><code>TYPE</code></em>]</h4><p> 114 114 Lookup the IP address of the given host with the specified type (netbios suffix). 115 115 The type defaults to 0x20 (workstation). 116 </p></div><div class="refsect3" title="LOOKUP LDAP [DOMAIN]"><a name="id 307734"></a><h4>LOOKUP LDAP [<em class="replaceable"><code>DOMAIN</code></em>]</h4><p>Give IP address of LDAP server of specified <em class="replaceable"><code>DOMAIN</code></em>. Defaults to local domain.</p></div><div class="refsect3" title="LOOKUP KDC [REALM]"><a name="id307750"></a><h4>LOOKUP KDC [<em class="replaceable"><code>REALM</code></em>]</h4><p>Give IP address of KDC for the specified <em class="replaceable"><code>REALM</code></em>.117 Defaults to local realm.</p></div><div class="refsect3" title="LOOKUP DC [DOMAIN]"><a name="id 307766"></a><h4>LOOKUP DC [<em class="replaceable"><code>DOMAIN</code></em>]</h4><p>Give IP's of Domain Controllers for specified <em class="replaceable"><code>118 DOMAIN</code></em>. Defaults to local domain.</p></div><div class="refsect3" title="LOOKUP MASTER DOMAIN"><a name="id 307782"></a><h4>LOOKUP MASTER <em class="replaceable"><code>DOMAIN</code></em></h4><p>Give IP of master browser for specified <em class="replaceable"><code>DOMAIN</code></em>119 or workgroup. Defaults to local domain.</p></div></div><div class="refsect2" title="CACHE"><a name="id 307798"></a><h3>CACHE</h3><p>Samba uses a general caching interface called 'gencache'. It116 </p></div><div class="refsect3" title="LOOKUP LDAP [DOMAIN]"><a name="id279965"></a><h4>LOOKUP LDAP [<em class="replaceable"><code>DOMAIN</code></em>]</h4><p>Give IP address of LDAP server of specified <em class="replaceable"><code>DOMAIN</code></em>. Defaults to local domain.</p></div><div class="refsect3" title="LOOKUP KDC [REALM]"><a name="id279982"></a><h4>LOOKUP KDC [<em class="replaceable"><code>REALM</code></em>]</h4><p>Give IP address of KDC for the specified <em class="replaceable"><code>REALM</code></em>. 117 Defaults to local realm.</p></div><div class="refsect3" title="LOOKUP DC [DOMAIN]"><a name="id279999"></a><h4>LOOKUP DC [<em class="replaceable"><code>DOMAIN</code></em>]</h4><p>Give IP's of Domain Controllers for specified <em class="replaceable"><code> 118 DOMAIN</code></em>. Defaults to local domain.</p></div><div class="refsect3" title="LOOKUP MASTER DOMAIN"><a name="id280016"></a><h4>LOOKUP MASTER <em class="replaceable"><code>DOMAIN</code></em></h4><p>Give IP of master browser for specified <em class="replaceable"><code>DOMAIN</code></em> 119 or workgroup. Defaults to local domain.</p></div></div><div class="refsect2" title="CACHE"><a name="id280033"></a><h3>CACHE</h3><p>Samba uses a general caching interface called 'gencache'. It 120 120 can be controlled using 'NET CACHE'.</p><p>All the timeout parameters support the suffixes: 121 121 122 122 </p><table border="0" summary="Simple list" class="simplelist"><tr><td>s - Seconds</td></tr><tr><td>m - Minutes</td></tr><tr><td>h - Hours</td></tr><tr><td>d - Days</td></tr><tr><td>w - Weeks</td></tr></table><p> 123 123 124 </p><div class="refsect3" title="CACHE ADD key data time-out"><a name="id 307832"></a><h4>CACHE ADD <em class="replaceable"><code>key</code></em> <em class="replaceable"><code>data</code></em> <em class="replaceable"><code>time-out</code></em></h4><p>Add specified key+data to the cache with the given timeout.</p></div><div class="refsect3" title="CACHE DEL key"><a name="id307851"></a><h4>CACHE DEL <em class="replaceable"><code>key</code></em></h4><p>Delete key from the cache.</p></div><div class="refsect3" title="CACHE SET key data time-out"><a name="id307863"></a><h4>CACHE SET <em class="replaceable"><code>key</code></em> <em class="replaceable"><code>data</code></em> <em class="replaceable"><code>time-out</code></em></h4><p>Update data of existing cache entry.</p></div><div class="refsect3" title="CACHE SEARCH PATTERN"><a name="id307881"></a><h4>CACHE SEARCH <em class="replaceable"><code>PATTERN</code></em></h4><p>Search for the specified pattern in the cache data.</p></div><div class="refsect3" title="CACHE LIST"><a name="id307893"></a><h4>CACHE LIST</h4><p>124 </p><div class="refsect3" title="CACHE ADD key data time-out"><a name="id280069"></a><h4>CACHE ADD <em class="replaceable"><code>key</code></em> <em class="replaceable"><code>data</code></em> <em class="replaceable"><code>time-out</code></em></h4><p>Add specified key+data to the cache with the given timeout.</p></div><div class="refsect3" title="CACHE DEL key"><a name="id280088"></a><h4>CACHE DEL <em class="replaceable"><code>key</code></em></h4><p>Delete key from the cache.</p></div><div class="refsect3" title="CACHE SET key data time-out"><a name="id280101"></a><h4>CACHE SET <em class="replaceable"><code>key</code></em> <em class="replaceable"><code>data</code></em> <em class="replaceable"><code>time-out</code></em></h4><p>Update data of existing cache entry.</p></div><div class="refsect3" title="CACHE SEARCH PATTERN"><a name="id280120"></a><h4>CACHE SEARCH <em class="replaceable"><code>PATTERN</code></em></h4><p>Search for the specified pattern in the cache data.</p></div><div class="refsect3" title="CACHE LIST"><a name="id280132"></a><h4>CACHE LIST</h4><p> 125 125 List all current items in the cache. 126 </p></div><div class="refsect3" title="CACHE FLUSH"><a name="id 307902"></a><h4>CACHE FLUSH</h4><p>Remove all the current items from the cache.</p></div></div><div class="refsect2" title="GETLOCALSID [DOMAIN]"><a name="id307913"></a><h3>GETLOCALSID [DOMAIN]</h3><p>Prints the SID of the specified domain, or if the parameter is127 omitted, the SID of the local server.</p></div><div class="refsect2" title="SETLOCALSID S-1-5-21-x-y-z"><a name="id 307924"></a><h3>SETLOCALSID S-1-5-21-x-y-z</h3><p>Sets SID for the local server to the specified SID.</p></div><div class="refsect2" title="GETDOMAINSID"><a name="id307933"></a><h3>GETDOMAINSID</h3><p>Prints the local machine SID and the SID of the current128 domain.</p></div><div class="refsect2" title="SETDOMAINSID"><a name="id 307943"></a><h3>SETDOMAINSID</h3><p>Sets the SID of the current domain.</p></div><div class="refsect2" title="GROUPMAP"><a name="id307953"></a><h3>GROUPMAP</h3><p>Manage the mappings between Windows group SIDs and UNIX groups.126 </p></div><div class="refsect3" title="CACHE FLUSH"><a name="id280142"></a><h4>CACHE FLUSH</h4><p>Remove all the current items from the cache.</p></div></div><div class="refsect2" title="GETLOCALSID [DOMAIN]"><a name="id280153"></a><h3>GETLOCALSID [DOMAIN]</h3><p>Prints the SID of the specified domain, or if the parameter is 127 omitted, the SID of the local server.</p></div><div class="refsect2" title="SETLOCALSID S-1-5-21-x-y-z"><a name="id280164"></a><h3>SETLOCALSID S-1-5-21-x-y-z</h3><p>Sets SID for the local server to the specified SID.</p></div><div class="refsect2" title="GETDOMAINSID"><a name="id280174"></a><h3>GETDOMAINSID</h3><p>Prints the local machine SID and the SID of the current 128 domain.</p></div><div class="refsect2" title="SETDOMAINSID"><a name="id280184"></a><h3>SETDOMAINSID</h3><p>Sets the SID of the current domain.</p></div><div class="refsect2" title="GROUPMAP"><a name="id280194"></a><h3>GROUPMAP</h3><p>Manage the mappings between Windows group SIDs and UNIX groups. 129 129 Common options include:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>unixgroup - Name of the UNIX group</p></li><li class="listitem"><p>ntgroup - Name of the Windows NT group (must be 130 130 resolvable to a SID</p></li><li class="listitem"><p>rid - Unsigned 32-bit integer</p></li><li class="listitem"><p>sid - Full SID in the form of "S-1-..."</p></li><li class="listitem"><p>type - Type of the group; either 'domain', 'local', 131 or 'builtin'</p></li><li class="listitem"><p>comment - Freeform text description of the group</p></li></ul></div><div class="refsect3" title="GROUPMAP ADD"><a name="id 307992"></a><h4>GROUPMAP ADD</h4><p>131 or 'builtin'</p></li><li class="listitem"><p>comment - Freeform text description of the group</p></li></ul></div><div class="refsect3" title="GROUPMAP ADD"><a name="id280234"></a><h4>GROUPMAP ADD</h4><p> 132 132 Add a new group mapping entry: 133 133 </p><pre class="programlisting"> … … 135 135 [type={domain|local}] [ntgroup=string] [comment=string] 136 136 </pre><p> 137 </p></div><div class="refsect3" title="GROUPMAP DELETE"><a name="id 308008"></a><h4>GROUPMAP DELETE</h4><p>Delete a group mapping entry. If more than one group name matches, the first entry found is deleted.</p><p>net groupmap delete {ntgroup=string|sid=SID}</p></div><div class="refsect3" title="GROUPMAP MODIFY"><a name="id308022"></a><h4>GROUPMAP MODIFY</h4><p>Update en existing group entry.</p><p>137 </p></div><div class="refsect3" title="GROUPMAP DELETE"><a name="id280251"></a><h4>GROUPMAP DELETE</h4><p>Delete a group mapping entry. If more than one group name matches, the first entry found is deleted.</p><p>net groupmap delete {ntgroup=string|sid=SID}</p></div><div class="refsect3" title="GROUPMAP MODIFY"><a name="id280265"></a><h4>GROUPMAP MODIFY</h4><p>Update en existing group entry.</p><p> 138 138 </p><pre class="programlisting"> 139 139 net groupmap modify {ntgroup=string|sid=SID} [unixgroup=string] \ 140 140 [comment=string] [type={domain|local}] 141 141 </pre><p> 142 </p></div><div class="refsect3" title="GROUPMAP LIST"><a name="id 308041"></a><h4>GROUPMAP LIST</h4><p>List existing group mapping entries.</p><p>net groupmap list [verbose] [ntgroup=string] [sid=SID]</p></div></div><div class="refsect2" title="MAXRID"><a name="id308055"></a><h3>MAXRID</h3><p>Prints out the highest RID currently in use on the local142 </p></div><div class="refsect3" title="GROUPMAP LIST"><a name="id280285"></a><h4>GROUPMAP LIST</h4><p>List existing group mapping entries.</p><p>net groupmap list [verbose] [ntgroup=string] [sid=SID]</p></div></div><div class="refsect2" title="MAXRID"><a name="id280300"></a><h3>MAXRID</h3><p>Prints out the highest RID currently in use on the local 143 143 server (by the active 'passdb backend'). 144 </p></div><div class="refsect2" title="RPC INFO"><a name="id 308066"></a><h3>RPC INFO</h3><p>Print information about the domain of the remote server,144 </p></div><div class="refsect2" title="RPC INFO"><a name="id280310"></a><h3>RPC INFO</h3><p>Print information about the domain of the remote server, 145 145 such as domain name, domain sid and number of users and groups. 146 </p></div><div class="refsect2" title="[RPC|ADS] TESTJOIN"><a name="id 308076"></a><h3>[RPC|ADS] TESTJOIN</h3><p>Check whether participation in a domain is still valid.</p></div><div class="refsect2" title="[RPC|ADS] CHANGETRUSTPW"><a name="id308086"></a><h3>[RPC|ADS] CHANGETRUSTPW</h3><p>Force change of domain trust password.</p></div><div class="refsect2" title="RPC TRUSTDOM"><a name="id308096"></a><h3>RPC TRUSTDOM</h3><div class="refsect3" title="RPC TRUSTDOM ADD DOMAIN"><a name="id308101"></a><h4>RPC TRUSTDOM ADD <em class="replaceable"><code>DOMAIN</code></em></h4><p>Add a interdomain trust account for <em class="replaceable"><code>DOMAIN</code></em>.146 </p></div><div class="refsect2" title="[RPC|ADS] TESTJOIN"><a name="id280322"></a><h3>[RPC|ADS] TESTJOIN</h3><p>Check whether participation in a domain is still valid.</p></div><div class="refsect2" title="[RPC|ADS] CHANGETRUSTPW"><a name="id280331"></a><h3>[RPC|ADS] CHANGETRUSTPW</h3><p>Force change of domain trust password.</p></div><div class="refsect2" title="RPC TRUSTDOM"><a name="id280342"></a><h3>RPC TRUSTDOM</h3><div class="refsect3" title="RPC TRUSTDOM ADD DOMAIN"><a name="id280347"></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>. 147 147 This is in fact a Samba account named <em class="replaceable"><code>DOMAIN$</code></em> 148 148 with the account flag <code class="constant">'I'</code> (interdomain trust account). … … 153 153 <code class="literal">smbpasswd -a -i DOMAIN</code>. Please note that both commands 154 154 expect a appropriate UNIX account. 155 </p></div><div class="refsect3" title="RPC TRUSTDOM DEL DOMAIN"><a name="id 308131"></a><h4>RPC TRUSTDOM DEL <em class="replaceable"><code>DOMAIN</code></em></h4><p>Remove interdomain trust account for155 </p></div><div class="refsect3" title="RPC TRUSTDOM DEL DOMAIN"><a name="id280379"></a><h4>RPC TRUSTDOM DEL <em class="replaceable"><code>DOMAIN</code></em></h4><p>Remove interdomain trust account for 156 156 <em class="replaceable"><code>DOMAIN</code></em>. If it is used against localhost 157 157 it has the same effect as <code class="literal">smbpasswd -x DOMAIN$</code>. 158 </p></div><div class="refsect3" title="RPC TRUSTDOM ESTABLISH DOMAIN"><a name="id 308151"></a><h4>RPC TRUSTDOM ESTABLISH <em class="replaceable"><code>DOMAIN</code></em></h4><p>158 </p></div><div class="refsect3" title="RPC TRUSTDOM ESTABLISH DOMAIN"><a name="id280401"></a><h4>RPC TRUSTDOM ESTABLISH <em class="replaceable"><code>DOMAIN</code></em></h4><p> 159 159 Establish a trust relationship to a trusted domain. 160 160 Interdomain account must already be created on the remote PDC. … … 164 164 You'll need winbind and a working idmap config to make them 165 165 appear in your system. 166 </p></div><div class="refsect3" title="RPC TRUSTDOM REVOKE DOMAIN"><a name="id 308166"></a><h4>RPC TRUSTDOM REVOKE <em class="replaceable"><code>DOMAIN</code></em></h4><p>Abandon relationship to trusted domain</p></div><div class="refsect3" title="RPC TRUSTDOM LIST"><a name="id308178"></a><h4>RPC TRUSTDOM LIST</h4><p>List all interdomain trust relationships.</p></div><div class="refsect3" title="RPC RIGHTS"><a name="id308188"></a><h4>RPC RIGHTS</h4><p>This subcommand is used to view and manage Samba's rights assignments (also166 </p></div><div class="refsect3" title="RPC TRUSTDOM REVOKE DOMAIN"><a name="id280416"></a><h4>RPC TRUSTDOM REVOKE <em class="replaceable"><code>DOMAIN</code></em></h4><p>Abandon relationship to trusted domain</p></div><div class="refsect3" title="RPC TRUSTDOM LIST"><a name="id280429"></a><h4>RPC TRUSTDOM LIST</h4><p>List all interdomain trust relationships.</p></div><div class="refsect3" title="RPC RIGHTS"><a name="id306449"></a><h4>RPC RIGHTS</h4><p>This subcommand is used to view and manage Samba's rights assignments (also 167 167 referred to as privileges). There are three options currently available: 168 168 <em class="parameter"><code>list</code></em>, <em class="parameter"><code>grant</code></em>, and 169 169 <em class="parameter"><code>revoke</code></em>. More details on Samba's privilege model and its use 170 can be found in the Samba-HOWTO-Collection.</p></div></div><div class="refsect2" title="RPC ABORTSHUTDOWN"><a name="id30 8216"></a><h3>RPC ABORTSHUTDOWN</h3><p>Abort the shutdown of a remote server.</p></div><div class="refsect2" title="RPC SHUTDOWN [-t timeout] [-r] [-f] [-C message]"><a name="id308226"></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>170 can be found in the Samba-HOWTO-Collection.</p></div></div><div class="refsect2" title="RPC ABORTSHUTDOWN"><a name="id306478"></a><h3>RPC ABORTSHUTDOWN</h3><p>Abort the shutdown of a remote server.</p></div><div class="refsect2" title="RPC SHUTDOWN [-t timeout] [-r] [-f] [-C message]"><a name="id306488"></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> 171 171 Reboot after shutdown. 172 172 </p></dd><dt><span class="term">-f</span></dt><dd><p> … … 176 176 user of the system can use this time to cancel the shutdown. 177 177 </p></dd><dt><span class="term">-C message</span></dt><dd><p>Display the specified message on the screen to 178 announce the shutdown.</p></dd></dl></div></div><div class="refsect2" title="RPC SAMDUMP"><a name="id30 8283"></a><h3>RPC SAMDUMP</h3><p>Print out sam database of remote server. You need179 to run this against the PDC, from a Samba machine joined as a BDC. </p></div><div class="refsect2" title="RPC VAMPIRE"><a name="id30 8294"></a><h3>RPC VAMPIRE</h3><p>Export users, aliases and groups from remote server to178 announce the shutdown.</p></dd></dl></div></div><div class="refsect2" title="RPC SAMDUMP"><a name="id306544"></a><h3>RPC SAMDUMP</h3><p>Print out sam database of remote server. You need 179 to run this against the PDC, from a Samba machine joined as a BDC. </p></div><div class="refsect2" title="RPC VAMPIRE"><a name="id306555"></a><h3>RPC VAMPIRE</h3><p>Export users, aliases and groups from remote server to 180 180 local server. You need to run this against the PDC, from a Samba machine joined as a BDC. 181 </p></div><div class="refsect2" title="RPC VAMPIRE KEYTAB"><a name="id30 8305"></a><h3>RPC VAMPIRE KEYTAB</h3><p>Dump remote SAM database to local Kerberos keytab file.182 </p></div><div class="refsect2" title="RPC VAMPIRE LDIF"><a name="id30 8315"></a><h3>RPC VAMPIRE LDIF</h3><p>Dump remote SAM database to local LDIF file or standard output.183 </p></div><div class="refsect2" title="RPC GETSID"><a name="id30 8325"></a><h3>RPC GETSID</h3><p>Fetch domain SID and store it in the local <code class="filename">secrets.tdb</code>. </p></div><div class="refsect2" title="ADS LEAVE"><a name="id308340"></a><h3>ADS LEAVE</h3><p>Make the remote host leave the domain it is part of. </p></div><div class="refsect2" title="ADS STATUS"><a name="id308350"></a><h3>ADS STATUS</h3><p>Print out status of machine account of the local machine in ADS.181 </p></div><div class="refsect2" title="RPC VAMPIRE KEYTAB"><a name="id306566"></a><h3>RPC VAMPIRE KEYTAB</h3><p>Dump remote SAM database to local Kerberos keytab file. 182 </p></div><div class="refsect2" title="RPC VAMPIRE LDIF"><a name="id306575"></a><h3>RPC VAMPIRE LDIF</h3><p>Dump remote SAM database to local LDIF file or standard output. 183 </p></div><div class="refsect2" title="RPC GETSID"><a name="id306585"></a><h3>RPC GETSID</h3><p>Fetch domain SID and store it in the local <code class="filename">secrets.tdb</code>. </p></div><div class="refsect2" title="ADS LEAVE"><a name="id306600"></a><h3>ADS LEAVE</h3><p>Make the remote host leave the domain it is part of. </p></div><div class="refsect2" title="ADS STATUS"><a name="id306609"></a><h3>ADS STATUS</h3><p>Print out status of machine account of the local machine in ADS. 184 184 Prints out quite some debug info. Aimed at developers, regular 185 users should use <code class="literal">NET ADS TESTJOIN</code>.</p></div><div class="refsect2" title="ADS PRINTER"><a name="id30 8366"></a><h3>ADS PRINTER</h3><div class="refsect3" title="ADS PRINTER INFO [PRINTER] [SERVER]"><a name="id308371"></a><h4>ADS PRINTER INFO [<em class="replaceable"><code>PRINTER</code></em>] [<em class="replaceable"><code>SERVER</code></em>]</h4><p>185 users should use <code class="literal">NET ADS TESTJOIN</code>.</p></div><div class="refsect2" title="ADS PRINTER"><a name="id306625"></a><h3>ADS PRINTER</h3><div class="refsect3" title="ADS PRINTER INFO [PRINTER] [SERVER]"><a name="id306631"></a><h4>ADS PRINTER INFO [<em class="replaceable"><code>PRINTER</code></em>] [<em class="replaceable"><code>SERVER</code></em>]</h4><p> 186 186 Lookup info for <em class="replaceable"><code>PRINTER</code></em> on <em class="replaceable"><code>SERVER</code></em>. The printer name defaults to "*", the 187 server name defaults to the local host.</p></div><div class="refsect3" title="ADS PRINTER PUBLISH PRINTER"><a name="id30 8394"></a><h4>ADS PRINTER PUBLISH <em class="replaceable"><code>PRINTER</code></em></h4><p>Publish specified printer using ADS.</p></div><div class="refsect3" title="ADS PRINTER REMOVE PRINTER"><a name="id308406"></a><h4>ADS PRINTER REMOVE <em class="replaceable"><code>PRINTER</code></em></h4><p>Remove specified printer from ADS directory.</p></div></div><div class="refsect2" title="ADS SEARCH EXPRESSION ATTRIBUTES..."><a name="id308419"></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. The187 server name defaults to the local host.</p></div><div class="refsect3" title="ADS PRINTER PUBLISH PRINTER"><a name="id306654"></a><h4>ADS PRINTER PUBLISH <em class="replaceable"><code>PRINTER</code></em></h4><p>Publish specified printer using ADS.</p></div><div class="refsect3" title="ADS PRINTER REMOVE PRINTER"><a name="id306666"></a><h4>ADS PRINTER REMOVE <em class="replaceable"><code>PRINTER</code></em></h4><p>Remove specified printer from ADS directory.</p></div></div><div class="refsect2" title="ADS SEARCH EXPRESSION ATTRIBUTES..."><a name="id306678"></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 188 188 expression is a standard LDAP search expression, and the 189 189 attributes 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> 190 </p></div><div class="refsect2" title="ADS DN DN (attributes)"><a name="id30 8444"></a><h3>ADS DN <em class="replaceable"><code>DN</code></em> <em class="replaceable"><code>(attributes)</code></em></h3><p>190 </p></div><div class="refsect2" title="ADS DN DN (attributes)"><a name="id306704"></a><h3>ADS DN <em class="replaceable"><code>DN</code></em> <em class="replaceable"><code>(attributes)</code></em></h3><p> 191 191 Perform a raw LDAP search on a ADS server and dump the results. The 192 192 DN standard LDAP DN, and the attributes are a list of LDAP fields 193 193 to show in the result. 194 </p><p>Example: <strong class="userinput"><code>net ads dn 'CN=administrator,CN=Users,DC=my,DC=domain' SAMAccountName</code></strong></p></div><div class="refsect2" title="ADS WORKGROUP"><a name="id30 8468"></a><h3>ADS WORKGROUP</h3><p>Print out workgroup name for specified kerberos realm.</p></div><div class="refsect2" title="SAM CREATEBUILTINGROUP <NAME>"><a name="id308478"></a><h3>SAM CREATEBUILTINGROUP <NAME></h3><p>194 </p><p>Example: <strong class="userinput"><code>net ads dn 'CN=administrator,CN=Users,DC=my,DC=domain' SAMAccountName</code></strong></p></div><div class="refsect2" title="ADS WORKGROUP"><a name="id306728"></a><h3>ADS WORKGROUP</h3><p>Print out workgroup name for specified kerberos realm.</p></div><div class="refsect2" title="SAM CREATEBUILTINGROUP <NAME>"><a name="id306738"></a><h3>SAM CREATEBUILTINGROUP <NAME></h3><p> 195 195 (Re)Create a BUILTIN group. 196 196 Only a wellknown set of BUILTIN groups can be created with this command. … … 202 202 This command requires a running Winbindd with idmap allocation properly 203 203 configured. The group gid will be allocated out of the winbindd range. 204 </p></div><div class="refsect2" title="SAM CREATELOCALGROUP <NAME>"><a name="id30 8492"></a><h3>SAM CREATELOCALGROUP <NAME></h3><p>204 </p></div><div class="refsect2" title="SAM CREATELOCALGROUP <NAME>"><a name="id306751"></a><h3>SAM CREATELOCALGROUP <NAME></h3><p> 205 205 Create a LOCAL group (also known as Alias). 206 206 207 207 This command requires a running Winbindd with idmap allocation properly 208 208 configured. The group gid will be allocated out of the winbindd range. 209 </p></div><div class="refsect2" title="SAM DELETELOCALGROUP <NAME>"><a name="id30 8503"></a><h3>SAM DELETELOCALGROUP <NAME></h3><p>209 </p></div><div class="refsect2" title="SAM DELETELOCALGROUP <NAME>"><a name="id306763"></a><h3>SAM DELETELOCALGROUP <NAME></h3><p> 210 210 Delete an existing LOCAL group (also known as Alias). 211 211 212 </p></div><div class="refsect2" title="SAM MAPUNIXGROUP <NAME>"><a name="id30 8513"></a><h3>SAM MAPUNIXGROUP <NAME></h3><p>212 </p></div><div class="refsect2" title="SAM MAPUNIXGROUP <NAME>"><a name="id306773"></a><h3>SAM MAPUNIXGROUP <NAME></h3><p> 213 213 Map an existing Unix group and make it a Domain Group, the domain group 214 214 will have the same name. 215 </p></div><div class="refsect2" title="SAM UNMAPUNIXGROUP <NAME>"><a name="id30 8524"></a><h3>SAM UNMAPUNIXGROUP <NAME></h3><p>215 </p></div><div class="refsect2" title="SAM UNMAPUNIXGROUP <NAME>"><a name="id306783"></a><h3>SAM UNMAPUNIXGROUP <NAME></h3><p> 216 216 Remove an existing group mapping entry. 217 </p></div><div class="refsect2" title="SAM ADDMEM <GROUP> <MEMBER>"><a name="id30 8534"></a><h3>SAM ADDMEM <GROUP> <MEMBER></h3><p>217 </p></div><div class="refsect2" title="SAM ADDMEM <GROUP> <MEMBER>"><a name="id306793"></a><h3>SAM ADDMEM <GROUP> <MEMBER></h3><p> 218 218 Add a member to a Local group. The group can be specified only by name, 219 219 the member can be specified by name or SID. 220 </p></div><div class="refsect2" title="SAM DELMEM <GROUP> <MEMBER>"><a name="id30 8545"></a><h3>SAM DELMEM <GROUP> <MEMBER></h3><p>220 </p></div><div class="refsect2" title="SAM DELMEM <GROUP> <MEMBER>"><a name="id306804"></a><h3>SAM DELMEM <GROUP> <MEMBER></h3><p> 221 221 Remove a member from a Local group. The group and the member must be 222 222 specified by name. 223 </p></div><div class="refsect2" title="SAM LISTMEM <GROUP>"><a name="id30 8556"></a><h3>SAM LISTMEM <GROUP></h3><p>223 </p></div><div class="refsect2" title="SAM LISTMEM <GROUP>"><a name="id306816"></a><h3>SAM LISTMEM <GROUP></h3><p> 224 224 List Local group members. The group must be specified by name. 225 </p></div><div class="refsect2" title="SAM LIST <users|groups|localgroups|builtin|workstations> [verbose]"><a name="id30 8566"></a><h3>SAM LIST <users|groups|localgroups|builtin|workstations> [verbose]</h3><p>225 </p></div><div class="refsect2" title="SAM LIST <users|groups|localgroups|builtin|workstations> [verbose]"><a name="id306826"></a><h3>SAM LIST <users|groups|localgroups|builtin|workstations> [verbose]</h3><p> 226 226 List the specified set of accounts by name. If verbose is specified, 227 227 the rid and description is also provided for each account. 228 </p></div><div class="refsect2" title="SAM RIGHTS LIST"><a name="id30 8578"></a><h3>SAM RIGHTS LIST</h3><p>228 </p></div><div class="refsect2" title="SAM RIGHTS LIST"><a name="id306838"></a><h3>SAM RIGHTS LIST</h3><p> 229 229 List all available privileges. 230 </p></div><div class="refsect2" title="SAM RIGHTS GRANT <NAME> <PRIVILEGE>"><a name="id30 8588"></a><h3>SAM RIGHTS GRANT <NAME> <PRIVILEGE></h3><p>230 </p></div><div class="refsect2" title="SAM RIGHTS GRANT <NAME> <PRIVILEGE>"><a name="id306847"></a><h3>SAM RIGHTS GRANT <NAME> <PRIVILEGE></h3><p> 231 231 Grant one or more privileges to a user. 232 </p></div><div class="refsect2" title="SAM RIGHTS REVOKE <NAME> <PRIVILEGE>"><a name="id30 8598"></a><h3>SAM RIGHTS REVOKE <NAME> <PRIVILEGE></h3><p>232 </p></div><div class="refsect2" title="SAM RIGHTS REVOKE <NAME> <PRIVILEGE>"><a name="id306857"></a><h3>SAM RIGHTS REVOKE <NAME> <PRIVILEGE></h3><p> 233 233 Revoke one or more privileges from a user. 234 </p></div><div class="refsect2" title="SAM SHOW <NAME>"><a name="id30 8607"></a><h3>SAM SHOW <NAME></h3><p>234 </p></div><div class="refsect2" title="SAM SHOW <NAME>"><a name="id306867"></a><h3>SAM SHOW <NAME></h3><p> 235 235 Show the full DOMAIN\\NAME the SID and the type for the corresponding 236 236 account. 237 </p></div><div class="refsect2" title="SAM SET HOMEDIR <NAME> <DIRECTORY>"><a name="id30 8618"></a><h3>SAM SET HOMEDIR <NAME> <DIRECTORY></h3><p>237 </p></div><div class="refsect2" title="SAM SET HOMEDIR <NAME> <DIRECTORY>"><a name="id306877"></a><h3>SAM SET HOMEDIR <NAME> <DIRECTORY></h3><p> 238 238 Set the home directory for a user account. 239 </p></div><div class="refsect2" title="SAM SET PROFILEPATH <NAME> <PATH>"><a name="id30 8627"></a><h3>SAM SET PROFILEPATH <NAME> <PATH></h3><p>239 </p></div><div class="refsect2" title="SAM SET PROFILEPATH <NAME> <PATH>"><a name="id306887"></a><h3>SAM SET PROFILEPATH <NAME> <PATH></h3><p> 240 240 Set the profile path for a user account. 241 </p></div><div class="refsect2" title="SAM SET COMMENT <NAME> <COMMENT>"><a name="id30 8637"></a><h3>SAM SET COMMENT <NAME> <COMMENT></h3><p>241 </p></div><div class="refsect2" title="SAM SET COMMENT <NAME> <COMMENT>"><a name="id306896"></a><h3>SAM SET COMMENT <NAME> <COMMENT></h3><p> 242 242 Set the comment for a user or group account. 243 </p></div><div class="refsect2" title="SAM SET FULLNAME <NAME> <FULL NAME>"><a name="id30 8646"></a><h3>SAM SET FULLNAME <NAME> <FULL NAME></h3><p>243 </p></div><div class="refsect2" title="SAM SET FULLNAME <NAME> <FULL NAME>"><a name="id306906"></a><h3>SAM SET FULLNAME <NAME> <FULL NAME></h3><p> 244 244 Set the full name for a user account. 245 </p></div><div class="refsect2" title="SAM SET LOGONSCRIPT <NAME> <SCRIPT>"><a name="id30 8656"></a><h3>SAM SET LOGONSCRIPT <NAME> <SCRIPT></h3><p>245 </p></div><div class="refsect2" title="SAM SET LOGONSCRIPT <NAME> <SCRIPT>"><a name="id306915"></a><h3>SAM SET LOGONSCRIPT <NAME> <SCRIPT></h3><p> 246 246 Set the logon script for a user account. 247 </p></div><div class="refsect2" title="SAM SET HOMEDRIVE <NAME> <DRIVE>"><a name="id30 8666"></a><h3>SAM SET HOMEDRIVE <NAME> <DRIVE></h3><p>247 </p></div><div class="refsect2" title="SAM SET HOMEDRIVE <NAME> <DRIVE>"><a name="id306925"></a><h3>SAM SET HOMEDRIVE <NAME> <DRIVE></h3><p> 248 248 Set the home drive for a user account. 249 </p></div><div class="refsect2" title="SAM SET WORKSTATIONS <NAME> <WORKSTATIONS>"><a name="id30 8675"></a><h3>SAM SET WORKSTATIONS <NAME> <WORKSTATIONS></h3><p>249 </p></div><div class="refsect2" title="SAM SET WORKSTATIONS <NAME> <WORKSTATIONS>"><a name="id306935"></a><h3>SAM SET WORKSTATIONS <NAME> <WORKSTATIONS></h3><p> 250 250 Set the workstations a user account is allowed to log in from. 251 </p></div><div class="refsect2" title="SAM SET DISABLE <NAME>"><a name="id30 8685"></a><h3>SAM SET DISABLE <NAME></h3><p>251 </p></div><div class="refsect2" title="SAM SET DISABLE <NAME>"><a name="id306945"></a><h3>SAM SET DISABLE <NAME></h3><p> 252 252 Set the "disabled" flag for a user account. 253 </p></div><div class="refsect2" title="SAM SET PWNOTREQ <NAME>"><a name="id30 8695"></a><h3>SAM SET PWNOTREQ <NAME></h3><p>253 </p></div><div class="refsect2" title="SAM SET PWNOTREQ <NAME>"><a name="id306954"></a><h3>SAM SET PWNOTREQ <NAME></h3><p> 254 254 Set the "password not required" flag for a user account. 255 </p></div><div class="refsect2" title="SAM SET AUTOLOCK <NAME>"><a name="id30 8705"></a><h3>SAM SET AUTOLOCK <NAME></h3><p>255 </p></div><div class="refsect2" title="SAM SET AUTOLOCK <NAME>"><a name="id306965"></a><h3>SAM SET AUTOLOCK <NAME></h3><p> 256 256 Set the "autolock" flag for a user account. 257 </p></div><div class="refsect2" title="SAM SET PWNOEXP <NAME>"><a name="id30 8715"></a><h3>SAM SET PWNOEXP <NAME></h3><p>257 </p></div><div class="refsect2" title="SAM SET PWNOEXP <NAME>"><a name="id306974"></a><h3>SAM SET PWNOEXP <NAME></h3><p> 258 258 Set the "password do not expire" flag for a user account. 259 </p></div><div class="refsect2" title="SAM SET PWDMUSTCHANGENOW <NAME> [yes|no]"><a name="id30 8725"></a><h3>SAM SET PWDMUSTCHANGENOW <NAME> [yes|no]</h3><p>259 </p></div><div class="refsect2" title="SAM SET PWDMUSTCHANGENOW <NAME> [yes|no]"><a name="id306985"></a><h3>SAM SET PWDMUSTCHANGENOW <NAME> [yes|no]</h3><p> 260 260 Set or unset the "password must change" flag for a user account. 261 </p></div><div class="refsect2" title="SAM POLICY LIST"><a name="id30 8735"></a><h3>SAM POLICY LIST</h3><p>261 </p></div><div class="refsect2" title="SAM POLICY LIST"><a name="id306995"></a><h3>SAM POLICY LIST</h3><p> 262 262 List the available account policies. 263 </p></div><div class="refsect2" title="SAM POLICY SHOW <account policy>"><a name="id30 8745"></a><h3>SAM POLICY SHOW <account policy></h3><p>263 </p></div><div class="refsect2" title="SAM POLICY SHOW <account policy>"><a name="id307004"></a><h3>SAM POLICY SHOW <account policy></h3><p> 264 264 Show the account policy value. 265 </p></div><div class="refsect2" title="SAM POLICY SET <account policy> <value>"><a name="id30 8755"></a><h3>SAM POLICY SET <account policy> <value></h3><p>265 </p></div><div class="refsect2" title="SAM POLICY SET <account policy> <value>"><a name="id307014"></a><h3>SAM POLICY SET <account policy> <value></h3><p> 266 266 Set a value for the account policy. 267 267 Valid values can be: "forever", "never", "off", or a number. 268 </p></div><div class="refsect2" title="SAM PROVISION"><a name="id30 8766"></a><h3>SAM PROVISION</h3><p>268 </p></div><div class="refsect2" title="SAM PROVISION"><a name="id307025"></a><h3>SAM PROVISION</h3><p> 269 269 Only available if ldapsam:editposix is set and winbindd is running. 270 270 Properly populates the ldap tree with the basic accounts (Administrator) 271 271 and groups (Domain Users, Domain Admins, Domain Guests) on the ldap tree. 272 </p></div><div class="refsect2" title="IDMAP DUMP <local tdb file name>"><a name="id30 8778"></a><h3>IDMAP DUMP <local tdb file name></h3><p>272 </p></div><div class="refsect2" title="IDMAP DUMP <local tdb file name>"><a name="id307037"></a><h3>IDMAP DUMP <local tdb file name></h3><p> 273 273 Dumps the mappings contained in the local tdb file specified. 274 274 This command is useful to dump only the mappings produced by the idmap_tdb backend. 275 </p></div><div class="refsect2" title="IDMAP RESTORE [input file]"><a name="id30 8789"></a><h3>IDMAP RESTORE [input file]</h3><p>275 </p></div><div class="refsect2" title="IDMAP RESTORE [input file]"><a name="id307049"></a><h3>IDMAP RESTORE [input file]</h3><p> 276 276 Restore the mappings from the specified file or stdin. 277 </p></div><div class="refsect2" title="IDMAP SECRET <DOMAIN>|ALLOC <secret>"><a name="id30 8800"></a><h3>IDMAP SECRET <DOMAIN>|ALLOC <secret></h3><p>277 </p></div><div class="refsect2" title="IDMAP SECRET <DOMAIN>|ALLOC <secret>"><a name="id307059"></a><h3>IDMAP SECRET <DOMAIN>|ALLOC <secret></h3><p> 278 278 Store a secret for the specified domain, used primarily for domains 279 279 that use idmap_ldap as a backend. In this case the secret is used 280 280 as the password for the user DN used to bind to the ldap server. 281 </p></div><div class="refsect2" title="USERSHARE"><a name="id30 8812"></a><h3>USERSHARE</h3><p>Starting with version 3.0.23, a Samba server now supports the ability for281 </p></div><div class="refsect2" title="USERSHARE"><a name="id307071"></a><h3>USERSHARE</h3><p>Starting with version 3.0.23, a Samba server now supports the ability for 282 282 non-root users to add user defined shares to be exported using the "net usershare" 283 283 commands. … … 308 308 </p><table border="0" summary="Simple list" class="simplelist"><tr><td>net usershare add sharename path [comment [acl] [guest_ok=[y|n]]] - to add or change a user defined share.</td></tr><tr><td>net usershare delete sharename - to delete a user defined share.</td></tr><tr><td>net usershare info [-l|--long] [wildcard sharename] - to print info about a user defined share.</td></tr><tr><td>net usershare list [-l|--long] [wildcard sharename] - to list user defined shares.</td></tr></table><p> 309 309 310 </p><div class="refsect3" title="USERSHARE ADD sharename path [comment] [acl] [guest_ok=[y|n]]"><a name="id30 8857"></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>310 </p><div class="refsect3" title="USERSHARE ADD sharename path [comment] [acl] [guest_ok=[y|n]]"><a name="id307117"></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> 311 311 Add or replace a new user defined share, with name "sharename". 312 312 </p><p> … … 345 345 at connect time so will see the change immediately, there is no need 346 346 to restart smbd on adding, deleting or changing a user defined share. 347 </div><div class="refsect3" title="USERSHARE DELETE sharename"><a name="id30 8914"></a><h4>USERSHARE DELETE <em class="replaceable"><code>sharename</code></em></h4><p>347 </div><div class="refsect3" title="USERSHARE DELETE sharename"><a name="id307173"></a><h4>USERSHARE DELETE <em class="replaceable"><code>sharename</code></em></h4><p> 348 348 Deletes the user defined share by name. The Samba smbd daemon 349 349 immediately notices this change, although it will not disconnect 350 350 any users currently connected to the deleted share. 351 </p></div><div class="refsect3" title="USERSHARE INFO [-l|--long] [wildcard sharename]"><a name="id30 8927"></a><h4>USERSHARE INFO <em class="replaceable"><code>[-l|--long]</code></em> <em class="replaceable"><code>[wildcard sharename]</code></em></h4><p>351 </p></div><div class="refsect3" title="USERSHARE INFO [-l|--long] [wildcard sharename]"><a name="id307187"></a><h4>USERSHARE INFO <em class="replaceable"><code>[-l|--long]</code></em> <em class="replaceable"><code>[wildcard sharename]</code></em></h4><p> 352 352 Get info on user defined shares owned by the current user matching the given pattern, or all users. 353 353 </p><p> … … 368 368 And is a list of the current settings of the user defined share that can be 369 369 modified by the "net usershare add" command. 370 </p></div><div class="refsect3" title="USERSHARE LIST [-l|--long] wildcard sharename"><a name="id30 8955"></a><h4>USERSHARE LIST <em class="replaceable"><code>[-l|--long]</code></em> <em class="replaceable"><code>wildcard sharename</code></em></h4><p>370 </p></div><div class="refsect3" title="USERSHARE LIST [-l|--long] wildcard sharename"><a name="id307214"></a><h4>USERSHARE LIST <em class="replaceable"><code>[-l|--long]</code></em> <em class="replaceable"><code>wildcard sharename</code></em></h4><p> 371 371 List all the user defined shares owned by the current user matching the given pattern, or all users. 372 372 </p><p> … … 376 376 If the '-l' or '--long' option is also given, it includes the names of user defined 377 377 shares created by other users. 378 </p></div></div><div class="refsect2" title="CONF"><a name="id30 8978"></a><h3>CONF</h3><p>Starting with version 3.2.0, a Samba server can be configured by data378 </p></div></div><div class="refsect2" title="CONF"><a name="id307238"></a><h3>CONF</h3><p>Starting with version 3.2.0, a Samba server can be configured by data 379 379 stored in registry. This configuration data can be edited with the new "net 380 380 conf" commands. … … 394 394 format.</td></tr><tr><td>net conf listshares - List the registry shares.</td></tr><tr><td>net conf drop - Delete the complete configuration from 395 395 registry.</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> 396 </p><div class="refsect3" title="CONF LIST"><a name="id30 9083"></a><h4>CONF LIST</h4><p>396 </p><div class="refsect3" title="CONF LIST"><a name="id307342"></a><h4>CONF LIST</h4><p> 397 397 Print the configuration data stored in the registry in a smb.conf-like format to 398 398 standard output. 399 </p></div><div class="refsect3" title="CONF IMPORT [--test|-T] filename [section]"><a name="id30 9093"></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>399 </p></div><div class="refsect3" title="CONF IMPORT [--test|-T] filename [section]"><a name="id307353"></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> 400 400 This command imports configuration from a file in smb.conf format. 401 401 If a section encountered in the input file is present in registry, … … 407 407 the parameter "-T" on the commandline. In test mode, no changes are made to the 408 408 registry, and the resulting configuration is printed to standard output instead. 409 </p></div><div class="refsect3" title="CONF LISTSHARES"><a name="id30 9117"></a><h4>CONF LISTSHARES</h4><p>409 </p></div><div class="refsect3" title="CONF LISTSHARES"><a name="id307377"></a><h4>CONF LISTSHARES</h4><p> 410 410 List the names of the shares defined in registry. 411 </p></div><div class="refsect3" title="CONF DROP"><a name="id30 9127"></a><h4>CONF DROP</h4><p>411 </p></div><div class="refsect3" title="CONF DROP"><a name="id307386"></a><h4>CONF DROP</h4><p> 412 412 Delete the complete configuration data from registry. 413 </p></div><div class="refsect3" title="CONF SHOWSHARE sharename"><a name="id30 9136"></a><h4>CONF SHOWSHARE <em class="replaceable"><code>sharename</code></em></h4><p>413 </p></div><div class="refsect3" title="CONF SHOWSHARE sharename"><a name="id307396"></a><h4>CONF SHOWSHARE <em class="replaceable"><code>sharename</code></em></h4><p> 414 414 Show the definition of the share or section specified. It is valid to specify 415 415 "global" as sharename to retrieve the global configuration options from 416 416 registry. 417 </p></div><div class="refsect3" title="CONF ADDSHARE sharename path [writeable={y|N} [guest_ok={y|N} [comment]]]"><a name="id30 9150"></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.417 </p></div><div class="refsect3" title="CONF ADDSHARE sharename path [writeable={y|N} [guest_ok={y|N} [comment]]]"><a name="id307409"></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. 418 418 The sharename and path have to be given. The share name may 419 419 <span class="emphasis"><em>not</em></span> be "global". Optionally, values for the very … … 421 421 The same result may be obtained by a sequence of "net conf setparm" 422 422 commands. 423 </p></div><div class="refsect3" title="CONF DELSHARE sharename"><a name="id30 9181"></a><h4>CONF DELSHARE <em class="replaceable"><code>sharename</code></em></h4><p>423 </p></div><div class="refsect3" title="CONF DELSHARE sharename"><a name="id307441"></a><h4>CONF DELSHARE <em class="replaceable"><code>sharename</code></em></h4><p> 424 424 Delete a share definition from registry. 425 </p></div><div class="refsect3" title="CONF SETPARM section parameter value"><a name="id30 9193"></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>425 </p></div><div class="refsect3" title="CONF SETPARM section parameter value"><a name="id307452"></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> 426 426 Store a parameter in registry. The section may be global or a sharename. 427 427 The section is created if it does not exist yet. 428 </p></div><div class="refsect3" title="CONF GETPARM section parameter"><a name="id30 9212"></a><h4>CONF GETPARM <em class="replaceable"><code>section</code></em> <em class="replaceable"><code>parameter</code></em></h4><p>428 </p></div><div class="refsect3" title="CONF GETPARM section parameter"><a name="id307472"></a><h4>CONF GETPARM <em class="replaceable"><code>section</code></em> <em class="replaceable"><code>parameter</code></em></h4><p> 429 429 Show a parameter stored in registry. 430 </p></div><div class="refsect3" title="CONF DELPARM section parameter"><a name="id30 9227"></a><h4>CONF DELPARM <em class="replaceable"><code>section</code></em> <em class="replaceable"><code>parameter</code></em></h4><p>430 </p></div><div class="refsect3" title="CONF DELPARM section parameter"><a name="id307487"></a><h4>CONF DELPARM <em class="replaceable"><code>section</code></em> <em class="replaceable"><code>parameter</code></em></h4><p> 431 431 Delete a parameter stored in registry. 432 </p></div><div class="refsect3" title="CONF GETINCLUDES section"><a name="id30 9242"></a><h4>CONF GETINCLUDES <em class="replaceable"><code>section</code></em></h4><p>432 </p></div><div class="refsect3" title="CONF GETINCLUDES section"><a name="id307502"></a><h4>CONF GETINCLUDES <em class="replaceable"><code>section</code></em></h4><p> 433 433 Get the list of includes for the provided section (global or share). 434 434 </p><p> … … 446 446 configuration. In the future, there will be the ability to include configuration 447 447 data from other registry keys. 448 </p></div><div class="refsect3" title="CONF SETINCLUDES section [filename]+"><a name="id30 9269"></a><h4>CONF SETINCLUDES <em class="replaceable"><code>section</code></em> [<em class="replaceable"><code>filename</code></em>]+</h4><p>448 </p></div><div class="refsect3" title="CONF SETINCLUDES section [filename]+"><a name="id307528"></a><h4>CONF SETINCLUDES <em class="replaceable"><code>section</code></em> [<em class="replaceable"><code>filename</code></em>]+</h4><p> 449 449 Set the list of includes for the provided section (global or share) to the given 450 450 list of one or more filenames. The filenames may contain the usual smb.conf 451 451 macros like %I. 452 </p></div><div class="refsect3" title="CONF DELINCLUDES section"><a name="id30 9286"></a><h4>CONF DELINCLUDES <em class="replaceable"><code>section</code></em></h4><p>452 </p></div><div class="refsect3" title="CONF DELINCLUDES section"><a name="id307546"></a><h4>CONF DELINCLUDES <em class="replaceable"><code>section</code></em></h4><p> 453 453 Delete the list of includes from the provided section (global or share). 454 </p></div></div><div class="refsect2" title="EVENTLOG"><a name="id30 9300"></a><h3>EVENTLOG</h3><p>Starting with version 3.4.0 net can read, dump, import and export native454 </p></div></div><div class="refsect2" title="EVENTLOG"><a name="id307559"></a><h3>EVENTLOG</h3><p>Starting with version 3.4.0 net can read, dump, import and export native 455 455 win32 eventlog files (usually *.evt). evt files are used by the native Windows eventviewer tools. 456 456 </p><p> … … 462 462 tdb based representation of eventlogs.</td></tr><tr><td>net eventlog export - Export the samba internal tdb based representation 463 463 of eventlogs into an eventlog *.evt file.</td></tr></table><p> 464 </p><div class="refsect3" title="EVENTLOG DUMP filename"><a name="id30 9350"></a><h4>EVENTLOG DUMP <em class="replaceable"><code>filename</code></em></h4><p>464 </p><div class="refsect3" title="EVENTLOG DUMP filename"><a name="id307610"></a><h4>EVENTLOG DUMP <em class="replaceable"><code>filename</code></em></h4><p> 465 465 Prints a eventlog *.evt file to standard output. 466 </p></div><div class="refsect3" title="EVENTLOG IMPORT filename eventlog"><a name="id30 9362"></a><h4>EVENTLOG IMPORT <em class="replaceable"><code>filename</code></em> <em class="replaceable"><code>eventlog</code></em></h4><p>466 </p></div><div class="refsect3" title="EVENTLOG IMPORT filename eventlog"><a name="id307622"></a><h4>EVENTLOG IMPORT <em class="replaceable"><code>filename</code></em> <em class="replaceable"><code>eventlog</code></em></h4><p> 467 467 Imports a eventlog *.evt file defined by <em class="replaceable"><code>filename</code></em> into the 468 468 samba internal tdb representation of eventlog defined by <em class="replaceable"><code>eventlog</code></em>. … … 470 470 defined in smb.conf. 471 471 See the <a class="citerefentry" href="smb.conf.5.html"><span class="citerefentry"><span class="refentrytitle">smb.conf</span>(5)</span></a> manpage for details. 472 </p></div><div class="refsect3" title="EVENTLOG EXPORT filename eventlog"><a name="id30 9400"></a><h4>EVENTLOG EXPORT <em class="replaceable"><code>filename</code></em> <em class="replaceable"><code>eventlog</code></em></h4><p>472 </p></div><div class="refsect3" title="EVENTLOG EXPORT filename eventlog"><a name="id307660"></a><h4>EVENTLOG EXPORT <em class="replaceable"><code>filename</code></em> <em class="replaceable"><code>eventlog</code></em></h4><p> 473 473 Exports the samba internal tdb representation of eventlog defined by <em class="replaceable"><code>eventlog</code></em> 474 474 to a eventlog *.evt file defined by <em class="replaceable"><code>filename</code></em>. … … 476 476 defined in smb.conf. 477 477 See the <a class="citerefentry" href="smb.conf.5.html"><span class="citerefentry"><span class="refentrytitle">smb.conf</span>(5)</span></a> manpage for details. 478 </p></div></div><div class="refsect2" title="DOM"><a name="id30 9439"></a><h3>DOM</h3><p>Starting with version 3.2.0 Samba has support for remote join and unjoin APIs, both client and server-side. Windows supports remote join capabilities since Windows 2000.478 </p></div></div><div class="refsect2" title="DOM"><a name="id307698"></a><h3>DOM</h3><p>Starting with version 3.2.0 Samba has support for remote join and unjoin APIs, both client and server-side. Windows supports remote join capabilities since Windows 2000. 479 479 </p><p>In order for Samba to be joined or unjoined remotely an account must be used that is either member of the Domain Admins group, a member of the local Administrators group or a user that is granted the SeMachineAccountPrivilege privilege. 480 480 </p><p>The client side support for remote join is implemented in the net dom commands which are: 481 481 </p><table border="0" summary="Simple list" class="simplelist"><tr><td>net dom join - Join a remote computer into a domain.</td></tr><tr><td>net dom unjoin - Unjoin a remote computer from a domain.</td></tr><tr><td>net dom renamecomputer - Renames a remote computer joined to a domain.</td></tr></table><p> 482 </p><div class="refsect3" title="DOM JOIN domain=DOMAIN ou=OU account=ACCOUNT password=PASSWORD reboot"><a name="id30 9475"></a><h4>DOM JOIN <em class="replaceable"><code>domain=DOMAIN</code></em> <em class="replaceable"><code>ou=OU</code></em> <em class="replaceable"><code>account=ACCOUNT</code></em> <em class="replaceable"><code>password=PASSWORD</code></em> <em class="replaceable"><code>reboot</code></em></h4><p>482 </p><div class="refsect3" title="DOM JOIN domain=DOMAIN ou=OU account=ACCOUNT password=PASSWORD reboot"><a name="id307734"></a><h4>DOM JOIN <em class="replaceable"><code>domain=DOMAIN</code></em> <em class="replaceable"><code>ou=OU</code></em> <em class="replaceable"><code>account=ACCOUNT</code></em> <em class="replaceable"><code>password=PASSWORD</code></em> <em class="replaceable"><code>reboot</code></em></h4><p> 483 483 Joins a computer into a domain. This command supports the following additional parameters: 484 484 </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p><em class="replaceable"><code>DOMAIN</code></em> can be a NetBIOS domain name (also known as short domain name) or a DNS domain name for Active Directory Domains. As in Windows, it is also possible to control which Domain Controller to use. This can be achieved by appending the DC name using the \ separator character. Example: MYDOM\MYDC. The <em class="replaceable"><code>DOMAIN</code></em> parameter cannot be NULL.</p></li><li class="listitem"><p><em class="replaceable"><code>OU</code></em> can be set to a RFC 1779 LDAP DN, like <span class="emphasis"><em>ou=mymachines,cn=Users,dc=example,dc=com</em></span> in order to create the machine account in a non-default LDAP containter. This optional parameter is only supported when joining Active Directory Domains.</p></li><li class="listitem"><p><em class="replaceable"><code>ACCOUNT</code></em> defines a domain account that will be used to join the machine to the domain. This domain account needs to have sufficient privileges to join machines.</p></li><li class="listitem"><p><em class="replaceable"><code>PASSWORD</code></em> defines the password for the domain account defined with <em class="replaceable"><code>ACCOUNT</code></em>.</p></li><li class="listitem"><p><em class="replaceable"><code>REBOOT</code></em> is an optional parameter that can be set to reboot the remote machine after successful join to the domain.</p></li></ul></div><p> … … 489 489 </p><p> 490 490 This example would connect to a computer named XP as the local administrator using password secret, and join the computer into a domain called MYDOM using the MYDOM domain administrator account and password topsecret. After successful join, the computer would reboot. 491 </p></div><div class="refsect3" title="DOM UNJOIN account=ACCOUNT password=PASSWORD reboot"><a name="id30 9567"></a><h4>DOM UNJOIN <em class="replaceable"><code>account=ACCOUNT</code></em> <em class="replaceable"><code>password=PASSWORD</code></em> <em class="replaceable"><code>reboot</code></em></h4><p>491 </p></div><div class="refsect3" title="DOM UNJOIN account=ACCOUNT password=PASSWORD reboot"><a name="id307827"></a><h4>DOM UNJOIN <em class="replaceable"><code>account=ACCOUNT</code></em> <em class="replaceable"><code>password=PASSWORD</code></em> <em class="replaceable"><code>reboot</code></em></h4><p> 492 492 Unjoins a computer from a domain. This command supports the following additional parameters: 493 493 </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p><em class="replaceable"><code>ACCOUNT</code></em> defines a domain account that will be used to unjoin the machine from the domain. This domain account needs to have sufficient privileges to unjoin machines.</p></li><li class="listitem"><p><em class="replaceable"><code>PASSWORD</code></em> defines the password for the domain account defined with <em class="replaceable"><code>ACCOUNT</code></em>.</p></li><li class="listitem"><p><em class="replaceable"><code>REBOOT</code></em> is an optional parameter that can be set to reboot the remote machine after successful unjoin from the domain.</p></li></ul></div><p> … … 498 498 </p><p> 499 499 This example would connect to a computer named XP as the local administrator using password secret, and unjoin the computer from the domain using the MYDOM domain administrator account and password topsecret. After successful unjoin, the computer would reboot. 500 </p></div><div class="refsect3" title="DOM RENAMECOMPUTER newname=NEWNAME account=ACCOUNT password=PASSWORD reboot"><a name="id30 9630"></a><h4>DOM RENAMECOMPUTER <em class="replaceable"><code>newname=NEWNAME</code></em> <em class="replaceable"><code>account=ACCOUNT</code></em> <em class="replaceable"><code>password=PASSWORD</code></em> <em class="replaceable"><code>reboot</code></em></h4><p>500 </p></div><div class="refsect3" title="DOM RENAMECOMPUTER newname=NEWNAME account=ACCOUNT password=PASSWORD reboot"><a name="id307889"></a><h4>DOM RENAMECOMPUTER <em class="replaceable"><code>newname=NEWNAME</code></em> <em class="replaceable"><code>account=ACCOUNT</code></em> <em class="replaceable"><code>password=PASSWORD</code></em> <em class="replaceable"><code>reboot</code></em></h4><p> 501 501 Renames a computer that is joined to a domain. This command supports the following additional parameters: 502 502 </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p><em class="replaceable"><code>NEWNAME</code></em> defines the new name of the machine in the domain.</p></li><li class="listitem"><p><em class="replaceable"><code>ACCOUNT</code></em> defines a domain account that will be used to rename the machine in the domain. This domain account needs to have sufficient privileges to rename machines.</p></li><li class="listitem"><p><em class="replaceable"><code>PASSWORD</code></em> defines the password for the domain account defined with <em class="replaceable"><code>ACCOUNT</code></em>.</p></li><li class="listitem"><p><em class="replaceable"><code>REBOOT</code></em> is an optional parameter that can be set to reboot the remote machine after successful rename in the domain.</p></li></ul></div><p> … … 507 507 </p><p> 508 508 This example would connect to a computer named XP as the local administrator using password secret, and rename the joined computer to XPNEW using the MYDOM domain administrator account and password topsecret. After successful rename, the computer would reboot. 509 </p></div></div><div class="refsect2" title="G_LOCK"><a name="id30 9704"></a><h3>G_LOCK</h3><p>Manage global locks.</p><div class="refsect3" title="G_LOCK DO lockname timeout command"><a name="id309712"></a><h4>G_LOCK DO <em class="replaceable"><code>lockname</code></em> <em class="replaceable"><code>timeout</code></em> <em class="replaceable"><code>command</code></em></h4><p>509 </p></div></div><div class="refsect2" title="G_LOCK"><a name="id307963"></a><h3>G_LOCK</h3><p>Manage global locks.</p><div class="refsect3" title="G_LOCK DO lockname timeout command"><a name="id307972"></a><h4>G_LOCK DO <em class="replaceable"><code>lockname</code></em> <em class="replaceable"><code>timeout</code></em> <em class="replaceable"><code>command</code></em></h4><p> 510 510 Execute a shell command under a global lock. This might be useful to define the 511 511 order in which several shell commands will be executed. The locking information 512 512 is stored in a file called <code class="filename">g_lock.tdb</code>. In setups with CTDB 513 513 running, the locking information will be available on all cluster nodes. 514 </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p><em class="replaceable"><code>LOCKNAME</code></em> defines the name of the global lock.</p></li><li class="listitem"><p><em class="replaceable"><code>TIMEOUT</code></em> defines the timeout.</p></li><li class="listitem"><p><em class="replaceable"><code>COMMAND</code></em> defines the shell command to execute.</p></li></ul></div></div><div class="refsect3" title="G_LOCK LOCKS"><a name="id30 9760"></a><h4>G_LOCK LOCKS</h4><p>514 </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p><em class="replaceable"><code>LOCKNAME</code></em> defines the name of the global lock.</p></li><li class="listitem"><p><em class="replaceable"><code>TIMEOUT</code></em> defines the timeout.</p></li><li class="listitem"><p><em class="replaceable"><code>COMMAND</code></em> defines the shell command to execute.</p></li></ul></div></div><div class="refsect3" title="G_LOCK LOCKS"><a name="id308020"></a><h4>G_LOCK LOCKS</h4><p> 515 515 Print a list of all currently existing locknames. 516 </p></div><div class="refsect3" title="G_LOCK DUMP lockname"><a name="id30 9770"></a><h4>G_LOCK DUMP <em class="replaceable"><code>lockname</code></em></h4><p>516 </p></div><div class="refsect3" title="G_LOCK DUMP lockname"><a name="id308030"></a><h4>G_LOCK DUMP <em class="replaceable"><code>lockname</code></em></h4><p> 517 517 Dump the locking table of a certain global lock. 518 </p></div></div><div class="refsect2" title="HELP [COMMAND]"><a name="id30 9783"></a><h3>HELP [COMMAND]</h3><p>Gives usage information for the specified command.</p></div></div><div class="refsect1" title="VERSION"><a name="id309794"></a><h2>VERSION</h2><p>This man page is complete for version 3 of the Samba519 suite.</p></div><div class="refsect1" title="AUTHOR"><a name="id30 9804"></a><h2>AUTHOR</h2><p>The original Samba software and related utilities518 </p></div></div><div class="refsect2" title="HELP [COMMAND]"><a name="id308042"></a><h3>HELP [COMMAND]</h3><p>Gives usage information for the specified command.</p></div></div><div class="refsect1" title="VERSION"><a name="id308053"></a><h2>VERSION</h2><p>This man page is complete for version 3 of the Samba 519 suite.</p></div><div class="refsect1" title="AUTHOR"><a name="id308063"></a><h2>AUTHOR</h2><p>The original Samba software and related utilities 520 520 were created by Andrew Tridgell. Samba is now developed 521 521 by the Samba Team as an Open Source project similar
Note:
See TracChangeset
for help on using the changeset viewer.