mirror of
https://github.com/samba-team/samba.git
synced 2025-01-28 17:47:29 +03:00
414 lines
5.9 KiB
HTML
414 lines
5.9 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>net</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"></HEAD
|
|
><BODY
|
|
CLASS="REFENTRY"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><H1
|
|
><A
|
|
NAME="NET.8"
|
|
></A
|
|
>net</H1
|
|
><DIV
|
|
CLASS="REFNAMEDIV"
|
|
><A
|
|
NAME="AEN5"
|
|
></A
|
|
><H2
|
|
>Name</H2
|
|
>net -- Tool for administration of Samba and remote
|
|
CIFS servers.</DIV
|
|
><DIV
|
|
CLASS="REFSYNOPSISDIV"
|
|
><A
|
|
NAME="AEN8"
|
|
></A
|
|
><H2
|
|
>Synopsis</H2
|
|
><P
|
|
><B
|
|
CLASS="COMMAND"
|
|
>net</B
|
|
> {<ads|rap|rpc>} [-h] [-w workgroup] [-W myworkgroup] [-U user] [-I ip-address] [-p port] [-n myname] [-s conffile] [-S server] [-C comment] [-M maxusers] [-F flags] [-j jobid] [-l] [-r] [-f] [-t timeout] [-P] [-D debuglevel]</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="REFSECT1"
|
|
><A
|
|
NAME="AEN31"
|
|
></A
|
|
><H2
|
|
>DESCRIPTION</H2
|
|
><P
|
|
>This tool is part of the <SPAN
|
|
CLASS="CITEREFENTRY"
|
|
><SPAN
|
|
CLASS="REFENTRYTITLE"
|
|
>Samba</SPAN
|
|
>(7)</SPAN
|
|
> suite.</P
|
|
><P
|
|
>The samba net utility is meant to work just like the net utility
|
|
available for windows and DOS.</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="REFSECT1"
|
|
><A
|
|
NAME="AEN38"
|
|
></A
|
|
><H2
|
|
>OPTIONS</H2
|
|
><P
|
|
></P
|
|
><DIV
|
|
CLASS="VARIABLELIST"
|
|
><DL
|
|
><DT
|
|
>-h</DT
|
|
><DD
|
|
><P
|
|
> Display summary of all available options.
|
|
|
|
</P
|
|
></DD
|
|
><DT
|
|
>-w target-workgroup</DT
|
|
><DD
|
|
><P
|
|
> Sets target workgroup or domain. You have to specify
|
|
either this option or the IP address or the name of a server.
|
|
</P
|
|
></DD
|
|
><DT
|
|
>-W workgroup</DT
|
|
><DD
|
|
><P
|
|
> Sets client workgroup or domain
|
|
</P
|
|
></DD
|
|
><DT
|
|
>-U user</DT
|
|
><DD
|
|
><P
|
|
> User name to use
|
|
</P
|
|
></DD
|
|
><DT
|
|
>-I ip-address</DT
|
|
><DD
|
|
><P
|
|
> IP address of target server to use. You have to
|
|
specify either this option or a target workgroup or a target server.
|
|
</P
|
|
></DD
|
|
><DT
|
|
>-p port</DT
|
|
><DD
|
|
><P
|
|
> Port on the target server to connect to.
|
|
</P
|
|
></DD
|
|
><DT
|
|
>-n myname</DT
|
|
><DD
|
|
><P
|
|
> Sets name of the client.
|
|
</P
|
|
></DD
|
|
><DT
|
|
>-s conffile</DT
|
|
><DD
|
|
><P
|
|
> Specify alternative configuration file that should be loaded.
|
|
</P
|
|
></DD
|
|
><DT
|
|
>-S server</DT
|
|
><DD
|
|
><P
|
|
> Name of target server. You should specify either
|
|
this option or a target workgroup or a target IP address.
|
|
</P
|
|
></DD
|
|
><DT
|
|
>-C comment</DT
|
|
><DD
|
|
><P
|
|
> FIXME
|
|
</P
|
|
></DD
|
|
><DT
|
|
>-M maxusers</DT
|
|
><DD
|
|
><P
|
|
> FIXME
|
|
</P
|
|
></DD
|
|
><DT
|
|
>-F flags</DT
|
|
><DD
|
|
><P
|
|
> FIXME
|
|
</P
|
|
></DD
|
|
><DT
|
|
>-j jobid</DT
|
|
><DD
|
|
><P
|
|
> FIXME
|
|
</P
|
|
></DD
|
|
><DT
|
|
>-l</DT
|
|
><DD
|
|
><P
|
|
> FIXME
|
|
</P
|
|
></DD
|
|
><DT
|
|
>-r</DT
|
|
><DD
|
|
><P
|
|
> FIXME
|
|
</P
|
|
></DD
|
|
><DT
|
|
>-f</DT
|
|
><DD
|
|
><P
|
|
> FIXME
|
|
</P
|
|
></DD
|
|
><DT
|
|
>-t timeout</DT
|
|
><DD
|
|
><P
|
|
> FIXME
|
|
</P
|
|
></DD
|
|
><DT
|
|
>-P</DT
|
|
><DD
|
|
><P
|
|
> Make queries to the external server using the machine account of the local server.
|
|
</P
|
|
></DD
|
|
><DT
|
|
>-D debuglevel</DT
|
|
><DD
|
|
><P
|
|
>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
|
|
<TT
|
|
CLASS="FILENAME"
|
|
>BUGS.txt</TT
|
|
>).
|
|
</P
|
|
></DD
|
|
></DL
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="REFSECT1"
|
|
><A
|
|
NAME="AEN118"
|
|
></A
|
|
><H2
|
|
>TIME</H2
|
|
><P
|
|
>The <B
|
|
CLASS="COMMAND"
|
|
>NET TIME</B
|
|
> 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.</P
|
|
><P
|
|
></P
|
|
><DIV
|
|
CLASS="VARIABLELIST"
|
|
><DL
|
|
><DT
|
|
></DT
|
|
><DD
|
|
><P
|
|
> Without any options, the <B
|
|
CLASS="COMMAND"
|
|
>NET TIME</B
|
|
> command
|
|
displays the time on the remote server.
|
|
</P
|
|
></DD
|
|
><DT
|
|
>SYSTEM</DT
|
|
><DD
|
|
><P
|
|
> Displays the time on the remote server in a format ready for <B
|
|
CLASS="COMMAND"
|
|
>/bin/date</B
|
|
>
|
|
</P
|
|
></DD
|
|
><DT
|
|
>SET</DT
|
|
><DD
|
|
><P
|
|
> Tries to set the date and time of the local server to that on
|
|
the remote server using <B
|
|
CLASS="COMMAND"
|
|
>/bin/date</B
|
|
>.
|
|
</P
|
|
></DD
|
|
><DT
|
|
>ZONE</DT
|
|
><DD
|
|
><P
|
|
> Displays the timezone in hours from GMT on the remote computer.
|
|
</P
|
|
></DD
|
|
></DL
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="REFSECT1"
|
|
><A
|
|
NAME="AEN142"
|
|
></A
|
|
><H2
|
|
>RPC</H2
|
|
><P
|
|
>The <B
|
|
CLASS="COMMAND"
|
|
>NET RPC</B
|
|
> command allows you to do various
|
|
NT4 operations.</P
|
|
><P
|
|
></P
|
|
><DIV
|
|
CLASS="VARIABLELIST"
|
|
><DL
|
|
><DT
|
|
>JOIN -U username[%password] [options]</DT
|
|
><DD
|
|
><P
|
|
> Join a domain with specified username and password. Password
|
|
will be prompted if none is specified.</P
|
|
></DD
|
|
><DT
|
|
>JOIN [options except -U]</DT
|
|
><DD
|
|
><P
|
|
> to join a domain created in server manager
|
|
</P
|
|
></DD
|
|
><DT
|
|
>USER [misc. options] [targets]</DT
|
|
><DD
|
|
><P
|
|
> List users
|
|
</P
|
|
></DD
|
|
><DT
|
|
>USER DELETE <name> [misc options]</DT
|
|
><DD
|
|
><P
|
|
> delete specified user
|
|
</P
|
|
></DD
|
|
><DT
|
|
>USER INFO <name> [misc options]</DT
|
|
><DD
|
|
><P
|
|
> list the domain groups of the specified user
|
|
</P
|
|
></DD
|
|
><DT
|
|
>USER ADD <name> [password] [-F user flags] [misc. options]</DT
|
|
><DD
|
|
><P
|
|
> Add specified user
|
|
</P
|
|
></DD
|
|
><DT
|
|
>GROUP [misc options] [targets]</DT
|
|
><DD
|
|
><P
|
|
> List user groups
|
|
</P
|
|
></DD
|
|
><DT
|
|
>GROUP DELETE <name> [misc. options] [targets]</DT
|
|
><DD
|
|
><P
|
|
> Delete specified group
|
|
</P
|
|
></DD
|
|
><DT
|
|
>GROUP ADD <name> [-C comment]</DT
|
|
><DD
|
|
><P
|
|
> Create specified group
|
|
</P
|
|
></DD
|
|
><DT
|
|
>SHARE [misc. options] [targets]</DT
|
|
><DD
|
|
><P
|
|
> enumerates all exported resources (network shares) on target server
|
|
</P
|
|
></DD
|
|
><DT
|
|
>SHARE ADD <name=serverpath> [misc. options] [targets]</DT
|
|
><DD
|
|
><P
|
|
> Adds a share from a server (makes the export active)
|
|
</P
|
|
></DD
|
|
><DT
|
|
>SHARE DELETE <sharenam</DT
|
|
><DD
|
|
><P
|
|
></P
|
|
></DD
|
|
></DL
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="REFSECT1"
|
|
><A
|
|
NAME="AEN195"
|
|
></A
|
|
><H2
|
|
>VERSION</H2
|
|
><P
|
|
>This man page is incomplete for version 3.0 of the Samba
|
|
suite.</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="REFSECT1"
|
|
><A
|
|
NAME="AEN198"
|
|
></A
|
|
><H2
|
|
>AUTHOR</H2
|
|
><P
|
|
>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.</P
|
|
><P
|
|
>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.</P
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |