summaryrefslogtreecommitdiff
path: root/docs/docbook/manpages/net.8.sgml
blob: 62cee8c1d72cb04b794d2b985900e14ec9074794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
<refentry id="net.8">

<refmeta>
	<refentrytitle>net</refentrytitle>
	<manvolnum>8</manvolnum>
</refmeta>


<refnamediv>
	<refname>net</refname>
	<refpurpose>Tool for administration of Samba and remote
	CIFS servers.</refpurpose>
</refnamediv>

<refsynopsisdiv>
	<cmdsynopsis>
		<command>net</command>
		<arg choice="req">&lt;ads|rap|rpc&gt;</arg>
		<arg choice="opt">-h</arg>
		<arg choice="opt">-w workgroup</arg>
		<arg choice="opt">-W myworkgroup</arg>
		<arg choice="opt">-U user</arg>
		<arg choice="opt">-I ip-address</arg>
		<arg choice="opt">-p port</arg>
		<arg choice="opt">-n myname</arg>
		<arg choice="opt">-s conffile</arg>
		<arg choice="opt">-S server</arg>
		<arg choice="opt">-C comment</arg>
		<arg choice="opt">-M maxusers</arg>
		<arg choice="opt">-F flags</arg>
		<arg choice="opt">-j jobid</arg>
		<arg choice="opt">-l</arg>
		<arg choice="opt">-r</arg>
		<arg choice="opt">-f</arg>
		<arg choice="opt">-t timeout</arg>
		<arg choice="opt">-P</arg>
		<arg choice="opt">-D debuglevel</arg>
	</cmdsynopsis>
</refsynopsisdiv>

<refsect1>
	<title>DESCRIPTION</title>

	<para>This tool is part of the <citerefentry><refentrytitle>Samba</refentrytitle>
	<manvolnum>7</manvolnum></citerefentry> suite.</para>

	<para>The samba net utility is meant to work just like the net utility 
	available for windows and DOS.</para>

</refsect1>

<refsect1>
	<title>OPTIONS</title>

	<variablelist>
		<varlistentry>
		<term>-h</term>
		<listitem><para>
		Display summary of all available options.
		
		</para></listitem>
		</varlistentry>
		
		<varlistentry>
		<term>-w target-workgroup</term>
		<listitem><para>
		Sets target workgroup or domain. You have to specify 
		either this option or the IP address or the name of a server.
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>-W workgroup</term>
		<listitem><para>
		Sets client workgroup or domain
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>-U user</term>
		<listitem><para>
		User name to use
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>-I ip-address</term>
		<listitem><para>
		IP address of target server to use. You have to
		specify either this option or a target workgroup or a target server.
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>-p port</term>
		<listitem><para>
		Port on the target server to connect to.
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>-n myname</term>
		<listitem><para>
		Sets name of the client.
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>-s conffile</term>
		<listitem><para>
		Specify alternative configuration file that should be loaded.
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>-S server</term>
		<listitem><para>
		Name of target server. You should specify either 
		this option or a target workgroup or a target IP address.
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>-C comment</term>
		<listitem><para>
		FIXME
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>-M maxusers</term>
		<listitem><para>
		FIXME
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>-F flags</term>
		<listitem><para>
		FIXME
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>-j jobid</term>
		<listitem><para>
		FIXME
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>-l</term>
		<listitem><para>
		FIXME
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>-r</term>
		<listitem><para>
		FIXME
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>-f</term>
		<listitem><para>
		FIXME
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>-t timeout</term>
		<listitem><para>
		FIXME
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>-P</term>
		<listitem><para>
		Make queries to the external server using the machine account of the local server.
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>-D debuglevel</term>
		<listitem><para>set the debuglevel. Debug level 0 is the lowest
		and 100 being the highest. This should be set to 100 if you are
		planning on submitting a bug report to the Samba team (see
		<filename>BUGS.txt</filename>).
		</para></listitem>
		</varlistentry>
	</variablelist>
</refsect1>


<refsect1>
	<title>TIME</title>

	<para>The <command>NET TIME</command> command allows you to view the time on a remote server
	or synchronise the time on the local server with the time on the remote server.</para>

	<variablelist>
		<varlistentry>
		<term></term>
		<listitem><para>
		Without any options, the <command>NET TIME</command> command 
		displays the time on the remote server.
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>SYSTEM</term>
		<listitem><para>
		Displays the time on the remote server in a format ready for <command>/bin/date</command>
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>SET</term>
		<listitem><para>
		Tries to set the date and time of the local server to that on 
		the remote server using <command>/bin/date</command>.
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>ZONE</term>
		<listitem><para>
		Displays the timezone in hours from GMT on the remote computer.
		</para></listitem>
		</varlistentry>
	</variablelist>
</refsect1>

<refsect1>
	<title>RPC</title>

	<para>The <command>NET RPC</command> command allows you to do various 
	NT4 operations.</para>

	<variablelist>
		<varlistentry>
		<term>JOIN -U username[%password] [options]</term>
		<listitem><para>
		Join a domain with specified username and password. Password 
		will be prompted if none is specified.</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>JOIN [options except -U]</term>
		<listitem><para>
		to join a domain created in server manager
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>USER [misc. options] [targets]</term>
		<listitem><para>
		List users
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>USER DELETE &lt;name&gt; [misc options]</term>
		<listitem><para>
		delete specified user
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>USER INFO &lt;name&gt; [misc options]</term>
		<listitem><para>
		list the domain groups of the specified user
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>USER ADD &lt;name&gt; [password] [-F user flags] [misc. options]</term>
		<listitem><para>
		Add specified user
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>GROUP [misc options] [targets]</term>
		<listitem><para>
		List user groups
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>GROUP DELETE &lt;name&gt; [misc. options] [targets]</term>
		<listitem><para>
		Delete specified group
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>GROUP ADD &lt;name&gt; [-C comment]</term>
		<listitem><para>
		Create specified group
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>SHARE [misc. options] [targets]</term>
		<listitem><para>
		enumerates all exported resources (network shares) on target server
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>SHARE ADD &lt;name=serverpath&gt; [misc. options] [targets]</term>
		<listitem><para>
		Adds a share from a server (makes the export active)
		</para></listitem>
		</varlistentry>

		<varlistentry>
		<term>SHARE DELETE &lt;sharenam</term>
		<listitem><para></para></listitem>
		</varlistentry>
	</variablelist>
</refsect1>

<refsect1>
	<title>VERSION</title>

	<para>This man page is incomplete for version 3.0 of the Samba 
	suite.</para>
</refsect1>

<refsect1>
	<title>AUTHOR</title>
	
	<para>The original Samba software and related utilities 
	were created by Andrew Tridgell. Samba is now developed
	by the Samba Team as an Open Source project similar 
	to the way the Linux kernel is developed.</para>

	<para>The original Samba man pages were written by Karl Auer.
	The current set of manpages and documentation is maintained
	by the Samba Team in the same fashion as the Samba source code.</para>
	
</refsect1>

</refentry>