Initial import
[samba] / docs / htmldocs / manpages / net.8.html
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.68.1"></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
2         CIFS servers.
3         </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">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="id2450648"></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 
4         available for windows and DOS. The first argument should be used 
5         to specify the protocol to use when executing a certain command. 
6         ADS is used for ActiveDirectory, RAP is using for old (Win9x/NT3) 
7         clients and RPC can be used for NT4 and Windows 2000. If this 
8         argument is omitted, net will try to determine it automatically. 
9         Not all commands are available on all protocols.
10         </p></div><div class="refsect1" lang="en"><a name="id2450677"></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 </p></dd><dt><span class="term">-w target-workgroup</span></dt><dd><p>
12                 Sets target workgroup or domain. You have to specify 
13                 either this option or the IP address or the name of a server.
14                 </p></dd><dt><span class="term">-W workgroup</span></dt><dd><p>
15                 Sets client workgroup or domain
16                 </p></dd><dt><span class="term">-U user</span></dt><dd><p>
17                 User name to use
18                 </p></dd><dt><span class="term">-I ip-address</span></dt><dd><p>
19                 IP address of target server to use. You have to
20                 specify either this option or a target workgroup or
21                 a target server.
22                 </p></dd><dt><span class="term">-p port</span></dt><dd><p>
23                 Port on the target server to connect to (usually 139 or 445). 
24                 Defaults to trying 445 first, then 139.
25                 </p></dd><dt><span class="term">-n &lt;primary NetBIOS name&gt;</span></dt><dd><p>This option allows you to override
26 the NetBIOS name that Samba uses for itself. This is identical
27 to setting the <a class="indexterm" name="id2450771"></a> parameter in the <code class="filename">smb.conf</code> file. 
28 However, a command
29 line setting will take precedence over settings in
30 <code class="filename">smb.conf</code>.</p></dd><dt><span class="term">-s &lt;configuration file&gt;</span></dt><dd><p>The file specified contains the 
31 configuration details required by the server.  The 
32 information in this file includes server-specific
33 information such as what printcap file to use, as well 
34 as descriptions of all the services that the server is 
35 to provide. See <code class="filename">smb.conf</code> for more information.
36 The default configuration file name is determined at 
37 compile time.</p></dd><dt><span class="term">-S server</span></dt><dd><p>
38                 Name of target server. You should specify either 
39                 this option or a target workgroup or a target IP address.
40                 </p></dd><dt><span class="term">-l</span></dt><dd><p>
41                 When listing data, give more information on each item.
42                 </p></dd><dt><span class="term">-P</span></dt><dd><p>
43                 Make queries to the external server using the machine account of the local server.
44                 </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 
47 logged to the log files about the activities of the 
48 server. At level 0, only critical errors and serious 
49 warnings will be logged. Level 1 is a reasonable level for
50 day-to-day running - it generates a small amount of 
51 information about operations carried out.</p><p>Levels above 1 will generate considerable 
52 amounts of log data, and should only be used when 
53 investigating a problem. Levels above 3 are designed for 
54 use only by developers and generate HUGE amounts of log
55 data, most of which is extremely cryptic.</p><p>Note that specifying this parameter here will 
56 override the <a class="indexterm" name="id2450956"></a> parameter
57 in the <code class="filename">smb.conf</code> file.</p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id2450973"></a><h2>COMMANDS</h2><div class="refsect2" lang="en"><a name="id2450979"></a><h3>CHANGESECRETPW</h3><p>This command allows the Samba machine account password to be set from an external application
58 to a machine account password that has already been stored in Active Directory. DO NOT USE this command
59 unless you know exactly what you are doing. The use of this command requires that the force flag (-f)
60 be used also. There will be NO command prompt. Whatever information is piped into stdin, either by
61 typing at the command line or otherwise, will be stored as the literal machine password. Do NOT use
62 this without care and attention as it will overwrite a legitimate machine password without warning.
63 YOU HAVE BEEN WARNED.
64 </p></div><div class="refsect2" lang="en"><a name="id2450999"></a><h3>TIME</h3><p>The <span><strong class="command">NET TIME</strong></span> 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="id2451016"></a><h4>TIME</h4><p>Without any options, the <span><strong class="command">NET TIME</strong></span> command 
66 displays the time on the remote server.
67 </p></div><div class="refsect3" lang="en"><a name="id2451034"></a><h4>TIME SYSTEM</h4><p>Displays the time on the remote server in a format ready for <span><strong class="command">/bin/date</strong></span></p></div><div class="refsect3" lang="en"><a name="id2451049"></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 <span><strong class="command">/bin/date</strong></span>. </p></div><div class="refsect3" lang="en"><a name="id2451067"></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="id2451079"></a><h3>[RPC|ADS] JOIN [TYPE] [-U username[%password]] [options]</h3><p>
69 Join a domain.  If the account already exists on the server, and 
70 [TYPE] is MEMBER, the machine will attempt to join automatically. 
71 (Assuming that the machine has been created in server manager)
72 Otherwise, a password will be prompted for, and a new account may
73 be created.</p><p>
74 [TYPE] may be PDC, BDC or MEMBER to specify the type of server
75 joining the domain.
76 </p></div><div class="refsect2" lang="en"><a name="id2451099"></a><h3>[RPC] OLDJOIN [options]</h3><p>Join a domain. Use the OLDJOIN option to join the domain 
77 using the old style of domain joining - you need to create a trust 
78 account in server manager first.</p></div><div class="refsect2" lang="en"><a name="id2451112"></a><h3>[RPC|ADS] USER</h3><div class="refsect3" lang="en"><a name="id2451118"></a><h4>[RPC|ADS] USER</h4><p>List all users</p></div><div class="refsect3" lang="en"><a name="id2451128"></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="id2451357"></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="id2451371"></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="id2451387"></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="id2451402"></a><h3>[RPC|ADS] GROUP</h3><div class="refsect3" lang="en"><a name="id2451408"></a><h4>[RPC|ADS] GROUP [misc options] [targets]</h4><p>List user groups.</p></div><div class="refsect3" lang="en"><a name="id2451418"></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="id2451433"></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="id2451448"></a><h3>[RAP|RPC] SHARE</h3><div class="refsect3" lang="en"><a name="id2451454"></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="id2451466"></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 
79 specifies the number of users that can be connected to the 
80 share simultaneously.</p></div><div class="refsect3" lang="en"><a name="id2451483"></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="id2451497"></a><h3>[RPC|RAP] FILE</h3><div class="refsect3" lang="en"><a name="id2451502"></a><h4>[RPC|RAP] FILE</h4><p>List all open files on remote server.</p></div><div class="refsect3" lang="en"><a name="id2451513"></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 
81 remote server.</p></div><div class="refsect3" lang="en"><a name="id2451530"></a><h4>[RPC|RAP] FILE INFO <em class="replaceable"><code>fileid</code></em></h4><p>
82 Print information on specified <em class="replaceable"><code>fileid</code></em>. 
83 Currently listed are: file-id, username, locks, path, permissions.
84 </p></div><div class="refsect3" lang="en"><a name="id2451548"></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="id2451560"></a><h3>SESSION</h3><div class="refsect3" lang="en"><a name="id2451566"></a><h4>RAP SESSION</h4><p>Without any other options, SESSION enumerates all active SMB/CIFS 
85 sessions on the target server.</p></div><div class="refsect3" lang="en"><a name="id2451577"></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="id2451590"></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="id2451604"></a><h3>RAP SERVER <em class="replaceable"><code>DOMAIN</code></em></h3><p>List all servers in specified domain or workgroup. Defaults
86 to local domain.</p></div><div class="refsect2" lang="en"><a name="id2451618"></a><h3>RAP DOMAIN</h3><p>Lists all domains and workgroups visible on the 
87 current network.</p></div><div class="refsect2" lang="en"><a name="id2451629"></a><h3>RAP PRINTQ</h3><div class="refsect3" lang="en"><a name="id2451635"></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.
88 If the <em class="replaceable"><code>QUEUE_NAME</code></em> is omitted, all 
89 queues are listed.</p></div><div class="refsect3" lang="en"><a name="id2451653"></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="id2451666"></a><h3>RAP VALIDATE <em class="replaceable"><code>user</code></em> [<em class="replaceable"><code>password</code></em>]</h3><p>
90 Validate whether the specified user can log in to the 
91 remote server. If the password is not specified on the commandline, it 
92 will be prompted. 
93 </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="id2451691"></a><h3>RAP GROUPMEMBER</h3><div class="refsect3" lang="en"><a name="id2451696"></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="id2451710"></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="id2451726"></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="id2451744"></a><h3>RAP ADMIN <em class="replaceable"><code>command</code></em></h3><p>Execute the specified <em class="replaceable"><code>command</code></em> on 
94 the remote server. Only works with OS/2 servers.
95 </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="id2451766"></a><h3>RAP SERVICE</h3><div class="refsect3" lang="en"><a name="id2451772"></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="id2498427"></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="id2498442"></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>
96 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>.
97 </p></div><div class="refsect2" lang="en"><a name="id2498472"></a><h3>LOOKUP</h3><div class="refsect3" lang="en"><a name="id2498478"></a><h4>LOOKUP HOST <em class="replaceable"><code>HOSTNAME</code></em> [<em class="replaceable"><code>TYPE</code></em>]</h4><p>
98 Lookup the IP address of the given host with the specified type (netbios suffix). 
99 The type defaults to 0x20 (workstation).
100 </p></div><div class="refsect3" lang="en"><a name="id2498497"></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="id2498514"></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>.
101 Defaults to local realm.</p></div><div class="refsect3" lang="en"><a name="id2498533"></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>
102 DOMAIN</code></em>. Defaults to local domain.</p></div><div class="refsect3" lang="en"><a name="id2498551"></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>
103 or workgroup. Defaults to local domain.</p></div></div><div class="refsect2" lang="en"><a name="id2498570"></a><h3>CACHE</h3><p>Samba uses a general caching interface called 'gencache'. It 
104 can be controlled using 'NET CACHE'.</p><p>All the timeout parameters support the suffixes:
105
106 </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>
107
108 </p><div class="refsect3" lang="en"><a name="id2498607"></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="id2498627"></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="id2498640"></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="id2498659"></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="id2498673"></a><h4>CACHE LIST</h4><p>
109 List all current items in the cache.
110 </p></div><div class="refsect3" lang="en"><a name="id2498683"></a><h4>CACHE FLUSH</h4><p>Remove all the current items from the cache.</p></div></div><div class="refsect2" lang="en"><a name="id2498695"></a><h3>GETLOCALSID [DOMAIN]</h3><p>Print the SID of the specified domain, or if the parameter is
111 omitted, the SID of the domain the local server is in.</p></div><div class="refsect2" lang="en"><a name="id2498707"></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="id2498719"></a><h3>GROUPMAP</h3><p>Manage the mappings between Windows group SIDs and UNIX groups.
112 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
113   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',
114   or 'builtin'</p></li><li><p>comment - Freeform text description of the group</p></li></ul></div><div class="refsect3" lang="en"><a name="id2498764"></a><h4>GROUPMAP ADD</h4><p>
115 Add a new group mapping entry:
116 </p><pre class="programlisting">
117 net groupmap add {rid=int|sid=string} unixgroup=string \
118       [type={domain|local}] [ntgroup=string] [comment=string]
119 </pre><p>
120 </p></div><div class="refsect3" lang="en"><a name="id2498782"></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="id2498798"></a><h4>GROUPMAP MODIFY</h4><p>Update en existing group entry</p><p>
121 </p><pre class="programlisting">
122 net groupmap modify {ntgroup=string|sid=SID} [unixgroup=string] \
123        [comment=string] [type={domain|local}]
124 </pre><p>
125 </p></div><div class="refsect3" lang="en"><a name="id2498820"></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="id2498836"></a><h3>MAXRID</h3><p>Prints out the highest RID currently in use on the local
126 server (by the active 'passdb backend').
127 </p></div><div class="refsect2" lang="en"><a name="id2498848"></a><h3>RPC INFO</h3><p>Print information about the domain of the remote server,
128 such as domain name, domain sid and number of users and groups.
129 </p></div><div class="refsect2" lang="en"><a name="id2498860"></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="id2498871"></a><h3>[RPC|ADS] CHANGETRUSTPW</h3><p>Force change of domain trust password.</p></div><div class="refsect2" lang="en"><a name="id2498882"></a><h3>RPC TRUSTDOM</h3><div class="refsect3" lang="en"><a name="id2498887"></a><h4>RPC TRUSTDOM ADD <em class="replaceable"><code>DOMAIN</code></em></h4><p>Add a interdomain trust account for 
130 <em class="replaceable"><code>DOMAIN</code></em> to the remote server. 
131 </p></div><div class="refsect3" lang="en"><a name="id2498904"></a><h4>RPC TRUSTDOM DEL <em class="replaceable"><code>DOMAIM</code></em></h4><p>Remove interdomain trust account for 
132 <em class="replaceable"><code>DOMAIN</code></em> from the remote server. 
133 </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="id2498926"></a><h4>RPC TRUSTDOM ESTABLISH <em class="replaceable"><code>DOMAIN</code></em></h4><p>
134 Establish a trust relationship to a trusting domain. 
135 Interdomain account must already be created on the remote PDC.
136 </p></div><div class="refsect3" lang="en"><a name="id2498941"></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="id2498954"></a><h4>RPC TRUSTDOM LIST</h4><p>List all current interdomain trust relationships.</p></div><div class="refsect3" lang="en"><a name="id2498965"></a><h4>RPC RIGHTS</h4><p>This subcommand is used to view and manage Samba's rights assignments (also 
137 referred to as privileges).  There are three options current available: 
138 <em class="parameter"><code>list</code></em>, <em class="parameter"><code>grant</code></em>, and 
139 <em class="parameter"><code>revoke</code></em>.  More details on Samba's privilege model and its use
140 can be found in the Samba-HOWTO-Collection.</p></div></div><div class="refsect2" lang="en"><a name="id2498999"></a><h3>RPC ABORTSHUTDOWN</h3><p>Abort the shutdown of a remote server.</p></div><div class="refsect2" lang="en"><a name="id2499009"></a><h3>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>
141 Reboot after shutdown.
142 </p></dd><dt><span class="term">-f</span></dt><dd><p>
143 Force shutting down all applications.
144 </p></dd><dt><span class="term">-t timeout</span></dt><dd><p>
145 Timeout before system will be shut down. An interactive 
146 user of the system can use this time to cancel the shutdown.
147 </p></dd><dt><span class="term">-C message</span></dt><dd><p>Display the specified message on the screen to 
148 announce the shutdown.</p></dd></dl></div></div><div class="refsect2" lang="en"><a name="id2499072"></a><h3>SAMDUMP</h3><p>Print out sam database of remote server. You need
149 to run this on either a BDC. </p></div><div class="refsect2" lang="en"><a name="id2499085"></a><h3>VAMPIRE</h3><p>Export users, aliases and groups from remote server to 
150 local server. Can only be run an a BDC.
151 </p></div><div class="refsect2" lang="en"><a name="id2499097"></a><h3>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="id2499113"></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="id2499124"></a><h3>ADS STATUS</h3><p>Print out status of machine account of the local machine in ADS.
152 Prints out quite some debug info. Aimed at developers, regular 
153 users should use <span><strong class="command">NET ADS TESTJOIN</strong></span>.</p></div><div class="refsect2" lang="en"><a name="id2499142"></a><h3>ADS PRINTER</h3><div class="refsect3" lang="en"><a name="id2499148"></a><h4>ADS PRINTER INFO [<em class="replaceable"><code>PRINTER</code></em>] [<em class="replaceable"><code>SERVER</code></em>]</h4><p>
154 Lookup info for <em class="replaceable"><code>PRINTER</code></em> on <em class="replaceable"><code>SERVER</code></em>. The printer name defaults to "*", the 
155 server name defaults to the local host.</p></div><div class="refsect3" lang="en"><a name="id2499174"></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="id2499187"></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="id2499202"></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 
156 expression is a standard LDAP search expression, and the 
157 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>
158 </p></div><div class="refsect2" lang="en"><a name="id2499231"></a><h3>ADS DN <em class="replaceable"><code>DN</code></em> <em class="replaceable"><code>(attributes)</code></em></h3><p>
159 Perform a raw LDAP search on a ADS server and dump the results. The 
160 DN standard LDAP DN, and the attributes are a list of LDAP fields 
161 to show in the result. 
162 </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="id2499258"></a><h3>WORKGROUP</h3><p>Print out workgroup name for specified kerberos realm.</p></div><div class="refsect2" lang="en"><a name="id2499269"></a><h3>HELP [COMMAND]</h3><p>Gives usage information for the specified command.</p></div></div><div class="refsect1" lang="en"><a name="id2499281"></a><h2>VERSION</h2><p>This man page is complete for version 3.0 of the Samba 
163         suite.</p></div><div class="refsect1" lang="en"><a name="id2499292"></a><h2>AUTHOR</h2><p>The original Samba software and related utilities 
164         were created by Andrew Tridgell. Samba is now developed
165         by the Samba Team as an Open Source project similar 
166         to the way the Linux kernel is developed.</p><p>The net manpage was written by Jelmer Vernooij.</p></div></div></body></html>