| [286] | 1 | .\" Title: net
|
|---|
| 2 | .\" Author: [see the "AUTHOR" section]
|
|---|
| 3 | .\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
|
|---|
| [336] | 4 | .\" Date: 09/30/2009
|
|---|
| [286] | 5 | .\" Manual: System Administration tools
|
|---|
| 6 | .\" Source: Samba 3.0
|
|---|
| 7 | .\" Language: English
|
|---|
| 8 | .\"
|
|---|
| [336] | 9 | .TH "NET" "8" "09/30/2009" "Samba 3\&.0" "System Administration tools"
|
|---|
| [286] | 10 | .\" -----------------------------------------------------------------
|
|---|
| 11 | .\" * (re)Define some macros
|
|---|
| 12 | .\" -----------------------------------------------------------------
|
|---|
| 13 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|---|
| 14 | .\" toupper - uppercase a string (locale-aware)
|
|---|
| 15 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|---|
| 16 | .de toupper
|
|---|
| 17 | .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
|
|---|
| 18 | \\$*
|
|---|
| 19 | .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
|
|---|
| 20 | ..
|
|---|
| 21 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|---|
| 22 | .\" SH-xref - format a cross-reference to an SH section
|
|---|
| 23 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|---|
| 24 | .de SH-xref
|
|---|
| 25 | .ie n \{\
|
|---|
| 26 | .\}
|
|---|
| 27 | .toupper \\$*
|
|---|
| 28 | .el \{\
|
|---|
| 29 | \\$*
|
|---|
| 30 | .\}
|
|---|
| 31 | ..
|
|---|
| 32 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|---|
| 33 | .\" SH - level-one heading that works better for non-TTY output
|
|---|
| 34 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|---|
| 35 | .de1 SH
|
|---|
| 36 | .\" put an extra blank line of space above the head in non-TTY output
|
|---|
| 37 | .if t \{\
|
|---|
| 38 | .sp 1
|
|---|
| 39 | .\}
|
|---|
| 40 | .sp \\n[PD]u
|
|---|
| 41 | .nr an-level 1
|
|---|
| 42 | .set-an-margin
|
|---|
| 43 | .nr an-prevailing-indent \\n[IN]
|
|---|
| 44 | .fi
|
|---|
| 45 | .in \\n[an-margin]u
|
|---|
| 46 | .ti 0
|
|---|
| 47 | .HTML-TAG ".NH \\n[an-level]"
|
|---|
| 48 | .it 1 an-trap
|
|---|
| 49 | .nr an-no-space-flag 1
|
|---|
| 50 | .nr an-break-flag 1
|
|---|
| 51 | \." make the size of the head bigger
|
|---|
| 52 | .ps +3
|
|---|
| 53 | .ft B
|
|---|
| 54 | .ne (2v + 1u)
|
|---|
| 55 | .ie n \{\
|
|---|
| 56 | .\" if n (TTY output), use uppercase
|
|---|
| 57 | .toupper \\$*
|
|---|
| 58 | .\}
|
|---|
| 59 | .el \{\
|
|---|
| 60 | .nr an-break-flag 0
|
|---|
| 61 | .\" if not n (not TTY), use normal case (not uppercase)
|
|---|
| 62 | \\$1
|
|---|
| 63 | .in \\n[an-margin]u
|
|---|
| 64 | .ti 0
|
|---|
| 65 | .\" if not n (not TTY), put a border/line under subheading
|
|---|
| 66 | .sp -.6
|
|---|
| 67 | \l'\n(.lu'
|
|---|
| 68 | .\}
|
|---|
| 69 | ..
|
|---|
| 70 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|---|
| 71 | .\" SS - level-two heading that works better for non-TTY output
|
|---|
| 72 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|---|
| 73 | .de1 SS
|
|---|
| 74 | .sp \\n[PD]u
|
|---|
| 75 | .nr an-level 1
|
|---|
| 76 | .set-an-margin
|
|---|
| 77 | .nr an-prevailing-indent \\n[IN]
|
|---|
| 78 | .fi
|
|---|
| 79 | .in \\n[IN]u
|
|---|
| 80 | .ti \\n[SN]u
|
|---|
| 81 | .it 1 an-trap
|
|---|
| 82 | .nr an-no-space-flag 1
|
|---|
| 83 | .nr an-break-flag 1
|
|---|
| 84 | .ps \\n[PS-SS]u
|
|---|
| 85 | \." make the size of the head bigger
|
|---|
| 86 | .ps +2
|
|---|
| 87 | .ft B
|
|---|
| 88 | .ne (2v + 1u)
|
|---|
| 89 | .if \\n[.$] \&\\$*
|
|---|
| 90 | ..
|
|---|
| 91 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|---|
| 92 | .\" BB/BE - put background/screen (filled box) around block of text
|
|---|
| 93 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|---|
| 94 | .de BB
|
|---|
| 95 | .if t \{\
|
|---|
| 96 | .sp -.5
|
|---|
| 97 | .br
|
|---|
| 98 | .in +2n
|
|---|
| 99 | .ll -2n
|
|---|
| 100 | .gcolor red
|
|---|
| 101 | .di BX
|
|---|
| 102 | .\}
|
|---|
| 103 | ..
|
|---|
| 104 | .de EB
|
|---|
| 105 | .if t \{\
|
|---|
| 106 | .if "\\$2"adjust-for-leading-newline" \{\
|
|---|
| 107 | .sp -1
|
|---|
| 108 | .\}
|
|---|
| 109 | .br
|
|---|
| 110 | .di
|
|---|
| 111 | .in
|
|---|
| 112 | .ll
|
|---|
| 113 | .gcolor
|
|---|
| 114 | .nr BW \\n(.lu-\\n(.i
|
|---|
| 115 | .nr BH \\n(dn+.5v
|
|---|
| 116 | .ne \\n(BHu+.5v
|
|---|
| 117 | .ie "\\$2"adjust-for-leading-newline" \{\
|
|---|
| 118 | \M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
|
|---|
| 119 | .\}
|
|---|
| 120 | .el \{\
|
|---|
| 121 | \M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
|
|---|
| 122 | .\}
|
|---|
| 123 | .in 0
|
|---|
| 124 | .sp -.5v
|
|---|
| 125 | .nf
|
|---|
| 126 | .BX
|
|---|
| 127 | .in
|
|---|
| 128 | .sp .5v
|
|---|
| 129 | .fi
|
|---|
| 130 | .\}
|
|---|
| 131 | ..
|
|---|
| 132 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|---|
| 133 | .\" BM/EM - put colored marker in margin next to block of text
|
|---|
| 134 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|---|
| 135 | .de BM
|
|---|
| 136 | .if t \{\
|
|---|
| 137 | .br
|
|---|
| 138 | .ll -2n
|
|---|
| 139 | .gcolor red
|
|---|
| 140 | .di BX
|
|---|
| 141 | .\}
|
|---|
| 142 | ..
|
|---|
| 143 | .de EM
|
|---|
| 144 | .if t \{\
|
|---|
| 145 | .br
|
|---|
| 146 | .di
|
|---|
| 147 | .ll
|
|---|
| 148 | .gcolor
|
|---|
| 149 | .nr BH \\n(dn
|
|---|
| 150 | .ne \\n(BHu
|
|---|
| 151 | \M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[]
|
|---|
| 152 | .in 0
|
|---|
| 153 | .nf
|
|---|
| 154 | .BX
|
|---|
| 155 | .in
|
|---|
| 156 | .fi
|
|---|
| 157 | .\}
|
|---|
| 158 | ..
|
|---|
| 159 | .\" -----------------------------------------------------------------
|
|---|
| 160 | .\" * set default formatting
|
|---|
| 161 | .\" -----------------------------------------------------------------
|
|---|
| 162 | .\" disable hyphenation
|
|---|
| 163 | .nh
|
|---|
| 164 | .\" disable justification (adjust text to left margin only)
|
|---|
| 165 | .ad l
|
|---|
| 166 | .\" -----------------------------------------------------------------
|
|---|
| 167 | .\" * MAIN CONTENT STARTS HERE *
|
|---|
| 168 | .\" -----------------------------------------------------------------
|
|---|
| 169 | .SH "Name"
|
|---|
| 170 | net \- Tool for administration of Samba and remote CIFS servers\&.
|
|---|
| 171 | .SH "Synopsis"
|
|---|
| 172 | .fam C
|
|---|
| 173 | .HP \w'\ 'u
|
|---|
| 174 | \FCnet\F[] {<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]
|
|---|
| 175 | .fam
|
|---|
| 176 | .SH "DESCRIPTION"
|
|---|
| 177 | .PP
|
|---|
| 178 | This tool is part of the
|
|---|
| 179 | \fBsamba\fR(7)
|
|---|
| 180 | suite\&.
|
|---|
| 181 | .PP
|
|---|
| 182 | 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\&.
|
|---|
| 183 | .SH "OPTIONS"
|
|---|
| 184 | .PP
|
|---|
| 185 | \-h|\-\-help
|
|---|
| 186 | .RS 4
|
|---|
| 187 | Print a summary of command line options\&.
|
|---|
| 188 | .RE
|
|---|
| 189 | .PP
|
|---|
| 190 | \-w target\-workgroup
|
|---|
| 191 | .RS 4
|
|---|
| 192 | Sets target workgroup or domain\&. You have to specify either this option or the IP address or the name of a server\&.
|
|---|
| 193 | .RE
|
|---|
| 194 | .PP
|
|---|
| 195 | \-W workgroup
|
|---|
| 196 | .RS 4
|
|---|
| 197 | Sets client workgroup or domain
|
|---|
| 198 | .RE
|
|---|
| 199 | .PP
|
|---|
| 200 | \-U user
|
|---|
| 201 | .RS 4
|
|---|
| 202 | User name to use
|
|---|
| 203 | .RE
|
|---|
| 204 | .PP
|
|---|
| 205 | \-I ip\-address
|
|---|
| 206 | .RS 4
|
|---|
| 207 | IP address of target server to use\&. You have to specify either this option or a target workgroup or a target server\&.
|
|---|
| 208 | .RE
|
|---|
| 209 | .PP
|
|---|
| 210 | \-p port
|
|---|
| 211 | .RS 4
|
|---|
| 212 | Port on the target server to connect to (usually 139 or 445)\&. Defaults to trying 445 first, then 139\&.
|
|---|
| 213 | .RE
|
|---|
| 214 | .PP
|
|---|
| 215 | \-n <primary NetBIOS name>
|
|---|
| 216 | .RS 4
|
|---|
| 217 | This option allows you to override the NetBIOS name that Samba uses for itself\&. This is identical to setting the
|
|---|
| 218 | \m[blue]\fBnetbios name\fR\m[]
|
|---|
| 219 | parameter in the
|
|---|
| 220 | \FCsmb\&.conf\F[]
|
|---|
| 221 | file\&. However, a command line setting will take precedence over settings in
|
|---|
| 222 | \FCsmb\&.conf\F[]\&.
|
|---|
| 223 | .RE
|
|---|
| 224 | .PP
|
|---|
| 225 | \-s <configuration file>
|
|---|
| 226 | .RS 4
|
|---|
| 227 | 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
|
|---|
| 228 | \FCsmb\&.conf\F[]
|
|---|
| 229 | for more information\&. The default configuration file name is determined at compile time\&.
|
|---|
| 230 | .RE
|
|---|
| 231 | .PP
|
|---|
| 232 | \-S server
|
|---|
| 233 | .RS 4
|
|---|
| 234 | Name of target server\&. You should specify either this option or a target workgroup or a target IP address\&.
|
|---|
| 235 | .RE
|
|---|
| 236 | .PP
|
|---|
| 237 | \-l
|
|---|
| 238 | .RS 4
|
|---|
| 239 | When listing data, give more information on each item\&.
|
|---|
| 240 | .RE
|
|---|
| 241 | .PP
|
|---|
| 242 | \-P
|
|---|
| 243 | .RS 4
|
|---|
| 244 | Make queries to the external server using the machine account of the local server\&.
|
|---|
| 245 | .RE
|
|---|
| 246 | .PP
|
|---|
| 247 | \-d|\-\-debuglevel=level
|
|---|
| 248 | .RS 4
|
|---|
| 249 | \fIlevel\fR
|
|---|
| 250 | is an integer from 0 to 10\&. The default value if this parameter is not specified is 0\&.
|
|---|
| 251 | .sp
|
|---|
| 252 | 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\&.
|
|---|
| 253 | .sp
|
|---|
| 254 | 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\&.
|
|---|
| 255 | .sp
|
|---|
| 256 | Note that specifying this parameter here will override the
|
|---|
| 257 | \m[blue]\fBlog level\fR\m[]
|
|---|
| 258 | parameter in the
|
|---|
| 259 | \FCsmb\&.conf\F[]
|
|---|
| 260 | file\&.
|
|---|
| 261 | .RE
|
|---|
| 262 | .SH "COMMANDS"
|
|---|
| 263 | .SS "CHANGESECRETPW"
|
|---|
| 264 | .PP
|
|---|
| 265 | 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\&.
|
|---|
| 266 | .SS "TIME"
|
|---|
| 267 | .PP
|
|---|
| 268 | The
|
|---|
| 269 | \FCNET TIME\F[]
|
|---|
| 270 | 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\&.
|
|---|
| 271 | .SS "TIME"
|
|---|
| 272 | .PP
|
|---|
| 273 | Without any options, the
|
|---|
| 274 | \FCNET TIME\F[]
|
|---|
| 275 | command displays the time on the remote server\&.
|
|---|
| 276 | .SS "TIME SYSTEM"
|
|---|
| 277 | .PP
|
|---|
| 278 | Displays the time on the remote server in a format ready for
|
|---|
| 279 | \FC/bin/date\F[]\&.
|
|---|
| 280 | .SS "TIME SET"
|
|---|
| 281 | .PP
|
|---|
| 282 | Tries to set the date and time of the local server to that on the remote server using
|
|---|
| 283 | \FC/bin/date\F[]\&.
|
|---|
| 284 | .SS "TIME ZONE"
|
|---|
| 285 | .PP
|
|---|
| 286 | Displays the timezone in hours from GMT on the remote computer\&.
|
|---|
| 287 | .SS "[RPC|ADS] JOIN [TYPE] [\-U username[%password]] [createupn=UPN] [createcomputer=OU] [options]"
|
|---|
| 288 | .PP
|
|---|
| 289 | 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\&.
|
|---|
| 290 | .PP
|
|---|
| 291 | [TYPE] may be PDC, BDC or MEMBER to specify the type of server joining the domain\&.
|
|---|
| 292 | .PP
|
|---|
| 293 | [UPN] (ADS only) set the principalname attribute during the join\&. The default format is host/netbiosname@REALM\&.
|
|---|
| 294 | .PP
|
|---|
| 295 | [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 \'/\'\&. Please note that \'\e\' 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\&.
|
|---|
| 296 | .SS "[RPC] OLDJOIN [options]"
|
|---|
| 297 | .PP
|
|---|
| 298 | 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\&.
|
|---|
| 299 | .SS "[RPC|ADS] USER"
|
|---|
| 300 | .SS "[RPC|ADS] USER"
|
|---|
| 301 | .PP
|
|---|
| 302 | List all users
|
|---|
| 303 | .SS "[RPC|ADS] USER DELETE target"
|
|---|
| 304 | .PP
|
|---|
| 305 | Delete specified user
|
|---|
| 306 | .SS "[RPC|ADS] USER INFO target"
|
|---|
| 307 | .PP
|
|---|
| 308 | List the domain groups of the specified user\&.
|
|---|
| 309 | .SS "[RPC|ADS] USER RENAME oldname newname"
|
|---|
| 310 | .PP
|
|---|
| 311 | Rename specified user\&.
|
|---|
| 312 | .SS "[RPC|ADS] USER ADD name [password] [-F user flags] [-C comment]"
|
|---|
| 313 | .PP
|
|---|
| |
|---|