summaryrefslogtreecommitdiffstats
path: root/upstream/debian-bookworm/man8/net.8
diff options
context:
space:
mode:
Diffstat (limited to 'upstream/debian-bookworm/man8/net.8')
-rw-r--r--upstream/debian-bookworm/man8/net.82547
1 files changed, 2547 insertions, 0 deletions
diff --git a/upstream/debian-bookworm/man8/net.8 b/upstream/debian-bookworm/man8/net.8
new file mode 100644
index 00000000..9296ccde
--- /dev/null
+++ b/upstream/debian-bookworm/man8/net.8
@@ -0,0 +1,2547 @@
+'\" t
+.\" Title: net
+.\" Author: [see the "AUTHOR" section]
+.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
+.\" Date: 02/05/2024
+.\" Manual: System Administration tools
+.\" Source: Samba 4.19.4-Debian
+.\" Language: English
+.\"
+.TH "NET" "8" "02/05/2024" "Samba 4\&.19\&.4\-Debian" "System Administration tools"
+.\" -----------------------------------------------------------------
+.\" * Define some portability stuff
+.\" -----------------------------------------------------------------
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.\" http://bugs.debian.org/507673
+.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\" -----------------------------------------------------------------
+.\" * set default formatting
+.\" -----------------------------------------------------------------
+.\" disable hyphenation
+.nh
+.\" disable justification (adjust text to left margin only)
+.ad l
+.\" -----------------------------------------------------------------
+.\" * MAIN CONTENT STARTS HERE *
+.\" -----------------------------------------------------------------
+.SH "NAME"
+net \- Tool for administration of Samba and remote CIFS servers\&.
+.SH "SYNOPSIS"
+.HP \w'\ 'u
+net {<ads|rap|rpc>} [\-h|\-\-help] [\-d|\-\-debuglevel=DEBUGLEVEL] [\-\-debug\-stdout] [\-\-configfile=CONFIGFILE] [\-\-option=name=value] [\-l|\-\-log\-basename=LOGFILEBASE] [\-\-leak\-report] [\-\-leak\-report\-full] [\-R|\-\-name\-resolve=NAME\-RESOLVE\-ORDER] [\-O|\-\-socket\-options=SOCKETOPTIONS] [\-m|\-\-max\-protocol=MAXPROTOCOL] [\-n|\-\-netbiosname=NETBIOSNAME] [\-\-netbios\-scope=SCOPE] [\-W|\-\-workgroup=WORKGROUP] [\-\-realm=REALM] [\-U|\-\-user=[DOMAIN/]USERNAME[%PASSWORD]] [\-N|\-\-no\-pass] [\-\-password=STRING] [\-\-pw\-nt\-hash] [\-A|\-\-authentication\-file=FILE] [\-P|\-\-machine\-pass] [\-\-simple\-bind\-dn=DN] [\-\-use\-kerberos=desired|required|off] [\-\-use\-krb5\-ccache=CCACHE] [\-\-use\-winbind\-ccache] [\-\-client\-protection=sign|encrypt|off] [\-V|\-\-version] [\-w|\-\-target\-workgroup\ workgroup] [\-I|\-\-ipaddress\ ip\-address] [\-p|\-\-port\ port] [\-\-myname] [\-S|\-\-server\ server] [\-\-long] [\-v|\-\-verbose] [\-f|\-\-force] [\-\-request\-timeout\ seconds] [\-t|\-\-timeout\ seconds] [\-\-dns\-ttl\ TTL\-IN\-SECONDS] [\-i|\-\-stdin]
+.SH "DESCRIPTION"
+.PP
+This tool is part of the
+\fBsamba\fR(7)
+suite\&.
+.PP
+The Samba net utility is meant to work just like the net utility available for windows and DOS\&. The first argument should be used to specify the protocol to use when executing a certain command\&. ADS is used for ActiveDirectory, RAP is using for old (Win9x/NT3) clients and RPC can be used for NT4 and Windows 2000\&. If this argument is omitted, net will try to determine it automatically\&. Not all commands are available on all protocols\&.
+.SH "OPTIONS"
+.PP
+\-w|\-\-target\-workgroup target\-workgroup
+.RS 4
+Sets target workgroup or domain\&. You have to specify either this option or the IP address or the name of a server\&.
+.RE
+.PP
+\-I|\-\-ipaddress ip\-address
+.RS 4
+IP address of target server to use\&. You have to specify either this option or a target workgroup or a target server\&.
+.RE
+.PP
+\-p|\-\-port port
+.RS 4
+Port on the target server to connect to (usually 139 or 445)\&. Defaults to trying 445 first, then 139\&.
+.RE
+.PP
+\-S|\-\-server server
+.RS 4
+Name of target server\&. You should specify either this option or a target workgroup or a target IP address\&.
+.RE
+.PP
+\-\-long
+.RS 4
+When listing data, give more information on each item\&.
+.RE
+.PP
+\-v|\-\-verbose
+.RS 4
+When listing data, give more verbose information on each item\&.
+.RE
+.PP
+\-f|\-\-force
+.RS 4
+Enforcing a net command\&.
+.RE
+.PP
+\-\-request\-timeout 30
+.RS 4
+Let client requests timeout after 30 seconds the default is 10 seconds\&.
+.RE
+.PP
+\-t|\-\-timeout 30
+.RS 4
+Set timeout for client operations to 30 seconds\&.
+.RE
+.PP
+\-i|\-\-stdin
+.RS 4
+Take input for net commands from standard input\&.
+.RE
+.PP
+\-T|\-\-test
+.RS 4
+Only test command sequence, dry\-run\&.
+.RE
+.PP
+\-F|\-\-flags FLAGS
+.RS 4
+Pass down integer flags to a net subcommand\&.
+.RE
+.PP
+\-C|\-\-comment COMMENT
+.RS 4
+Pass down a comment string to a net subcommand\&.
+.RE
+.PP
+\-\-myname MYNAME
+.RS 4
+Use MYNAME as a requester name for a net subcommand\&.
+.RE
+.PP
+\-c|\-\-container CONTAINER
+.RS 4
+Use a specific AD container for net ads operations\&.
+.RE
+.PP
+\-M|\-\-maxusers MAXUSERS
+.RS 4
+Fill in the maxusers field in net rpc share operations\&.
+.RE
+.PP
+\-r|\-\-reboot
+.RS 4
+Reboot a remote machine after a command has been successfully executed (e\&.g\&. in remote join operations)\&.
+.RE
+.PP
+\-\-force\-full\-repl
+.RS 4
+When calling "net rpc vampire keytab" this option enforces a full re\-creation of the generated keytab file\&.
+.RE
+.PP
+\-\-single\-obj\-repl
+.RS 4
+When calling "net rpc vampire keytab" this option allows one to replicate just a single object to the generated keytab file\&.
+.RE
+.PP
+\-\-clean\-old\-entries
+.RS 4
+When calling "net rpc vampire keytab" this option allows one to cleanup old entries from the generated keytab file\&.
+.RE
+.PP
+\-\-db
+.RS 4
+Define dbfile for "net idmap" commands\&.
+.RE
+.PP
+\-\-lock
+.RS 4
+Activates locking of the dbfile for "net idmap check" command\&.
+.RE
+.PP
+\-a|\-\-auto
+.RS 4
+Activates noninteractive mode in "net idmap check"\&.
+.RE
+.PP
+\-\-repair
+.RS 4
+Activates repair mode in "net idmap check"\&.
+.RE
+.PP
+\-\-acls
+.RS 4
+Includes ACLs to be copied in "net rpc share migrate"\&.
+.RE
+.PP
+\-\-attrs
+.RS 4
+Includes file attributes to be copied in "net rpc share migrate"\&.
+.RE
+.PP
+\-\-timestamps
+.RS 4
+Includes timestamps to be copied in "net rpc share migrate"\&.
+.RE
+.PP
+\-X|\-\-exclude DIRECTORY
+.RS 4
+Allows one to exclude directories when copying with "net rpc share migrate"\&.
+.RE
+.PP
+\-\-destination SERVERNAME
+.RS 4
+Defines the target servername of migration process (defaults to localhost)\&.
+.RE
+.PP
+\-L|\-\-local
+.RS 4
+Sets the type of group mapping to local (used in "net groupmap set")\&.
+.RE
+.PP
+\-D|\-\-domain
+.RS 4
+Sets the type of group mapping to domain (used in "net groupmap set")\&.
+.RE
+.PP
+\-N|\-\-ntname NTNAME
+.RS 4
+Sets the ntname of a group mapping (used in "net groupmap set")\&.
+.RE
+.PP
+\-\-rid RID
+.RS 4
+Sets the rid of a group mapping (used in "net groupmap set")\&.
+.RE
+.PP
+\-\-reg\-version REG_VERSION
+.RS 4
+Assume database version {n|1,2,3} (used in "net registry check")\&.
+.RE
+.PP
+\-o|\-\-output FILENAME
+.RS 4
+Output database file (used in "net registry check")\&.
+.RE
+.PP
+\-\-wipe
+.RS 4
+Create a new database from scratch (used in "net registry check")\&.
+.RE
+.PP
+\-\-precheck PRECHECK_DB_FILENAME
+.RS 4
+Defines filename for database prechecking (used in "net registry import")\&.
+.RE
+.PP
+\-\-no\-dns\-updates
+.RS 4
+Do not perform DNS updates as part of "net ads join"\&.
+.RE
+.PP
+\-\-keep\-account
+.RS 4
+Prevent the machine account removal as part of "net ads leave"\&.
+.RE
+.PP
+\-\-json
+.RS 4
+Report results in JSON format for "net ads info" and "net ads lookup"\&.
+.RE
+.PP
+\-\-recursive
+.RS 4
+Traverse a directory hierarchy\&.
+.RE
+.PP
+\-\-continue
+.RS 4
+Continue traversing a directory hierarchy in case conversion of one file fails\&.
+.RE
+.PP
+\-\-follow\-symlinks
+.RS 4
+Follow symlinks encountered while traversing a directory\&.
+.RE
+.PP
+\-\-dns\-ttl TTL\-IN\-SECONDS
+.RS 4
+Specify the Time to Live (TTL) of DNS records\&. DNS records will be created or updated with the given TTL\&. The TTL is specified in seconds\&. Can be used with "net ads dns register" and "net ads join"\&. The default is 3600 seconds\&.
+.RE
+.PP
+\-d|\-\-debuglevel=DEBUGLEVEL
+.RS 4
+\fIlevel\fR
+is an integer from 0 to 10\&. The default value if this parameter is not specified is 1 for client applications\&.
+.sp
+The higher this value, the more detail will be logged to the log files about the activities of the server\&. At level 0, only critical errors and serious warnings will be logged\&. Level 1 is a reasonable level for day\-to\-day running \- it generates a small amount of information about operations carried out\&.
+.sp
+Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem\&. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic\&.
+.sp
+Note that specifying this parameter here will override the
+\m[blue]\fBlog level\fR\m[]
+parameter in the
+/etc/samba/smb\&.conf
+file\&.
+.RE
+.PP
+\-\-debug\-stdout
+.RS 4
+This will redirect debug output to STDOUT\&. By default all clients are logging to STDERR\&.
+.RE
+.PP
+\-\-configfile=<configuration file>
+.RS 4
+The file specified contains the configuration details required by the client\&. The information in this file can be general for client and server or only provide client specific like options such as
+\m[blue]\fBclient smb encrypt\fR\m[]\&. See
+/etc/samba/smb\&.conf
+for more information\&. The default configuration file name is determined at compile time\&.
+.RE
+.PP
+\-\-option=<name>=<value>
+.RS 4
+Set the
+\fBsmb.conf\fR(5)
+option "<name>" to value "<value>" from the command line\&. This overrides compiled\-in defaults and options read from the configuration file\&. If a name or a value includes a space, wrap whole \-\-option=name=value into quotes\&.
+.RE
+.PP
+\-l|\-\-log\-basename=logdirectory
+.RS 4
+Base directory name for log/debug files\&. The extension
+\fB"\&.progname"\fR
+will be appended (e\&.g\&. log\&.smbclient, log\&.smbd, etc\&.\&.\&.)\&. The log file is never removed by the client\&.
+.RE
+.PP
+\-\-leak\-report
+.RS 4
+Enable talloc leak reporting on exit\&.
+.RE
+.PP
+\-\-leak\-report\-full
+.RS 4
+Enable full talloc leak reporting on exit\&.
+.RE
+.PP
+\-V|\-\-version
+.RS 4
+Prints the program version number\&.
+.RE
+.PP
+\-R|\-\-name\-resolve=NAME\-RESOLVE\-ORDER
+.RS 4
+This option is used to determine what naming services and in what order to resolve host names to IP addresses\&. The option takes a space\-separated string of different name resolution options\&. The best is to wrap the whole \-\-name\-resolve=NAME\-RESOLVE\-ORDER into quotes\&.
+.sp
+The options are: "lmhosts", "host", "wins" and "bcast"\&. They cause names to be resolved as follows:
+.RS
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fBlmhosts\fR: Lookup an IP address in the Samba lmhosts file\&. If the line in lmhosts has no name type attached to the NetBIOS name (see the
+\fBlmhosts\fR(5)
+for details) then any name type matches for lookup\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fBhost\fR: Do a standard host name to IP address resolution, using the system
+/etc/hosts, NIS, or DNS lookups\&. This method of name resolution is operating system dependent, for instance on IRIX or Solaris this may be controlled by the
+/etc/nsswitch\&.conf
+file)\&. Note that this method is only used if the NetBIOS name type being queried is the 0x20 (server) name type, otherwise it is ignored\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fBwins\fR: Query a name with the IP address listed in the
+\fIwins server\fR
+parameter\&. If no WINS server has been specified this method will be ignored\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fBbcast\fR: Do a broadcast on each of the known local interfaces listed in the
+\fIinterfaces\fR
+parameter\&. This is the least reliable of the name resolution methods as it depends on the target host being on a locally connected subnet\&.
+.RE
+.sp
+.RE
+If this parameter is not set then the name resolve order defined in the
+/etc/samba/smb\&.conf
+file parameter (\m[blue]\fBname resolve order\fR\m[]) will be used\&.
+.sp
+The default order is lmhosts, host, wins, bcast\&. Without this parameter or any entry in the
+\m[blue]\fBname resolve order\fR\m[]
+parameter of the
+/etc/samba/smb\&.conf
+file, the name resolution methods will be attempted in this order\&.
+.RE
+.PP
+\-O|\-\-socket\-options=SOCKETOPTIONS
+.RS 4
+TCP socket options to set on the client socket\&. See the socket options parameter in the
+/etc/samba/smb\&.conf
+manual page for the list of valid options\&.
+.RE
+.PP
+\-m|\-\-max\-protocol=MAXPROTOCOL
+.RS 4
+The value of the parameter (a string) is the highest protocol level that will be supported by the client\&.
+.sp
+Note that specifying this parameter here will override the
+\m[blue]\fBclient max protocol\fR\m[]
+parameter in the
+/etc/samba/smb\&.conf
+file\&.
+.RE
+.PP
+\-n|\-\-netbiosname=NETBIOSNAME
+.RS 4
+This option allows you to override the NetBIOS name that Samba uses for itself\&. This is identical to setting the
+\m[blue]\fBnetbios name\fR\m[]
+parameter in the
+/etc/samba/smb\&.conf
+file\&. However, a command line setting will take precedence over settings in
+/etc/samba/smb\&.conf\&.
+.RE
+.PP
+\-\-netbios\-scope=SCOPE
+.RS 4
+This specifies a NetBIOS scope that
+nmblookup
+will use to communicate with when generating NetBIOS names\&. For details on the use of NetBIOS scopes, see rfc1001\&.txt and rfc1002\&.txt\&. NetBIOS scopes are
+\fIvery\fR
+rarely used, only set this parameter if you are the system administrator in charge of all the NetBIOS systems you communicate with\&.
+.RE
+.PP
+\-W|\-\-workgroup=WORKGROUP
+.RS 4
+Set the SMB domain of the username\&. This overrides the default domain which is the domain defined in smb\&.conf\&. If the domain specified is the same as the servers NetBIOS name, it causes the client to log on using the servers local SAM (as opposed to the Domain SAM)\&.
+.sp
+Note that specifying this parameter here will override the
+\m[blue]\fBworkgroup\fR\m[]
+parameter in the
+/etc/samba/smb\&.conf
+file\&.
+.RE
+.PP
+\-r|\-\-realm=REALM
+.RS 4
+Set the realm for the domain\&.
+.sp
+Note that specifying this parameter here will override the
+\m[blue]\fBrealm\fR\m[]
+parameter in the
+/etc/samba/smb\&.conf
+file\&.
+.RE
+.PP
+\-U|\-\-user=[DOMAIN\e]USERNAME[%PASSWORD]
+.RS 4
+Sets the SMB username or username and password\&.
+.sp
+If %PASSWORD is not specified, the user will be prompted\&. The client will first check the
+\fBUSER\fR
+environment variable (which is also permitted to also contain the password separated by a %), then the
+\fBLOGNAME\fR
+variable (which is not permitted to contain a password) and if either exists, the value is used\&. If these environmental variables are not found, the username found in a Kerberos Credentials cache may be used\&.
+.sp
+A third option is to use a credentials file which contains the plaintext of the username and password\&. This option is mainly provided for scripts where the admin does not wish to pass the credentials on the command line or via environment variables\&. If this method is used, make certain that the permissions on the file restrict access from unwanted users\&. See the
+\fI\-A\fR
+for more details\&.
+.sp
+Be cautious about including passwords in scripts or passing user\-supplied values onto the command line\&. For security it is better to let the Samba client tool ask for the password if needed, or obtain the password once with
+kinit\&.
+.sp
+While Samba will attempt to scrub the password from the process title (as seen in ps), this is after startup and so is subject to a race\&.
+.RE
+.PP
+\-N|\-\-no\-pass
+.RS 4
+If specified, this parameter suppresses the normal password prompt from the client to the user\&. This is useful when accessing a service that does not require a password\&.
+.sp
+Unless a password is specified on the command line or this parameter is specified, the client will request a password\&.
+.sp
+If a password is specified on the command line and this option is also defined the password on the command line will be silently ignored and no password will be used\&.
+.RE
+.PP
+\-\-password
+.RS 4
+Specify the password on the commandline\&.
+.sp
+Be cautious about including passwords in scripts or passing user\-supplied values onto the command line\&. For security it is better to let the Samba client tool ask for the password if needed, or obtain the password once with
+kinit\&.
+.sp
+If \-\-password is not specified, the tool will check the
+\fBPASSWD\fR
+environment variable, followed by
+\fBPASSWD_FD\fR
+which is expected to contain an open file descriptor (FD) number\&.
+.sp
+Finally it will check
+\fBPASSWD_FILE\fR
+(containing a file path to be opened)\&. The file should only contain the password\&. Make certain that the permissions on the file restrict access from unwanted users!
+.sp
+While Samba will attempt to scrub the password from the process title (as seen in ps), this is after startup and so is subject to a race\&.
+.RE
+.PP
+\-\-pw\-nt\-hash
+.RS 4
+The supplied password is the NT hash\&.
+.RE
+.PP
+\-A|\-\-authentication\-file=filename
+.RS 4
+This option allows you to specify a file from which to read the username and password used in the connection\&. The format of the file is:
+.sp
+.if n \{\
+.RS 4
+.\}
+.nf
+ username = <value>
+ password = <value>
+ domain = <value>
+
+.fi
+.if n \{\
+.RE
+.\}
+.sp
+Make certain that the permissions on the file restrict access from unwanted users!
+.RE
+.PP
+\-P|\-\-machine\-pass
+.RS 4
+Use stored machine account password\&.
+.RE
+.PP
+\-\-simple\-bind\-dn=DN
+.RS 4
+DN to use for a simple bind\&.
+.RE
+.PP
+\-\-use\-kerberos=desired|required|off
+.RS 4
+This parameter determines whether Samba client tools will try to authenticate using Kerberos\&. For Kerberos authentication you need to use dns names instead of IP addresses when connecting to a service\&.
+.sp
+Note that specifying this parameter here will override the
+\m[blue]\fBclient use kerberos\fR\m[]
+parameter in the
+/etc/samba/smb\&.conf
+file\&.
+.RE
+.PP
+\-\-use\-krb5\-ccache=CCACHE
+.RS 4
+Specifies the credential cache location for Kerberos authentication\&.
+.sp
+This will set \-\-use\-kerberos=required too\&.
+.RE
+.PP
+\-\-use\-winbind\-ccache
+.RS 4
+Try to use the credential cache by winbind\&.
+.RE
+.PP
+\-\-client\-protection=sign|encrypt|off
+.RS 4
+Sets the connection protection the client tool should use\&.
+.sp
+Note that specifying this parameter here will override the
+\m[blue]\fBclient protection\fR\m[]
+parameter in the
+/etc/samba/smb\&.conf
+file\&.
+.sp
+In case you need more fine grained control you can use:
+\-\-option=clientsmbencrypt=OPTION,
+\-\-option=clientipcsigning=OPTION,
+\-\-option=clientsigning=OPTION\&.
+.RE
+.SH "COMMANDS"
+.SS "CHANGESECRETPW"
+.PP
+This command allows the Samba machine account password to be set from an external application to a machine account password that has already been stored in Active Directory\&. DO NOT USE this command unless you know exactly what you are doing\&. The use of this command requires that the force flag (\-f) be used also\&. There will be NO command prompt\&. Whatever information is piped into stdin, either by typing at the command line or otherwise, will be stored as the literal machine password\&. Do NOT use this without care and attention as it will overwrite a legitimate machine password without warning\&. YOU HAVE BEEN WARNED\&.
+.SS "TIME"
+.PP
+The
+NET TIME
+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\&.
+.SS "TIME"
+.PP
+Without any options, the
+NET TIME
+command displays the time on the remote server\&. The remote server must be specified with the \-S option\&.
+.SS "TIME SYSTEM"
+.PP
+Displays the time on the remote server in a format ready for
+/bin/date\&. The remote server must be specified with the \-S option\&.
+.SS "TIME SET"
+.PP
+Tries to set the date and time of the local server to that on the remote server using
+/bin/date\&. The remote server must be specified with the \-S option\&.
+.SS "TIME ZONE"
+.PP
+Displays the timezone in hours from GMT on the remote server\&. The remote server must be specified with the \-S option\&.
+.SS "[RPC|ADS] JOIN [TYPE] [\-\-no\-dns\-updates] [\-U username[%password]] [dnshostname=FQDN] [createupn=UPN] [createcomputer=OU] [machinepass=PASS] [osName=string osVer=string] [options]"
+.PP
+Join a domain\&. If the account already exists on the server, and [TYPE] is MEMBER, the machine will attempt to join automatically\&. (Assuming that the machine has been created in server manager) Otherwise, a password will be prompted for, and a new account may be created\&.
+.PP
+[TYPE] may be PDC, BDC or MEMBER to specify the type of server joining the domain\&.
+.PP
+[FQDN] (ADS only) set the dnsHostName attribute during the join\&. The default format is netbiosname\&.dnsdomain\&.
+.PP
+[UPN] (ADS only) set the principalname attribute during the join\&. The default format is host/netbiosname@REALM\&.
+.PP
+[OU] (ADS only) Precreate the computer account in a specific OU\&. The OU string reads from top to bottom without RDNs, and is delimited by a \*(Aq/\*(Aq\&. Please note that \*(Aq\e\*(Aq is used for escape by both the shell and ldap, so it may need to be doubled or quadrupled to pass through, and it is not used as a delimiter\&.
+.PP
+[PASS] (ADS only) Set a specific password on the computer account being created by the join\&.
+.PP
+[osName=string osVer=String] (ADS only) Set the operatingSystem and operatingSystemVersion attribute during the join\&. Both parameters must be specified for either to take effect\&.
+.SS "[RPC] OLDJOIN [options]"
+.PP
+Join a domain\&. Use the OLDJOIN option to join the domain using the old style of domain joining \- you need to create a trust account in server manager first\&.
+.SS "[RPC|ADS] USER"
+.SS "[RPC|ADS] USER"
+.PP
+List all users
+.SS "[RPC|ADS] USER DELETE target"
+.PP
+Delete specified user
+.SS "[RPC|ADS] USER INFO target"
+.PP
+List the domain groups of the specified user\&.
+.SS "[RPC|ADS] USER RENAME oldname newname"
+.PP
+Rename specified user\&.
+.SS "[RPC|ADS] USER ADD name [password] [-F user flags] [-C comment]"
+.PP
+Add specified user\&.
+.SS "[RPC|ADS] GROUP"
+.SS "[RPC|ADS] GROUP [misc options] [targets]"
+.PP
+List user groups\&.
+.SS "[RPC|ADS] GROUP DELETE name [misc. options]"
+.PP
+Delete specified group\&.
+.SS "[RPC|ADS] GROUP ADD name [-C comment]"
+.PP
+Create specified group\&.
+.SS "[ADS] LOOKUP"
+.PP
+Lookup the closest Domain Controller in our domain and retrieve server information about it\&.
+.SS "[RAP|RPC] SHARE"
+.SS "[RAP|RPC] SHARE [misc. options] [targets]"
+.PP
+Enumerates all exported resources (network shares) on target server\&.
+.SS "[RAP|RPC] SHARE ADD name=serverpath [-C comment] [-M maxusers] [targets]"
+.PP
+Adds a share from a server (makes the export active)\&. Maxusers specifies the number of users that can be connected to the share simultaneously\&.
+.SS "SHARE DELETE sharename"
+.PP
+Delete specified share\&.
+.SS "[RPC|RAP] FILE"
+.SS "[RPC|RAP] FILE"
+.PP
+List all open files on remote server\&.
+.SS "[RPC|RAP] FILE CLOSE fileid"
+.PP
+Close file with specified
+\fIfileid\fR
+on remote server\&.
+.SS "[RPC|RAP] FILE INFO fileid"
+.PP
+Print information on specified
+\fIfileid\fR\&. Currently listed are: file\-id, username, locks, path, permissions\&.
+.SS "[RAP|RPC] FILE USER user"
+.PP
+List files opened by specified
+\fIuser\fR\&. Please note that
+net rap file user
+does not work against Samba servers\&.
+.SS "SESSION"
+.SS "RAP SESSION"
+.PP
+Without any other options, SESSION enumerates all active SMB/CIFS sessions on the target server\&.
+.SS "RAP SESSION DELETE|CLOSE CLIENT_NAME"
+.PP
+Close the specified sessions\&.
+.SS "RAP SESSION INFO CLIENT_NAME"
+.PP
+Give a list with all the open files in specified session\&.
+.SS "RAP SERVER \fIDOMAIN\fR"
+.PP
+List all servers in specified domain or workgroup\&. Defaults to local domain\&.
+.SS "RAP DOMAIN"
+.PP
+Lists all domains and workgroups visible on the current network\&.
+.SS "RAP PRINTQ"
+.SS "RAP PRINTQ INFO QUEUE_NAME"
+.PP
+Lists the specified print queue and print jobs on the server\&. If the
+\fIQUEUE_NAME\fR
+is omitted, all queues are listed\&.
+.SS "RAP PRINTQ DELETE JOBID"
+.PP
+Delete job with specified id\&.
+.SS "RAP VALIDATE \fIuser\fR [\fIpassword\fR]"
+.PP
+Validate whether the specified user can log in to the remote server\&. If the password is not specified on the commandline, it will be prompted\&.
+.if n \{\
+.sp
+.\}
+.RS 4
+.it 1 an-trap
+.nr an-no-space-flag 1
+.nr an-break-flag 1
+.br
+.ps +1
+\fBNote\fR
+.ps -1
+.br
+.PP
+Currently NOT implemented\&.
+.sp .5v
+.RE
+.SS "RAP GROUPMEMBER"
+.SS "RAP GROUPMEMBER LIST GROUP"
+.PP
+List all members of the specified group\&.
+.SS "RAP GROUPMEMBER DELETE GROUP USER"
+.PP
+Delete member from group\&.
+.SS "RAP GROUPMEMBER ADD GROUP USER"
+.PP
+Add member to group\&.
+.SS "RAP ADMIN \fIcommand\fR"
+.PP
+Execute the specified
+\fIcommand\fR
+on the remote server\&. Only works with OS/2 servers\&.
+.if n \{\
+.sp
+.\}
+.RS 4
+.it 1 an-trap
+.nr an-no-space-flag 1
+.nr an-break-flag 1
+.br
+.ps +1
+\fBNote\fR
+.ps -1
+.br
+.PP
+Currently NOT implemented\&.
+.sp .5v
+.RE
+.SS "RAP SERVICE"
+.SS "RAP SERVICE START NAME [arguments...]"
+.PP
+Start the specified service on the remote server\&. Not implemented yet\&.
+.if n \{\
+.sp
+.\}
+.RS 4
+.it 1 an-trap
+.nr an-no-space-flag 1
+.nr an-break-flag 1
+.br
+.ps +1
+\fBNote\fR
+.ps -1
+.br
+.PP
+Currently NOT implemented\&.
+.sp .5v
+.RE
+.SS "RAP SERVICE STOP"
+.PP
+Stop the specified service on the remote server\&.
+.if n \{\
+.sp
+.\}
+.RS 4
+.it 1 an-trap
+.nr an-no-space-flag 1
+.nr an-break-flag 1
+.br
+.ps +1
+\fBNote\fR
+.ps -1
+.br
+.PP
+Currently NOT implemented\&.
+.sp .5v
+.RE
+.SS "RAP PASSWORD \fIUSER\fR \fIOLDPASS\fR \fINEWPASS\fR"
+.PP
+Change password of
+\fIUSER\fR
+from
+\fIOLDPASS\fR
+to
+\fINEWPASS\fR\&.
+.SS "LOOKUP"
+.SS "LOOKUP HOST HOSTNAME [TYPE]"
+.PP
+Lookup the IP address of the given host with the specified type (netbios suffix)\&. The type defaults to 0x20 (workstation)\&.
+.SS "LOOKUP LDAP [DOMAIN]"
+.PP
+Give IP address of LDAP server of specified
+\fIDOMAIN\fR\&. Defaults to local domain\&.
+.SS "LOOKUP KDC [REALM]"
+.PP
+Give IP address of KDC for the specified
+\fIREALM\fR\&. Defaults to local realm\&.
+.SS "LOOKUP DC [DOMAIN]"
+.PP
+Give IP\*(Aqs of Domain Controllers for specified
+\fI DOMAIN\fR\&. Defaults to local domain\&.
+.SS "LOOKUP MASTER DOMAIN"
+.PP
+Give IP of master browser for specified
+\fIDOMAIN\fR
+or workgroup\&. Defaults to local domain\&.
+.SS "LOOKUP NAME [NAME]"
+.PP
+Lookup username\*(Aqs sid and type for specified
+\fINAME\fR
+.SS "LOOKUP SID [SID]"
+.PP
+Give sid\*(Aqs name and type for specified
+\fISID\fR
+.SS "LOOKUP DSGETDCNAME [NAME] [FLAGS] [SITENAME]"
+.PP
+Give Domain Controller information for specified domain
+\fINAME\fR
+.SS "CACHE"
+.PP
+Samba uses a general caching interface called \*(Aqgencache\*(Aq\&. It can be controlled using \*(AqNET CACHE\*(Aq\&.
+.PP
+All the timeout parameters support the suffixes:
+.RS 4
+s \- Seconds
+.RE
+.RS 4
+m \- Minutes
+.RE
+.RS 4
+h \- Hours
+.RE
+.RS 4
+d \- Days
+.RE
+.RS 4
+w \- Weeks
+.RE
+.SS "CACHE ADD key data time-out"
+.PP
+Add specified key+data to the cache with the given timeout\&.
+.SS "CACHE DEL key"
+.PP
+Delete key from the cache\&.
+.SS "CACHE SET key data time-out"
+.PP
+Update data of existing cache entry\&.
+.SS "CACHE SEARCH PATTERN"
+.PP
+Search for the specified pattern in the cache data\&.
+.SS "CACHE LIST"
+.PP
+List all current items in the cache\&.
+.SS "CACHE FLUSH"
+.PP
+Remove all the current items from the cache\&.
+.SS "GETLOCALSID [DOMAIN]"
+.PP
+Prints the SID of the specified domain, or if the parameter is omitted, the SID of the local server\&.
+.SS "SETLOCALSID S\-1\-5\-21\-x\-y\-z"
+.PP
+Sets SID for the local server to the specified SID\&.
+.SS "GETDOMAINSID"
+.PP
+Prints the local machine SID and the SID of the current domain\&.
+.SS "SETDOMAINSID"
+.PP
+Sets the SID of the current domain\&.
+.SS "GROUPMAP"
+.PP
+Manage the mappings between Windows group SIDs and UNIX groups\&. Common options include:
+.RS
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+unixgroup \- Name of the UNIX group
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+ntgroup \- Name of the Windows NT group (must be resolvable to a SID
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+rid \- Unsigned 32\-bit integer
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+sid \- Full SID in the form of "S\-1\-\&.\&.\&."
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+type \- Type of the group; either \*(Aqdomain\*(Aq, \*(Aqlocal\*(Aq, or \*(Aqbuiltin\*(Aq
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+comment \- Freeform text description of the group
+.RE
+.sp
+.RE
+.SS "GROUPMAP ADD"
+.PP
+Add a new group mapping entry:
+.sp
+.if n \{\
+.RS 4
+.\}
+.nf
+net groupmap add {rid=int|sid=string} unixgroup=string \e
+ [type={domain|local}] [ntgroup=string] [comment=string]
+.fi
+.if n \{\
+.RE
+.\}
+.sp
+
+.SS "GROUPMAP DELETE"
+.PP
+Delete a group mapping entry\&. If more than one group name matches, the first entry found is deleted\&.
+.PP
+net groupmap delete {ntgroup=string|sid=SID}
+.SS "GROUPMAP MODIFY"
+.PP
+Update an existing group entry\&.
+.PP
+.if n \{\
+.RS 4
+.\}
+.nf
+net groupmap modify {ntgroup=string|sid=SID} [unixgroup=string] \e
+ [comment=string] [type={domain|local}]
+.fi
+.if n \{\
+.RE
+.\}
+.sp
+
+.SS "GROUPMAP LIST"
+.PP
+List existing group mapping entries\&.
+.PP
+net groupmap list [verbose] [ntgroup=string] [sid=SID]
+.SS "MAXRID"
+.PP
+Prints out the highest RID currently in use on the local server (by the active \*(Aqpassdb backend\*(Aq)\&.
+.SS "RPC INFO"
+.PP
+Print information about the domain of the remote server, such as domain name, domain sid and number of users and groups\&.
+.SS "[RPC|ADS] TESTJOIN"
+.PP
+Check whether participation in a domain is still valid\&.
+.SS "[RPC|ADS] CHANGETRUSTPW"
+.PP
+Force change of domain trust password\&.
+.SS "RPC TRUSTDOM"
+.SS "RPC TRUSTDOM ADD DOMAIN"
+.PP
+Add a interdomain trust account for
+\fIDOMAIN\fR\&. This is in fact a Samba account named
+\fIDOMAIN$\fR
+with the account flag
+\fB\*(AqI\*(Aq\fR
+(interdomain trust account)\&. This is required for incoming trusts to work\&. It makes Samba be a trusted domain of the foreign (trusting) domain\&. Users of the Samba domain will be made available in the foreign domain\&. If the command is used against localhost it has the same effect as
+smbpasswd \-a \-i DOMAIN\&. Please note that both commands expect a appropriate UNIX account\&.
+.SS "RPC TRUSTDOM DEL DOMAIN"
+.PP
+Remove interdomain trust account for
+\fIDOMAIN\fR\&. If it is used against localhost it has the same effect as
+smbpasswd \-x DOMAIN$\&.
+.SS "RPC TRUSTDOM ESTABLISH DOMAIN"
+.PP
+Establish a trust relationship to a trusted domain\&. Interdomain account must already be created on the remote PDC\&. This is required for outgoing trusts to work\&. It makes Samba be a trusting domain of a foreign (trusted) domain\&. Users of the foreign domain will be made available in our domain\&. You\*(Aqll need winbind and a working idmap config to make them appear in your system\&.
+.SS "RPC TRUSTDOM REVOKE DOMAIN"
+.PP
+Abandon relationship to trusted domain
+.SS "RPC TRUSTDOM LIST"
+.PP
+List all interdomain trust relationships\&.
+.SS "RPC TRUST"
+.SS "RPC TRUST CREATE"
+.PP
+Create a trust object by calling lsaCreateTrustedDomainEx2\&. The can be done on a single server or on two servers at once with the possibility to use a random trust password\&.
+.PP
+\fBOptions:\fR
+.PP
+otherserver
+.RS 4
+Domain controller of the second domain
+.RE
+.PP
+otheruser
+.RS 4
+Admin user in the second domain
+.RE
+.PP
+otherdomainsid
+.RS 4
+SID of the second domain
+.RE
+.PP
+other_netbios_domain
+.RS 4
+NetBIOS (short) name of the second domain
+.RE
+.PP
+otherdomain
+.RS 4
+DNS (full) name of the second domain
+.RE
+.PP
+trustpw
+.RS 4
+Trust password
+.RE
+.PP
+\fBExamples:\fR
+.PP
+Create a trust object on srv1\&.dom1\&.dom for the domain dom2
+.RS 4
+.sp
+.if n \{\
+.RS 4
+.\}
+.nf
+net rpc trust create \e
+ otherdomainsid=S\-x\-x\-xx\-xxxxxxxxxx\-xxxxxxxxxx\-xxxxxxxxx \e
+ other_netbios_domain=dom2 \e
+ otherdomain=dom2\&.dom \e
+ trustpw=12345678 \e
+ \-S srv1\&.dom1\&.dom
+.fi
+.if n \{\
+.RE
+.\}
+.RE
+.PP
+Create a trust relationship between dom1 and dom2
+.RS 4
+.sp
+.if n \{\
+.RS 4
+.\}
+.nf
+net rpc trust create \e
+ otherserver=srv2\&.dom2\&.test \e
+ otheruser=dom2adm \e
+ \-S srv1\&.dom1\&.dom
+.fi
+.if n \{\
+.RE
+.\}
+.RE
+.SS "RPC TRUST DELETE"
+.PP
+Delete a trust object by calling lsaDeleteTrustedDomain\&. The can be done on a single server or on two servers at once\&.
+.PP
+\fBOptions:\fR
+.PP
+otherserver
+.RS 4
+Domain controller of the second domain
+.RE
+.PP
+otheruser
+.RS 4
+Admin user in the second domain
+.RE
+.PP
+otherdomainsid
+.RS 4
+SID of the second domain
+.RE
+.PP
+\fBExamples:\fR
+.PP
+Delete a trust object on srv1\&.dom1\&.dom for the domain dom2
+.RS 4
+.sp
+.if n \{\
+.RS 4
+.\}
+.nf
+net rpc trust delete \e
+ otherdomainsid=S\-x\-x\-xx\-xxxxxxxxxx\-xxxxxxxxxx\-xxxxxxxxx \e
+ \-S srv1\&.dom1\&.dom
+.fi
+.if n \{\
+.RE
+.\}
+.RE
+.PP
+Delete a trust relationship between dom1 and dom2
+.RS 4
+.sp
+.if n \{\
+.RS 4
+.\}
+.nf
+net rpc trust delete \e
+ otherserver=srv2\&.dom2\&.test \e
+ otheruser=dom2adm \e
+ \-S srv1\&.dom1\&.dom
+.fi
+.if n \{\
+.RE
+.\}
+.RE
+.SS ""
+.SS "RPC RIGHTS"
+.PP
+This subcommand is used to view and manage Samba\*(Aqs rights assignments (also referred to as privileges)\&. There are three options currently available:
+\fIlist\fR,
+\fIgrant\fR, and
+\fIrevoke\fR\&. More details on Samba\*(Aqs privilege model and its use can be found in the Samba\-HOWTO\-Collection\&.
+.SS "RPC ABORTSHUTDOWN"
+.PP
+Abort the shutdown of a remote server\&.
+.SS "RPC SHUTDOWN [\-t timeout] [\-r] [\-f] [\-C message]"
+.PP
+Shut down the remote server\&.
+.PP
+\-r
+.RS 4
+Reboot after shutdown\&.
+.RE
+.PP
+\-f
+.RS 4
+Force shutting down all applications\&.
+.RE
+.PP
+\-t timeout
+.RS 4
+Timeout before system will be shut down\&. An interactive user of the system can use this time to cancel the shutdown\&.
+.RE
+.PP
+\-C message
+.RS 4
+Display the specified message on the screen to announce the shutdown\&.
+.RE
+.SS "RPC SAMDUMP"
+.PP
+Print out sam database of remote server\&. You need to run this against the PDC, from a Samba machine joined as a BDC\&.
+.SS "RPC VAMPIRE"
+.PP
+Export users, aliases and groups from remote server to local server\&. You need to run this against the PDC, from a Samba machine joined as a BDC\&. This vampire command cannot be used against an Active Directory, only against an NT4 Domain Controller\&.
+.SS "RPC VAMPIRE KEYTAB"
+.PP
+Dump remote SAM database to local Kerberos keytab file\&.
+.SS "RPC VAMPIRE LDIF"
+.PP
+Dump remote SAM database to local LDIF file or standard output\&.
+.SS "RPC GETSID"
+.PP
+Fetch domain SID and store it in the local
+secrets\&.tdb\&.
+.SS "ADS GPO"
+.SS "ADS GPO APPLY <USERNAME|MACHINENAME> "
+.PP
+Apply GPOs for a username or machine name\&. Either username or machine name should be provided to the command, not both\&.
+.SS "ADS GPO GETGPO [GPO]"
+.PP
+List specified GPO\&.
+.SS "ADS GPO LINKADD [LINKDN] [GPODN]"
+.PP
+Link a container to a GPO\&.
+\fILINKDN\fR
+Container to link to a GPO\&.
+\fIGPODN\fR
+GPO to link container to\&. DNs must be provided properly escaped\&. See RFC 4514 for details\&.
+.SS "ADS GPO LINKGET [CONTAINER]"
+.PP
+Lists gPLink of a container\&.
+.SS "ADS GPO LIST <USERNAME|MACHINENAME> "
+.PP
+Lists all GPOs for a username or machine name\&. Either username or machine name should be provided to the command, not both\&.
+.SS "ADS GPO LISTALL"
+.PP
+Lists all GPOs on a DC\&.
+.SS "ADS GPO REFRESH [USERNAME] [MACHINENAME]"
+.PP
+Lists all GPOs assigned to an account and download them\&.
+\fIUSERNAME\fR
+User to refresh GPOs for\&.
+\fIMACHINENAME\fR
+Machine to refresh GPOs for\&.
+.SS "ADS DNS"
+.SS "ADS DNS REGISTER [HOSTNAME [IP [IP.....]]]"
+.PP
+Add host dns entry to Active Directory\&.
+.SS "ADS DNS UNREGISTER <HOSTNAME>"
+.PP
+Remove host dns entry from Active Directory\&.
+.SS "ADS LEAVE [\-\-keep\-account]"
+.PP
+Make the remote host leave the domain it is part of\&.
+.SS "ADS STATUS"
+.PP
+Print out status of machine account of the local machine in ADS\&. Prints out quite some debug info\&. Aimed at developers, regular users should use
+NET ADS TESTJOIN\&.
+.SS "ADS PRINTER"
+.SS "ADS PRINTER INFO [PRINTER] [SERVER]"
+.PP
+Lookup info for
+\fIPRINTER\fR
+on
+\fISERVER\fR\&. The printer name defaults to "*", the server name defaults to the local host\&.
+.SS "ADS PRINTER PUBLISH PRINTER"
+.PP
+Publish specified printer using ADS\&.
+.SS "ADS PRINTER REMOVE PRINTER"
+.PP
+Remove specified printer from ADS directory\&.
+.SS "ADS SEARCH \fIEXPRESSION\fR \fIATTRIBUTES\&.\&.\&.\fR"
+.PP
+Perform a raw LDAP search on a ADS server and dump the results\&. The expression is a standard LDAP search expression, and the attributes are a list of LDAP fields to show in the results\&.
+.PP
+Example:
+\fBnet ads search \*(Aq(objectCategory=group)\*(Aq sAMAccountName\fR
+.SS "ADS DN \fIDN\fR \fI(attributes)\fR"
+.PP
+Perform a raw LDAP search on a ADS server and dump the results\&. The DN standard LDAP DN, and the attributes are a list of LDAP fields to show in the result\&.
+.PP
+Example:
+\fBnet ads dn \*(AqCN=administrator,CN=Users,DC=my,DC=domain\*(Aq SAMAccountName\fR
+.SS "ADS KEYTAB \fICREATE\fR"
+.PP
+Creates a new keytab file if one doesn\*(Aqt exist with default entries\&. Default entries are kerberos principals created from the machinename of the client, the UPN (if it exists) and any Windows SPN(s) associated with the computer AD account for the client\&. If a keytab file already exists then only missing kerberos principals from the default entries are added\&. No changes are made to the computer AD account\&.
+.SS "ADS KEYTAB \fIADD\fR \fI(principal | machine | serviceclass | windows SPN\fR"
+.PP
+Adds a new keytab entry, the entry can be either;
+.PP
+kerberos principal
+.RS 4
+A kerberos principal (identified by the presence of \*(Aq@\*(Aq) is just added to the keytab file\&.
+.RE
+.PP
+machinename
+.RS 4
+A machinename (identified by the trailing \*(Aq$\*(Aq) is used to create a a kerberos principal \*(Aqmachinename@realm\*(Aq which is added to the keytab file\&.
+.RE
+.PP
+serviceclass
+.RS 4
+A serviceclass (such as \*(Aqcifs\*(Aq, \*(Aqhtml\*(Aq etc\&.) is used to create a pair of kerberos principals \*(Aqserviceclass/fully_qualified_dns_name@realm\*(Aq & \*(Aqserviceclass/netbios_name@realm\*(Aq which are added to the keytab file\&.
+.RE
+.PP
+Windows SPN
+.RS 4
+A Windows SPN is of the format \*(Aqserviceclass/host:port\*(Aq, it is used to create a kerberos principal \*(Aqserviceclass/host@realm\*(Aq which will be written to the keytab file\&.
+.RE
+.PP
+Unlike old versions no computer AD objects are modified by this command\&. To preserve the bevhaviour of older clients \*(Aqnet ads keytab ad_update_ads\*(Aq is available\&.
+.SS "ADS KEYTAB \fIADD_UPDATE_ADS\fR \fI(principal | machine | serviceclass | windows SPN\fR"
+.PP
+Adds a new keytab entry (see section for net ads keytab add)\&. In addition to adding entries to the keytab file corrosponding Windows SPNs are created from the entry passed to this command\&. These SPN(s) added to the AD computer account object associated with the client machine running this command for the following entry types;
+.PP
+serviceclass
+.RS 4
+A serviceclass (such as \*(Aqcifs\*(Aq, \*(Aqhtml\*(Aq etc\&.) is used to create a pair of Windows SPN(s) \*(Aqparam/full_qualified_dns\*(Aq & \*(Aqparam/netbios_name\*(Aq which are added to the AD computer account object for this client\&.
+.RE
+.PP
+Windows SPN
+.RS 4
+A Windows SPN is of the format \*(Aqserviceclass/host:port\*(Aq, it is added as passed to the AD computer account object for this client\&.
+.RE
+.SS "ADS setspn \fISETSPN LIST [machine]\fR"
+.PP
+Lists the Windows SPNs stored in the \*(Aqmachine\*(Aq Windows AD Computer object\&. If \*(Aqmachine\*(Aq is not specified then computer account for this client is used instead\&.
+.SS "ADS setspn \fISETSPN ADD SPN [machine]\fR"
+.PP
+Adds the specified Windows SPN to the \*(Aqmachine\*(Aq Windows AD Computer object\&. If \*(Aqmachine\*(Aq is not specified then computer account for this client is used instead\&.
+.SS "ADS setspn \fISETSPN DELETE SPN [machine]\fR"
+.PP
+DELETE the specified Window SPN from the \*(Aqmachine\*(Aq Windows AD Computer object\&. If \*(Aqmachine\*(Aq is not specified then computer account for this client is used instead\&.
+.SS "ADS WORKGROUP"
+.PP
+Print out workgroup name for specified kerberos realm\&.
+.SS "ADS ENCTYPES"
+.PP
+List, modify or delete the value of the "msDS\-SupportedEncryptionTypes" attribute of an account in AD\&.
+.PP
+This attribute allows one to control which Kerberos encryption types are used for the generation of initial and service tickets\&. The value consists of an integer bitmask with the following values:
+.PP
+0x00000001 DES\-CBC\-CRC
+.PP
+0x00000002 DES\-CBC\-MD5
+.PP
+0x00000004 RC4\-HMAC
+.PP
+0x00000008 AES128\-CTS\-HMAC\-SHA1\-96
+.PP
+0x00000010 AES256\-CTS\-HMAC\-SHA1\-96
+.SS "ADS ENCTYPES LIST \fI<ACCOUNTNAME>\fR"
+.PP
+List the value of the "msDS\-SupportedEncryptionTypes" attribute of a given account\&.
+.PP
+Example:
+\fBnet ads enctypes list Computername\fR
+.SS "ADS ENCTYPES SET \fI<ACCOUNTNAME>\fR \fI[enctypes]\fR"
+.PP
+Set the value of the "msDS\-SupportedEncryptionTypes" attribute of the LDAP object of ACCOUNTNAME to a given value\&. If the value is omitted, the value is set to 31 which enables all the currently supported encryption types\&.
+.PP
+Example:
+\fBnet ads enctypes set Computername 24\fR
+.SS "ADS ENCTYPES DELETE \fI<ACCOUNTNAME>\fR"
+.PP
+Deletes the "msDS\-SupportedEncryptionTypes" attribute of the LDAP object of ACCOUNTNAME\&.
+.PP
+Example:
+\fBnet ads enctypes set Computername 24\fR
+.SS "SAM CREATEBUILTINGROUP <NAME>"
+.PP
+(Re)Create a BUILTIN group\&. Only a wellknown set of BUILTIN groups can be created with this command\&. This is the list of currently recognized group names: Administrators, Users, Guests, Power Users, Account Operators, Server Operators, Print Operators, Backup Operators, Replicator, RAS Servers, Pre\-Windows 2000 compatible Access\&. This command requires a running Winbindd with idmap allocation properly configured\&. The group gid will be allocated out of the winbindd range\&.
+.SS "SAM CREATELOCALGROUP <NAME>"
+.PP
+Create a LOCAL group (also known as Alias)\&. This command requires a running Winbindd with idmap allocation properly configured\&. The group gid will be allocated out of the winbindd range\&.
+.SS "SAM DELETELOCALGROUP <NAME>"
+.PP
+Delete an existing LOCAL group (also known as Alias)\&.
+.SS "SAM MAPUNIXGROUP <NAME>"
+.PP
+Map an existing Unix group and make it a Domain Group, the domain group will have the same name\&.
+.SS "SAM UNMAPUNIXGROUP <NAME>"
+.PP
+Remove an existing group mapping entry\&.
+.SS "SAM ADDMEM <GROUP> <MEMBER>"
+.PP
+Add a member to a Local group\&. The group can be specified only by name, the member can be specified by name or SID\&.
+.SS "SAM DELMEM <GROUP> <MEMBER>"
+.PP
+Remove a member from a Local group\&. The group and the member must be specified by name\&.
+.SS "SAM LISTMEM <GROUP>"
+.PP
+List Local group members\&. The group must be specified by name\&.
+.SS "SAM LIST <users|groups|localgroups|builtin|workstations> [verbose]"
+.PP
+List the specified set of accounts by name\&. If verbose is specified, the rid and description is also provided for each account\&.
+.SS "SAM RIGHTS LIST"
+.PP
+List all available privileges\&.
+.SS "SAM RIGHTS GRANT <NAME> <PRIVILEGE>"
+.PP
+Grant one or more privileges to a user\&.
+.SS "SAM RIGHTS REVOKE <NAME> <PRIVILEGE>"
+.PP
+Revoke one or more privileges from a user\&.
+.SS "SAM SHOW <NAME>"
+.PP
+Show the full DOMAIN\e\eNAME the SID and the type for the corresponding account\&.
+.SS "SAM SET HOMEDIR <NAME> <DIRECTORY>"
+.PP
+Set the home directory for a user account\&.
+.SS "SAM SET PROFILEPATH <NAME> <PATH>"
+.PP
+Set the profile path for a user account\&.
+.SS "SAM SET COMMENT <NAME> <COMMENT>"
+.PP
+Set the comment for a user or group account\&.
+.SS "SAM SET FULLNAME <NAME> <FULL NAME>"
+.PP
+Set the full name for a user account\&.
+.SS "SAM SET LOGONSCRIPT <NAME> <SCRIPT>"
+.PP
+Set the logon script for a user account\&.
+.SS "SAM SET HOMEDRIVE <NAME> <DRIVE>"
+.PP
+Set the home drive for a user account\&.
+.SS "SAM SET WORKSTATIONS <NAME> <WORKSTATIONS>"
+.PP
+Set the workstations a user account is allowed to log in from\&.
+.SS "SAM SET DISABLE <NAME>"
+.PP
+Set the "disabled" flag for a user account\&.
+.SS "SAM SET PWNOTREQ <NAME>"
+.PP
+Set the "password not required" flag for a user account\&.
+.SS "SAM SET AUTOLOCK <NAME>"
+.PP
+Set the "autolock" flag for a user account\&.
+.SS "SAM SET PWNOEXP <NAME>"
+.PP
+Set the "password do not expire" flag for a user account\&.
+.SS "SAM SET PWDMUSTCHANGENOW <NAME> [yes|no]"
+.PP
+Set or unset the "password must change" flag for a user account\&.
+.SS "SAM POLICY LIST"
+.PP
+List the available account policies\&.
+.SS "SAM POLICY SHOW <account policy>"
+.PP
+Show the account policy value\&.
+.SS "SAM POLICY SET <account policy> <value>"
+.PP
+Set a value for the account policy\&. Valid values can be: "forever", "never", "off", or a number\&.
+.SS "SAM PROVISION"
+.PP
+Only available if ldapsam:editposix is set and winbindd is running\&. Properly populates the ldap tree with the basic accounts (Administrator) and groups (Domain Users, Domain Admins, Domain Guests) on the ldap tree\&.
+.SS "IDMAP DUMP <local tdb file name>"
+.PP
+Dumps the mappings contained in the local tdb file specified\&. This command is useful to dump only the mappings produced by the idmap_tdb backend\&.
+.SS "IDMAP RESTORE [input file]"
+.PP
+Restore the mappings from the specified file or stdin\&.
+.SS "IDMAP SET SECRET <DOMAIN> <secret>"
+.PP
+Store a secret for the specified domain, used primarily for domains that use idmap_ldap as a backend\&. In this case the secret is used as the password for the user DN used to bind to the ldap server\&.
+.SS "IDMAP SET RANGE <RANGE> <SID> [index] [\-\-db=<DB>]"
+.PP
+Store a domain\-range mapping for a given domain (and index) in autorid database\&.
+.SS "IDMAP SET CONFIG <config> [\-\-db=<DB>]"
+.PP
+Update CONFIG entry in autorid database\&.
+.SS "IDMAP GET RANGE <SID> [index] [\-\-db=<DB>]"
+.PP
+Get the range for a given domain and index from autorid database\&.
+.SS "IDMAP GET RANGES [<SID>] [\-\-db=<DB>]"
+.PP
+Get ranges for all domains or for one identified by given SID\&.
+.SS "IDMAP GET CONFIG [\-\-db=<DB>]"
+.PP
+Get CONFIG entry from autorid database\&.
+.SS "IDMAP DELETE MAPPING [\-f] [\-\-db=<DB>] <ID>"
+.PP
+Delete a mapping sid <\-> gid or sid <\-> uid from the IDMAP database\&. The mapping is given by <ID> which may either be a sid: S\-x\-\&.\&.\&., a gid: "GID number" or a uid: "UID number"\&. Use \-f to delete an invalid partial mapping <ID> \-> xx
+.PP
+Use "smbcontrol all idmap \&.\&.\&." to notify running smbd instances\&. See the
+\fBsmbcontrol\fR(1)
+manpage for details\&.
+.SS "IDMAP DELETE RANGE [\-f] [\-\-db=<TDB>] <RANGE>|(<SID> [<INDEX>])"
+.PP
+Delete a domain range mapping identified by \*(AqRANGE\*(Aq or "domain SID and INDEX" from autorid database\&. Use \-f to delete invalid mappings\&.
+.SS "IDMAP DELETE RANGES [\-f] [\-\-db=<TDB>] <SID>"
+.PP
+Delete all domain range mappings for a domain identified by SID\&. Use \-f to delete invalid mappings\&.
+.SS "IDMAP CHECK [\-v] [\-r] [\-a] [\-T] [\-f] [\-l] [\-\-db=<DB>]"
+.PP
+Check and repair the IDMAP database\&. If no option is given a read only check of the database is done\&. Among others an interactive or automatic repair mode may be chosen with one of the following options:
+.PP
+\-r|\-\-repair
+.RS 4
+Interactive repair mode, ask a lot of questions\&.
+.RE
+.PP
+\-a|\-\-auto
+.RS 4
+Noninteractive repair mode, use default answers\&.
+.RE
+.PP
+\-v|\-\-verbose
+.RS 4
+Produce more output\&.
+.RE
+.PP
+\-f|\-\-force
+.RS 4
+Try to apply changes, even if they do not apply cleanly\&.
+.RE
+.PP
+\-T|\-\-test
+.RS 4
+Dry run, show what changes would be made but don\*(Aqt touch anything\&.
+.RE
+.PP
+\-l|\-\-lock
+.RS 4
+Lock the database while doing the check\&.
+.RE
+.PP
+\-\-db <DB>
+.RS 4
+Check the specified database\&.
+.RE
+.PP
+.RS 4
+.RE
+It reports about the finding of the following errors:
+.PP
+Missing reverse mapping:
+.RS 4
+A record with mapping A\->B where there is no B\->A\&. Default action in repair mode is to "fix" this by adding the reverse mapping\&.
+.RE
+.PP
+Invalid mapping:
+.RS 4
+A record with mapping A\->B where B\->C\&. Default action is to "delete" this record\&.
+.RE
+.PP
+Missing or invalid HWM:
+.RS 4
+A high water mark is not at least equal to the largest ID in the database\&. Default action is to "fix" this by setting it to the largest ID found +1\&.
+.RE
+.PP
+Invalid record:
+.RS 4
+Something we failed to parse\&. Default action is to "edit" it in interactive and "delete" it in automatic mode\&.
+.RE
+.SS "USERSHARE"
+.PP
+Starting with version 3\&.0\&.23, a Samba server now supports the ability for non\-root users to add user defined shares to be exported using the "net usershare" commands\&.
+.PP
+To set this up, first set up your
+/etc/samba/smb\&.conf
+by adding to the [global] section: usershare path = /usr/local/samba/lib/usershares Next create the directory /usr/local/samba/lib/usershares, change the owner to root and set the group owner to the UNIX group who should have the ability to create usershares, for example a group called "serverops"\&. Set the permissions on /usr/local/samba/lib/usershares to 01770\&. (Owner and group all access, no access for others, plus the sticky bit, which means that a file in that directory can be renamed or deleted only by the owner of the file)\&. Finally, tell smbd how many usershares you will allow by adding to the [global] section of
+/etc/samba/smb\&.conf
+a line such as : usershare max shares = 100\&. To allow 100 usershare definitions\&. Now, members of the UNIX group "serverops" can create user defined shares on demand using the commands below\&.
+.PP
+The usershare commands are:
+.RS 4
+net usershare add sharename path [comment [acl] [guest_ok=[y|n]]] \- to add or change a user defined share\&.
+.RE
+.RS 4
+net usershare delete sharename \- to delete a user defined share\&.
+.RE
+.RS 4
+net usershare info [\-\-long] [wildcard sharename] \- to print info about a user defined share\&.
+.RE
+.RS 4
+net usershare list [\-\-long] [wildcard sharename] \- to list user defined shares\&.
+.RE
+.SS "USERSHARE ADD sharename path [comment] [acl] [guest_ok=[y|n]]"
+.PP
+Add or replace a new user defined share, with name "sharename"\&.
+.PP
+"path" specifies the absolute pathname on the system to be exported\&. Restrictions may be put on this, see the global
+/etc/samba/smb\&.conf
+parameters: "usershare owner only", "usershare prefix allow list", and "usershare prefix deny list"\&.
+.PP
+The optional "comment" parameter is the comment that will appear on the share when browsed to by a client\&.
+.PP
+The optional "acl" field specifies which users have read and write access to the entire share\&. Note that guest connections are not allowed unless the
+/etc/samba/smb\&.conf
+parameter "usershare allow guests" has been set\&. The definition of a user defined share acl is: "user:permission", where user is a valid username on the system and permission can be "F", "R", or "D"\&. "F" stands for "full permissions", ie\&. read and write permissions\&. "D" stands for "deny" for a user, ie\&. prevent this user from accessing this share\&. "R" stands for "read only", ie\&. only allow read access to this share (no creation of new files or directories or writing to files)\&.
+.PP
+The default if no "acl" is given is "Everyone:R", which means any authenticated user has read\-only access\&.
+.PP
+The optional "guest_ok" has the same effect as the parameter of the same name in
+/etc/samba/smb\&.conf, in that it allows guest access to this user defined share\&. This parameter is only allowed if the global parameter "usershare allow guests" has been set to true in the
+/etc/samba/smb\&.conf\&.
+
+
+There is no separate command to modify an existing user defined share,
+just use the "net usershare add [sharename]" command using the same
+sharename as the one you wish to modify and specify the new options
+you wish\&. The Samba smbd daemon notices user defined share modifications
+at connect time so will see the change immediately, there is no need
+to restart smbd on adding, deleting or changing a user defined share\&.
+.SS "USERSHARE DELETE sharename"
+.PP
+Deletes the user defined share by name\&. The Samba smbd daemon immediately notices this change, although it will not disconnect any users currently connected to the deleted share\&.
+.SS "USERSHARE INFO [--long] [wildcard sharename]"
+.PP
+Get info on user defined shares owned by the current user matching the given pattern, or all users\&.
+.PP
+net usershare info on its own dumps out info on the user defined shares that were created by the current user, or restricts them to share names that match the given wildcard pattern (\*(Aq*\*(Aq matches one or more characters, \*(Aq?\*(Aq matches only one character)\&. If the \*(Aq\-\-long\*(Aq option is also given, it prints out info on user defined shares created by other users\&.
+.PP
+The information given about a share looks like: [foobar] path=/home/jeremy comment=testme usershare_acl=Everyone:F guest_ok=n And is a list of the current settings of the user defined share that can be modified by the "net usershare add" command\&.
+.SS "USERSHARE LIST [--long] wildcard sharename"
+.PP
+List all the user defined shares owned by the current user matching the given pattern, or all users\&.
+.PP
+net usershare list on its own list out the names of the user defined shares that were created by the current user, or restricts the list to share names that match the given wildcard pattern (\*(Aq*\*(Aq matches one or more characters, \*(Aq?\*(Aq matches only one character)\&. If the \*(Aq\-\-long\*(Aq option is also given, it includes the names of user defined shares created by other users\&.
+.SS "[RPC] CONF"
+.PP
+Starting with version 3\&.2\&.0, a Samba server can be configured by data stored in registry\&. This configuration data can be edited with the new "net conf" commands\&. There is also the possibility to configure a remote Samba server by enabling the RPC conf mode and specifying the address of the remote server\&.
+.PP
+The deployment of this configuration data can be activated in two levels from the
+\fI/etc/samba/smb\&.conf\fR
+file: Share definitions from registry are activated by setting
+\fIregistry shares\fR
+to
+\(lqyes\(rq
+in the [global] section and global configuration options are activated by setting
+\m[blue]\fBinclude = registry\fR\m[]
+in the [global] section for a mixed configuration or by setting
+\m[blue]\fBconfig backend = registry\fR\m[]
+in the [global] section for a registry\-only configuration\&. See the
+\fBsmb.conf\fR(5)
+manpage for details\&.
+.PP
+The conf commands are:
+.RS 4
+net [rpc] conf list \- Dump the complete configuration in smb\&.conf like
+format\&.
+.RE
+.RS 4
+net [rpc] conf import \- Import configuration from file in smb\&.conf
+format\&.
+.RE
+.RS 4
+net [rpc] conf listshares \- List the registry shares\&.
+.RE
+.RS 4
+net [rpc] conf drop \- Delete the complete configuration from
+registry\&.
+.RE
+.RS 4
+net [rpc] conf showshare \- Show the definition of a registry share\&.
+.RE
+.RS 4
+net [rpc] conf addshare \- Create a new registry share\&.
+.RE
+.RS 4
+net [rpc] conf delshare \- Delete a registry share\&.
+.RE
+.RS 4
+net [rpc] conf setparm \- Store a parameter\&.
+.RE
+.RS 4
+net [rpc] conf getparm \- Retrieve the value of a parameter\&.
+.RE
+.RS 4
+net [rpc] conf delparm \- Delete a parameter\&.
+.RE
+.RS 4
+net [rpc] conf getincludes \- Show the includes of a share definition\&.
+.RE
+.RS 4
+net [rpc] conf setincludes \- Set includes for a share\&.
+.RE
+.RS 4
+net [rpc] conf delincludes \- Delete includes from a share definition\&.
+.RE
+.SS "[RPC] CONF LIST"
+.PP
+Print the configuration data stored in the registry in a smb\&.conf\-like format to standard output\&.
+.SS "[RPC] CONF IMPORT [--test|-T] filename [section]"
+.PP
+This command imports configuration from a file in smb\&.conf format\&. If a section encountered in the input file is present in registry, its contents is replaced\&. Sections of registry configuration that have no counterpart in the input file are not affected\&. If you want to delete these, you will have to use the "net conf drop" or "net conf delshare" commands\&. Optionally, a section may be specified to restrict the effect of the import command to that specific section\&. A test mode is enabled by specifying the parameter "\-T" on the commandline\&. In test mode, no changes are made to the registry, and the resulting configuration is printed to standard output instead\&.
+.SS "[RPC] CONF LISTSHARES"
+.PP
+List the names of the shares defined in registry\&.
+.SS "[RPC] CONF DROP"
+.PP
+Delete the complete configuration data from registry\&.
+.SS "[RPC] CONF SHOWSHARE sharename"
+.PP
+Show the definition of the share or section specified\&. It is valid to specify "global" as sharename to retrieve the global configuration options from registry\&.
+.SS "[RPC] CONF ADDSHARE sharename path [writeable={y|N} [guest_ok={y|N} [comment]]] "
+.PP
+Create a new share definition in registry\&. The sharename and path have to be given\&. The share name may
+\fInot\fR
+be "global"\&. Optionally, values for the very common options "writeable", "guest ok" and a "comment" may be specified\&. The same result may be obtained by a sequence of "net conf setparm" commands\&.
+.SS "[RPC] CONF DELSHARE sharename"
+.PP
+Delete a share definition from registry\&.
+.SS "[RPC] CONF SETPARM section parameter value"
+.PP
+Store a parameter in registry\&. The section may be global or a sharename\&. The section is created if it does not exist yet\&.
+.SS "[RPC] CONF GETPARM section parameter"
+.PP
+Show a parameter stored in registry\&.
+.SS "[RPC] CONF DELPARM section parameter"
+.PP
+Delete a parameter stored in registry\&.
+.SS "[RPC] CONF GETINCLUDES section"
+.PP
+Get the list of includes for the provided section (global or share)\&.
+.PP
+Note that due to the nature of the registry database and the nature of include directives, the includes need special treatment: Parameters are stored in registry by the parameter name as valuename, so there is only ever one instance of a parameter per share\&. Also, a specific order like in a text file is not guaranteed\&. For all real parameters, this is perfectly ok, but the include directive is rather a meta parameter, for which, in the smb\&.conf text file, the place where it is specified between the other parameters is very important\&. This can not be achieved by the simple registry smbconf data model, so there is one ordered list of includes per share, and this list is evaluated after all the parameters of the share\&.
+.PP
+Further note that currently, only files can be included from registry configuration\&. In the future, there will be the ability to include configuration data from other registry keys\&.
+.SS "[RPC] CONF SETINCLUDES section [filename]+"
+.PP
+Set the list of includes for the provided section (global or share) to the given list of one or more filenames\&. The filenames may contain the usual smb\&.conf macros like %I\&.
+.SS "[RPC] CONF DELINCLUDES section"
+.PP
+Delete the list of includes from the provided section (global or share)\&.
+.SS "REGISTRY"
+.PP
+Manipulate Samba\*(Aqs registry\&.
+.PP
+The registry commands are:
+.RS 4
+net registry enumerate \- Enumerate registry keys and values\&.
+.RE
+.RS 4
+net registry enumerate_recursive \- Enumerate registry key and its subkeys\&.
+.RE
+.RS 4
+net registry createkey \- Create a new registry key\&.
+.RE
+.RS 4
+net registry deletekey \- Delete a registry key\&.
+.RE
+.RS 4
+net registry deletekey_recursive \- Delete a registry key with subkeys\&.
+.RE
+.RS 4
+net registry getvalue \- Print a registry value\&.
+.RE
+.RS 4
+net registry getvalueraw \- Print a registry value (raw format)\&.
+.RE
+.RS 4
+net registry setvalue \- Set a new registry value\&.
+.RE
+.RS 4
+net registry increment \- Increment a DWORD registry value under a lock\&.
+.RE
+.RS 4
+net registry deletevalue \- Delete a registry value\&.
+.RE
+.RS 4
+net registry getsd \- Get security descriptor\&.
+.RE
+.RS 4
+net registry getsd_sdd1 \- Get security descriptor in sddl format\&.
+.RE
+.RS 4
+net registry setsd_sdd1 \- Set security descriptor from sddl format
+string\&.
+.RE
+.RS 4
+net registry import \- Import a registration entries (\&.reg) file\&.
+.RE
+.RS 4
+net registry export \- Export a registration entries (\&.reg) file\&.
+.RE
+.RS 4
+net registry convert \- Convert a registration entries (\&.reg) file\&.
+.RE
+.RS 4
+net registry check \- Check and repair a registry database\&.
+.RE
+.SS "REGISTRY ENUMERATE key "
+.PP
+Enumerate subkeys and values of
+\fIkey\fR\&.
+.SS "REGISTRY ENUMERATE_RECURSIVE key "
+.PP
+Enumerate values of
+\fIkey\fR
+and its subkeys\&.
+.SS "REGISTRY CREATEKEY key "
+.PP
+Create a new
+\fIkey\fR
+if not yet existing\&.
+.SS "REGISTRY DELETEKEY key "
+.PP
+Delete the given
+\fIkey\fR
+and its values from the registry, if it has no subkeys\&.
+.SS "REGISTRY DELETEKEY_RECURSIVE key "
+.PP
+Delete the given
+\fIkey\fR
+and all of its subkeys and values from the registry\&.
+.SS "REGISTRY GETVALUE key name"
+.PP
+Output type and actual value of the value
+\fIname\fR
+of the given
+\fIkey\fR\&.
+.SS "REGISTRY GETVALUERAW key name"
+.PP
+Output the actual value of the value
+\fIname\fR
+of the given
+\fIkey\fR\&.
+.SS "REGISTRY SETVALUE key name type value ..."
+.PP
+Set the value
+\fIname\fR
+of an existing
+\fIkey\fR\&.
+\fItype\fR
+may be one of
+\fIsz\fR,
+\fImulti_sz\fR
+or
+\fIdword\fR\&. In case of
+\fImulti_sz\fR
+\fIvalue\fR
+may be given multiple times\&.
+.SS "REGISTRY INCREMENT key name [inc]"
+.PP
+Increment the DWORD value
+\fIname\fR
+of
+\fIkey\fR
+by
+\fIinc\fR
+while holding a g_lock\&.
+\fIinc\fR
+defaults to 1\&.
+.SS "REGISTRY DELETEVALUE key name"
+.PP
+Delete the value
+\fIname\fR
+of the given
+\fIkey\fR\&.
+.SS "REGISTRY GETSD key"
+.PP
+Get the security descriptor of the given
+\fIkey\fR\&.
+.SS "REGISTRY GETSD_SDDL key"
+.PP
+Get the security descriptor of the given
+\fIkey\fR
+as a Security Descriptor Definition Language (SDDL) string\&.
+.SS "REGISTRY SETSD_SDDL keysd"
+.PP
+Set the security descriptor of the given
+\fIkey\fR
+from a Security Descriptor Definition Language (SDDL) string
+\fIsd\fR\&.
+.SS "REGISTRY IMPORT file [--precheck <check-file>] [opt]"
+.PP
+Import a registration entries (\&.reg)
+\fIfile\fR\&.
+.PP
+The following options are available:
+.PP
+\-\-precheck \fIcheck\-file\fR
+.RS 4
+This is a mechanism to check the existence or non\-existence of certain keys or values specified in a precheck file before applying the import file\&. The import file will only be applied if the precheck succeeds\&.
+.sp
+The check\-file follows the normal registry file syntax with the following semantics:
+.RS
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+<value name>=<value> checks whether the value exists and has the given value\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+<value name>=\- checks whether the value does not exist\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+[key] checks whether the key exists\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+[\-key] checks whether the key does not exist\&.
+.RE
+.sp
+.RE
+.RE
+.SS "REGISTRY EXPORT keyfile[opt]"
+.PP
+Export a
+\fIkey\fR
+to a registration entries (\&.reg)
+\fIfile\fR\&.
+.SS "REGISTRY CONVERT in out [[inopt] outopt]"
+.PP
+Convert a registration entries (\&.reg) file
+\fIin\fR\&.
+.SS "REGISTRY CHECK [-ravTl] [-o <ODB>] [--wipe] [<DB>]"
+.PP
+Check and repair the registry database\&. If no option is given a read only check of the database is done\&. Among others an interactive or automatic repair mode may be chosen with one of the following options
+.PP
+\-r|\-\-repair
+.RS 4
+Interactive repair mode, ask a lot of questions\&.
+.RE
+.PP
+\-a|\-\-auto
+.RS 4
+Noninteractive repair mode, use default answers\&.
+.RE
+.PP
+\-v|\-\-verbose
+.RS 4
+Produce more output\&.
+.RE
+.PP
+\-T|\-\-test
+.RS 4
+Dry run, show what changes would be made but don\*(Aqt touch anything\&.
+.RE
+.PP
+\-l|\-\-lock
+.RS 4
+Lock the database while doing the check\&.
+.RE
+.PP
+\-\-reg\-version={1,2,3}
+.RS 4
+Specify the format of the registry database\&. If not given it defaults to the value of the binary or, if an registry\&.tdb is explicitly stated at the commandline, to the value found in the INFO/version record\&.
+.RE
+.PP
+[\-\-db] <DB>
+.RS 4
+Check the specified database\&.
+.RE
+.PP
+\-o|\-\-output <ODB>
+.RS 4
+Create a new registry database <ODB> instead of modifying the input\&. If <ODB> is already existing \-\-wipe may be used to overwrite it\&.
+.RE
+.PP
+\-\-wipe
+.RS 4
+Replace the registry database instead of modifying the input or overwrite an existing output database\&.
+.RE
+.PP
+.RS 4
+.RE
+.SS "EVENTLOG"
+.PP
+Starting with version 3\&.4\&.0 net can read, dump, import and export native win32 eventlog files (usually *\&.evt)\&. evt files are used by the native Windows eventviewer tools\&.
+.PP
+The import and export of evt files can only succeed when
+\fIeventlog list\fR
+is used in
+\fI/etc/samba/smb\&.conf\fR
+file\&. See the
+\fBsmb.conf\fR(5)
+manpage for details\&.
+.PP
+The eventlog commands are:
+.RS 4
+net eventlog dump \- Dump a eventlog *\&.evt file on the screen\&.
+.RE
+.RS 4
+net eventlog import \- Import a eventlog *\&.evt into the samba internal
+tdb based representation of eventlogs\&.
+.RE
+.RS 4
+net eventlog export \- Export the samba internal tdb based representation
+of eventlogs into an eventlog *\&.evt file\&.
+.RE
+.SS "EVENTLOG DUMP filename"
+.PP
+Prints a eventlog *\&.evt file to standard output\&.
+.SS "EVENTLOG IMPORT filename eventlog"
+.PP
+Imports a eventlog *\&.evt file defined by
+\fIfilename\fR
+into the samba internal tdb representation of eventlog defined by
+\fIeventlog\fR\&.
+\fIeventlog\fR
+needs to part of the
+\fIeventlog list\fR
+defined in
+/etc/samba/smb\&.conf\&. See the
+\fBsmb.conf\fR(5)
+manpage for details\&.
+.SS "EVENTLOG EXPORT filename eventlog"
+.PP
+Exports the samba internal tdb representation of eventlog defined by
+\fIeventlog\fR
+to a eventlog *\&.evt file defined by
+\fIfilename\fR\&.
+\fIeventlog\fR
+needs to part of the
+\fIeventlog list\fR
+defined in
+/etc/samba/smb\&.conf\&. See the
+\fBsmb.conf\fR(5)
+manpage for details\&.
+.SS "DOM"
+.PP
+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\&.
+.PP
+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\&.
+.PP
+The client side support for remote join is implemented in the net dom commands which are:
+.RS 4
+net dom join \- Join a remote computer into a domain\&.
+.RE
+.RS 4
+net dom unjoin \- Unjoin a remote computer from a domain\&.
+.RE
+.RS 4
+net dom renamecomputer \- Renames a remote computer joined to a domain\&.
+.RE
+.SS "DOM JOIN domain=DOMAIN ou=OU account=ACCOUNT password=PASSWORD reboot"
+.PP
+Joins a computer into a domain\&. This command supports the following additional parameters:
+.RS
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIDOMAIN\fR
+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 \e separator character\&. Example: MYDOM\eMYDC\&. The
+\fIDOMAIN\fR
+parameter cannot be NULL\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIOU\fR
+can be set to a RFC 1779 LDAP DN, like
+\fIou=mymachines,cn=Users,dc=example,dc=com\fR
+in order to create the machine account in a non\-default LDAP container\&. This optional parameter is only supported when joining Active Directory Domains\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIACCOUNT\fR
+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\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIPASSWORD\fR
+defines the password for the domain account defined with
+\fIACCOUNT\fR\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIREBOOT\fR
+is an optional parameter that can be set to reboot the remote machine after successful join to the domain\&.
+.RE
+.sp
+.RE
+.PP
+Note that you also need to use standard net parameters to connect and authenticate to the remote machine that you want to join\&. These additional parameters include: \-S computer and \-U user\&.
+.PP
+Example: net dom join \-S xp \-U XP\e\eadministrator%secret domain=MYDOM account=MYDOM\e\eadministrator password=topsecret reboot\&.
+.PP
+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\&.
+.SS "DOM UNJOIN account=ACCOUNT password=PASSWORD reboot"
+.PP
+Unjoins a computer from a domain\&. This command supports the following additional parameters:
+.RS
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIACCOUNT\fR
+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\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIPASSWORD\fR
+defines the password for the domain account defined with
+\fIACCOUNT\fR\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIREBOOT\fR
+is an optional parameter that can be set to reboot the remote machine after successful unjoin from the domain\&.
+.RE
+.sp
+.RE
+.PP
+Note that you also need to use standard net parameters to connect and authenticate to the remote machine that you want to unjoin\&. These additional parameters include: \-S computer and \-U user\&.
+.PP
+Example: net dom unjoin \-S xp \-U XP\e\eadministrator%secret account=MYDOM\e\eadministrator password=topsecret reboot\&.
+.PP
+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\&.
+.SS "DOM RENAMECOMPUTER newname=NEWNAME account=ACCOUNT password=PASSWORD reboot"
+.PP
+Renames a computer that is joined to a domain\&. This command supports the following additional parameters:
+.RS
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fINEWNAME\fR
+defines the new name of the machine in the domain\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIACCOUNT\fR
+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\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIPASSWORD\fR
+defines the password for the domain account defined with
+\fIACCOUNT\fR\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIREBOOT\fR
+is an optional parameter that can be set to reboot the remote machine after successful rename in the domain\&.
+.RE
+.sp
+.RE
+.PP
+Note that you also need to use standard net parameters to connect and authenticate to the remote machine that you want to rename in the domain\&. These additional parameters include: \-S computer and \-U user\&.
+.PP
+Example: net dom renamecomputer \-S xp \-U XP\e\eadministrator%secret newname=XPNEW account=MYDOM\e\eadministrator password=topsecret reboot\&.
+.PP
+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\&.
+.SS "G_LOCK"
+.PP
+Manage global locks\&.
+.SS "G_LOCK DO lockname timeout command"
+.PP
+Execute a shell command under a global lock\&. This might be useful to define the order in which several shell commands will be executed\&. The locking information is stored in a file called
+g_lock\&.tdb\&. In setups with CTDB running, the locking information will be available on all cluster nodes\&.
+.RS
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fILOCKNAME\fR
+defines the name of the global lock\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fITIMEOUT\fR
+defines the timeout\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fICOMMAND\fR
+defines the shell command to execute\&.
+.RE
+.SS "G_LOCK LOCKS"
+.PP
+Print a list of all currently existing locknames\&.
+.SS "G_LOCK DUMP lockname"
+.PP
+Dump the locking table of a certain global lock\&.
+.SS "TDB"
+.PP
+Print information from tdb records\&.
+.SS "TDB LOCKING key [DUMP]"
+.PP
+List sharename, filename and number of share modes for a record from locking\&.tdb\&. With the optional DUMP options, dump the complete record\&.
+.RS
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIKEY\fR
+Key of the tdb record as hex string\&.
+.RE
+.SS "vfs"
+.PP
+Access shared filesystem through the VFS\&.
+.SS "vfs stream2abouble [--recursive] [--verbose] [--continue] [--follow-symlinks] share path"
+.PP
+Convert file streams to AppleDouble files\&.
+.RS
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIshare\fR
+A Samba share\&.
+.RE
+.sp
+.RE
+.RS
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIpath\fR
+A relative path of something in the Samba share\&. "\&." can be used for the root directory of the share\&.
+.RE
+.sp
+.RE
+.PP
+Options:
+.PP
+\-\-recursive
+.RS 4
+Traverse a directory hierarchy\&.
+.RE
+.PP
+\-\-verbose
+.RS 4
+Verbose output\&.
+.RE
+.PP
+\-\-continue
+.RS 4
+Continue traversing a directory hierarchy if a single conversion fails\&.
+.RE
+.PP
+\-\-follow\-symlinks
+.RS 4
+Follow symlinks encountered while traversing a directory\&.
+.RE
+.SS "vfs getntacl share path"
+.PP
+Display the security descriptor of a file or directory\&.
+.RS
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIshare\fR
+A Samba share\&.
+.RE
+.sp
+.RE
+.RS
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIpath\fR
+A relative path of something in the Samba share\&. "\&." can be used for the root directory of the share\&.
+.RE
+.SS "OFFLINEJOIN"
+.PP
+Starting with version 4\&.15 Samba has support for offline join APIs\&. Windows supports offline join capabilities since Windows 7 and Windows 2008 R2\&.
+.PP
+The following offline commands are implemented:
+.RS 4
+net offlinejoin provision \- Provisions a machine account in AD\&.
+.RE
+.RS 4
+net offlinejoin requestodj \- Requests a domain offline join\&.
+.RE
+.SS "OFFLINEJOIN PROVISION domain=DOMAIN machine_name=MACHINE_NAME machine_account_ou=MACHINE_ACCOUNT_OU dcname=DCNAME defpwd reuse savefile=FILENAME printblob"
+.PP
+Provisions a machine account in AD\&. This command needs network connectivity to the domain controller to succeed\&. This command supports the following additional parameters:
+.RS
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIDOMAIN\fR
+can be a NetBIOS domain name (also known as short domain name) or a DNS domain name for Active Directory Domains\&. The
+\fIDOMAIN\fR
+parameter cannot be NULL\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIMACHINE_NAME\fR
+defines the machine account name that will be provisioned in AD\&. The
+\fIMACHINE_NAME\fR
+parameter cannot be NULL\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIMACHINE_ACCOUNT_OU\fR
+can be set to a RFC 1779 LDAP DN, like
+\fIou=mymachines,cn=Users,dc=example,dc=com\fR
+in order to create the machine account in a non\-default LDAP container\&. This optional parameter is only supported when joining Active Directory Domains\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIDCNAME\fR
+defines a specific domain controller for creating the machine account in AD\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIDEFPWD\fR
+is an optional parameter that can be set to enforce using the default machine account password\&. The use of this parameter is not recommended as the default machine account password can be easily guessed\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIREUSE\fR
+is an optional parameter that can be set to enforce reusing an existing machine account in AD\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fISAVEFILE\fR
+is an optional parameter to store the generated provisioning data on disk\&.
+.RE
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fIPRINTBLOB\fR
+is an optional parameter to print the generated provisioning data on stdout\&.
+.RE
+.sp
+.RE
+.PP
+Example: net offlinejoin provision \-U administrator%secret domain=MYDOM machine_name=MYHOST savefile=provisioning\&.txt
+.SS "OFFLINEJOIN REQUESTODJ loadfile=FILENAME"
+.PP
+Requests an offline domain join by providing file\-based provisioning data\&. This command supports the following additional parameters:
+.RS
+.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+\fILOADFILE\fR
+is a required parameter to load the provisioning from a file\&.
+.RE
+.sp
+.RE
+.PP
+Example: net offlinejoin requestodj \-U administrator%secret loadfile=provisioning\&.txt
+.SS "HELP [COMMAND]"
+.PP
+Gives usage information for the specified command\&.
+.SH "VERSION"
+.PP
+This man page is complete for version 3 of the Samba suite\&.
+.SH "AUTHOR"
+.PP
+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\&.
+.PP
+The net manpage was written by Jelmer Vernooij\&.