
Samba Distribution Programs
|
69
net
net [method] function [misc_options] [target_options]
The net command, new to Samba 3.0, is a program with a syntax
similar to the MS-DOS/Windows command of the same name. It
is used for performing various administrative functions related to
Windows networking, which can be executed either locally or on
a remote system.
The
function argument is made up of one or more space-sepa-
rated words. In Windows terminology, it is sometimes referred to
as a function with options. Here we list every function in its
complete form, including multiple words.
By default, the action is performed on the local system. The
target_options argument can be used to specify a remote system
(either by hostname or IP address), a domain, or a workgroup.
Depending on the function, the
method argument can be optional,
required, or disallowed. It specifies one of three methods for
performing the operation specified by the rest of the command. It
can be
ads (Active Directory), rpc (Microsoft’s DCE/RPC), or rap
(Microsoft’s original SMB remote procedure call). To determine
which methods (if any) can be used with a function, the
net help
ads
, net help rap, and net help rpc commands can be used to list
the functions for each method.
Miscellaneous options
-d level
--debug=level
Sets the debug (sometimes called logging) level. The level can
range from 0 to 10.
-l
--long
S
pecifies the long listing mode. This is ...