📄 net.8
字号:
.\"Generated by db2man.xsl. Don't modify this, modify the source..de Sh \" Subsection.br.if t .Sp.ne 5.PP\fB\\$1\fR.PP...de Sp \" Vertical space (when we can't use .PP).if t .sp .5v.if n .sp...de Ip \" List item.br.ie \\n(.$>=3 .ne \\$3.el .ne 3.IP "\\$1" \\$2...TH "NET" 8 "" "" "".SH NAMEnet \- Tool for administration of Samba and remote CIFS servers..SH "SYNOPSIS".ad l.hy 0.HP 4\fBnet\fR {<ads|rap|rpc>} [\-h] [\-w\ workgroup] [\-W\ myworkgroup] [\-U\ user] [\-I\ ip\-address] [\-p\ port] [\-n\ myname] [\-s\ conffile] [\-S\ server] [\-l] [\-P] [\-d\ debuglevel] [\-V].ad.hy.SH "DESCRIPTION".PPThis tool is part of the \fBsamba\fR(7) suite\&..PPThe 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".TP\-h|\-\-helpPrint a summary of command line options\&..TP\-w target\-workgroupSets target workgroup or domain\&. You have to specify either this option or the IP address or the name of a server\&..TP\-W workgroupSets client workgroup or domain.TP\-U userUser name to use.TP\-I ip\-addressIP address of target server to use\&. You have to specify either this option or a target workgroup or a target server\&..TP\-p portPort on the target server to connect to (usually 139 or 445)\&. Defaults to trying 445 first, then 139\&..TP\-n <primary NetBIOS name>This option allows you to override the NetBIOS name that Samba uses for itself\&. This is identical to setting the parameter in the \fIsmb\&.conf\fR file\&. However, a command line setting will take precedence over settings in \fIsmb\&.conf\fR\&..TP\-s <configuration file>The file specified contains the configuration details required by the server\&. The information in this file includes server\-specific information such as what printcap file to use, as well as descriptions of all the services that the server is to provide\&. See \fIsmb\&.conf\fR for more information\&. The default configuration file name is determined at compile time\&..TP\-S serverName of target server\&. You should specify either this option or a target workgroup or a target IP address\&..TP\-lWhen listing data, give more information on each item\&..TP\-PMake queries to the external server using the machine account of the local server\&..TP\-d|\-\-debuglevel=level\fIlevel\fR is an integer from 0 to 10\&. The default value if this parameter is not specified is zero\&.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\&.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\&.Note that specifying this parameter here will override the parameter in the \fIsmb\&.conf\fR file\&..SH "COMMANDS".SS "CHANGESECRETPW".PPThis 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".PPThe \fBNET TIME\fR 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".PPWithout any options, the \fBNET TIME\fR command displays the time on the remote server\&..SS "TIME SYSTEM".PPDisplays the time on the remote server in a format ready for \fB/bin/date\fR.SS "TIME SET".PPTries to set the date and time of the local server to that on the remote server using \fB/bin/date\fR\&..SS "TIME ZONE".PPDisplays the timezone in hours from GMT on the remote computer\&..SS "[RPC|ADS] JOIN [TYPE] [-U username[%password]] [options]".PPJoin 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\&..SS "[RPC] OLDJOIN [options]".PPJoin 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".PPList all users.SS "[RPC|ADS] USER DELETE target".PPDelete specified user.SS "[RPC|ADS] USER INFO target".PPList the domain groups of a the specified user\&..SS "[RPC|ADS] USER RENAME oldname newname".PPRename specified user\&..SS "[RPC|ADS] USER ADD name [password] [-F user flags] [-C comment]".PPAdd specified user\&..SS "[RPC|ADS] GROUP".SS "[RPC|ADS] GROUP [misc options] [targets]".PPList user groups\&..SS "[RPC|ADS] GROUP DELETE name [misc. options]".PPDelete specified group\&..SS "[RPC|ADS] GROUP ADD name [-C comment]".PPCreate specified group\&..SS "[RAP|RPC] SHARE".SS "[RAP|RPC] SHARE [misc. options] [targets]".PPEnumerates all exported resources (network shares) on target server\&..SS "[RAP|RPC] SHARE ADD name=serverpath [-C comment] [-M maxusers] [targets]".PPAdds 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 sharenam".PPDelete specified share\&..SS "[RPC|RAP] FILE".SS "[RPC|RAP] FILE".PPList all open files on remote server\&..SS "[RPC|RAP] FILE CLOSE fileid".PPClose file with specified \fIfileid\fR on remote server\&..SS "[RPC|RAP] FILE INFO fileid".PPPrint information on specified \fIfileid\fR\&. Currently listed are: file\-id, username, locks, path, permissions\&..SS "[RAP|RPC] FILE USER".RS.Sh "Note".PPCurrently NOT implemented\&..RE.SS "SESSION".SS "RAP SESSION".PPWithout any other options, SESSION enumerates all active SMB/CIFS sessions on the target server\&..SS "RAP SESSION DELETE|CLOSE CLIENT_NAME".PPClose the specified sessions\&..SS "RAP SESSION INFO CLIENT_NAME".PPGive a list with all the open files in specified session\&..SS "RAP SERVER DOMAIN".PPList all servers in specified domain or workgroup\&. Defaults to local domain\&..SS "RAP DOMAIN".PPLists all domains and workgroups visible on the current network\&..SS "RAP PRINTQ".SS "RAP PRINTQ LIST QUEUE_NAME".PPLists 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".PPDelete job with specified id\&..SS "RAP VALIDATE user [password]".PPValidate whether the specified user can log in to the remote server\&. If the password is not specified on the commandline, it will be prompted\&..RS.Sh "Note".PPCurrently NOT implemented\&..RE.SS "RAP GROUPMEMBER".SS "RAP GROUPMEMBER LIST GROUP".PPList all members of the specified group\&..SS "RAP GROUPMEMBER DELETE GROUP USER".PPDelete member from group\&..SS "RAP GROUPMEMBER ADD GROUP USER".PPAdd member to group\&..SS "RAP ADMIN command".PPExecute the specified \fIcommand\fR on the remote server\&. Only works with OS/2 servers\&..RS.Sh "Note".PPCurrently NOT implemented\&..RE.SS "RAP SERVICE".SS "RAP SERVICE START NAME [arguments...]".PPStart the specified service on the remote server\&. Not implemented yet\&..RS.Sh "Note".PPCurrently NOT implemented\&..RE.SS "RAP SERVICE STOP"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -