Changeset 134 for branches/samba-3.0/docs/manpages/net.8
- Timestamp:
- May 23, 2008, 6:56:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/docs/manpages/net.8
r44 r134 1 .\"Generated by db2man.xsl. Don't modify this, modify the source. 2 .de Sh \" Subsection 3 .br 4 .if t .Sp 5 .ne 5 6 .PP 7 \fB\\$1\fR 8 .PP 9 .. 10 .de Sp \" Vertical space (when we can't use .PP) 11 .if t .sp .5v 12 .if n .sp 13 .. 14 .de Ip \" List item 15 .br 16 .ie \\n(.$>=3 .ne \\$3 17 .el .ne 3 18 .IP "\\$1" \\$2 19 .. 20 .TH "NET" 8 "" "" "" 1 .\" Title: net 2 .\" Author: 3 .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/> 4 .\" Date: 05/21/2008 5 .\" Manual: System Administration tools 6 .\" Source: Samba 3.0 7 .\" 8 .TH "NET" "8" "05/21/2008" "Samba 3\.0" "System Administration tools" 9 .\" disable hyphenation 10 .nh 11 .\" disable justification (adjust text to left margin only) 12 .ad l 21 13 .SH "NAME" 22 14 net - Tool for administration of Samba and remote CIFS servers. 23 15 .SH "SYNOPSIS" 24 16 .HP 1 25 net {<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]17 net {<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] 26 18 .SH "DESCRIPTION" 27 19 .PP 28 20 This tool is part of the 29 21 \fBsamba\fR(7) 30 suite .31 .PP 32 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.22 suite\. 23 .PP 24 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\. 33 25 .SH "OPTIONS" 34 26 .PP 35 -h|--help36 .RS 3n37 Print a summary of command line options .38 .RE 39 .PP 40 -w target-workgroup41 .RS 3n42 Sets target workgroup or domain . You have to specify either this option or the IP address or the name of a server.43 .RE 44 .PP 45 -W workgroup46 .RS 3n27 \-h|\-\-help 28 .RS 4 29 Print a summary of command line options\. 30 .RE 31 .PP 32 \-w target\-workgroup 33 .RS 4 34 Sets target workgroup or domain\. You have to specify either this option or the IP address or the name of a server\. 35 .RE 36 .PP 37 \-W workgroup 38 .RS 4 47 39 Sets client workgroup or domain 48 40 .RE 49 41 .PP 50 -U user51 .RS 3n42 \-U user 43 .RS 4 52 44 User name to use 53 45 .RE 54 46 .PP 55 -I ip-address56 .RS 3n57 IP address of target server to use . You have to specify either this option or a target workgroup or a target server.58 .RE 59 .PP 60 -p port61 .RS 3n62 Port on the target server to connect to (usually 139 or 445) . Defaults to trying 445 first, then 139.63 .RE 64 .PP 65 -n <primary NetBIOS name>66 .RS 3n67 This option allows you to override the NetBIOS name that Samba uses for itself . This is identical to setting the68 47 \-I ip\-address 48 .RS 4 49 IP address of target server to use\. You have to specify either this option or a target workgroup or a target server\. 50 .RE 51 .PP 52 \-p port 53 .RS 4 54 Port on the target server to connect to (usually 139 or 445)\. Defaults to trying 445 first, then 139\. 55 .RE 56 .PP 57 \-n <primary NetBIOS name> 58 .RS 4 59 This option allows you to override the NetBIOS name that Samba uses for itself\. This is identical to setting the 60 \fInetbios name\fR 69 61 parameter in the 70 \fIsmb .conf\fR71 file . However, a command line setting will take precedence over settings in72 \fIsmb .conf\fR.73 .RE 74 .PP 75 -s <configuration file>76 .RS 3n77 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. See78 \fIsmb .conf\fR79 for more information . The default configuration file name is determined at compile time.80 .RE 81 .PP 82 -S server83 .RS 3n84 Name of target server . You should specify either this option or a target workgroup or a target IP address.85 .RE 86 .PP 87 -l88 .RS 3n89 When listing data, give more information on each item .90 .RE 91 .PP 92 -P93 .RS 3n94 Make queries to the external server using the machine account of the local server .95 .RE 96 .PP 97 -d|--debuglevel=level98 .RS 3n62 \fIsmb\.conf\fR 63 file\. However, a command line setting will take precedence over settings in 64 \fIsmb\.conf\fR\. 65 .RE 66 .PP 67 \-s <configuration file> 68 .RS 4 69 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 70 \fIsmb\.conf\fR 71 for more information\. The default configuration file name is determined at compile time\. 72 .RE 73 .PP 74 \-S server 75 .RS 4 76 Name of target server\. You should specify either this option or a target workgroup or a target IP address\. 77 .RE 78 .PP 79 \-l 80 .RS 4 81 When listing data, give more information on each item\. 82 .RE 83 .PP 84 \-P 85 .RS 4 86 Make queries to the external server using the machine account of the local server\. 87 .RE 88 .PP 89 \-d|\-\-debuglevel=level 90 .RS 4 99 91 \fIlevel\fR 100 is an integer from 0 to 10 . The default value if this parameter is not specified is zero.101 .sp 102 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.103 .sp 104 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.92 is an integer from 0 to 10\. The default value if this parameter is not specified is 0\. 93 .sp 94 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\. 95 .sp 96 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\. 105 97 .sp 106 98 Note that specifying this parameter here will override the 107 99 \fIlog level\fR 108 100 parameter in the 109 \fIsmb .conf\fR110 file .101 \fIsmb\.conf\fR 102 file\. 111 103 .RE 112 104 .SH "COMMANDS" 113 105 .SS "CHANGESECRETPW" 114 106 .PP 115 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.107 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\. 116 108 .SS "TIME" 117 109 .PP 118 110 The 119 111 NET TIME 120 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. 121 112 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\. 122 113 .SS "TIME" 123 114 .PP 124 115 Without any options, the 125 116 NET TIME 126 command displays the time on the remote server. 127 117 command displays the time on the remote server\. 128 118 .SS "TIME SYSTEM" 129 119 .PP 130 120 Displays the time on the remote server in a format ready for 131 /bin/date 132 121 /bin/date\. 133 122 .SS "TIME SET" 134 123 .PP 135 124 Tries to set the date and time of the local server to that on the remote server using 136 /bin/date. 137 125 /bin/date\. 138 126 .SS "TIME ZONE" 139 127 .PP 140 Displays the timezone in hours from GMT on the remote computer .141 .SS "[RPC|ADS] JOIN [TYPE] [ -U username[%password]] [createupn=UPN] [createcomputer=OU] [options]"142 .PP 143 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.144 .PP 145 [TYPE] may be PDC, BDC or MEMBER to specify the type of server joining the domain .146 .PP 147 [UPN] (ADS only) set the principalname attribute during the join . The default format is host/netbiosname@REALM.148 .PP 149 [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 '\' 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.128 Displays the timezone in hours from GMT on the remote computer\. 129 .SS "[RPC|ADS] JOIN [TYPE] [\-U username[%password]] [createupn=UPN] [createcomputer=OU] [options]" 130 .PP 131 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\. 132 .PP 133 [TYPE] may be PDC, BDC or MEMBER to specify the type of server joining the domain\. 134 .PP 135 [UPN] (ADS only) set the principalname attribute during the join\. The default format is host/netbiosname@REALM\. 136 .PP 137 [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\. 150 138 .SS "[RPC] OLDJOIN [options]" 151 139 .PP 152 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.140 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\. 153 141 .SS "[RPC|ADS] USER" 154 155 142 .SS "[RPC|ADS] USER" 156 143 .PP 157 144 List all users 158 159 145 .SS "[RPC|ADS] USER DELETE target" 160 146 .PP 161 147 Delete specified user 162 163 148 .SS "[RPC|ADS] USER INFO target" 164 149 .PP 165 List the domain groups of a the specified user. 166 150 List the domain groups of the specified user\. 167 151 .SS "[RPC|ADS] USER RENAME oldname newname" 168 152 .PP 169 Rename specified user. 170 153 Rename specified user\. 171 154 .SS "[RPC|ADS] USER ADD name [password] [-F user flags] [-C comment]" 172 155 .PP 173 Add specified user .156 Add specified user\. 174 157 .SS "[RPC|ADS] GROUP" 175 176 158 .SS "[RPC|ADS] GROUP [misc options] [targets]" 177 159 .PP 178 List user groups. 179 160 List user groups\. 180 161 .SS "[RPC|ADS] GROUP DELETE name [misc. options]" 181 162 .PP 182 Delete specified group. 183 163 Delete specified group\. 184 164 .SS "[RPC|ADS] GROUP ADD name [-C comment]" 185 165 .PP 186 Create specified group .166 Create specified group\. 187 167 .SS "[RAP|RPC] SHARE" 188 189 168 .SS "[RAP|RPC] SHARE [misc. options] [targets]" 190 169 .PP 191 Enumerates all exported resources (network shares) on target server. 192 170 Enumerates all exported resources (network shares) on target server\. 193 171 .SS "[RAP|RPC] SHARE ADD name=serverpath [-C comment] [-M maxusers] [targets]" 194 172 .PP 195 Adds a share from a server (makes the export active). Maxusers specifies the number of users that can be connected to the share simultaneously. 196 197 .SS "SHARE DELETE sharenam" 198 .PP 199 Delete specified share. 173 Adds a share from a server (makes the export active)\. Maxusers specifies the number of users that can be connected to the share simultaneously\. 174 .SS "SHARE DELETE sharename" 175 .PP 176 Delete specified share\. 200 177 .SS "[RPC|RAP] FILE" 201 202 178 .SS "[RPC|RAP] FILE" 203 179 .PP 204 List all open files on remote server. 205 180 List all open files on remote server\. 206 181 .SS "[RPC|RAP] FILE CLOSE fileid" 207 182 .PP 208 183 Close file with specified 209 184 \fIfileid\fR 210 on remote server. 211 185 on remote server\. 212 186 .SS "[RPC|RAP] FILE INFO fileid" 213 187 .PP 214 188 Print information on specified 215 \fIfileid\fR. Currently listed are: file-id, username, locks, path, permissions. 216 217 .SS "[RAP|RPC] FILE USER" 189 \fIfileid\fR\. Currently listed are: file\-id, username, locks, path, permissions\. 190 .SS "[RAP|RPC] FILE USER user" 191 .PP 192 List files opened by specified 193 \fIuser\fR\. Please note that 194 net rap file user 195 does not work against Samba servers\. 196 .SS "SESSION" 197 .SS "RAP SESSION" 198 .PP 199 Without any other options, SESSION enumerates all active SMB/CIFS sessions on the target server\. 200 .SS "RAP SESSION DELETE|CLOSE CLIENT_NAME" 201 .PP 202 Close the specified sessions\. 203 .SS "RAP SESSION INFO CLIENT_NAME" 204 .PP 205 Give a list with all the open files in specified session\. 206 .SS "RAP SERVER \fIDOMAIN\fR" 207 .PP 208 List all servers in specified domain or workgroup\. Defaults to local domain\. 209 .SS "RAP DOMAIN" 210 .PP 211 Lists all domains and workgroups visible on the current network\. 212 .SS "RAP PRINTQ" 213 .SS "RAP PRINTQ LIST QUEUE_NAME" 214 .PP 215 Lists the specified print queue and print jobs on the server\. If the 216 \fIQUEUE_NAME\fR 217 is omitted, all queues are listed\. 218 .SS "RAP PRINTQ DELETE JOBID" 219 .PP 220 Delete job with specified id\. 221 .SS "RAP VALIDATE \fIuser\fR [\fIpassword\fR]" 222 .PP 223 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\. 218 224 .sp 219 225 .it 1 an-trap … … 221 227 .nr an-break-flag 1 222 228 .br 223 \fBNote\fR 224 .PP 225 Currently NOT implemented. 226 .SS "SESSION" 227 228 .SS "RAP SESSION" 229 .PP 230 Without any other options, SESSION enumerates all active SMB/CIFS sessions on the target server. 231 232 .SS "RAP SESSION DELETE|CLOSE CLIENT_NAME" 233 .PP 234 Close the specified sessions. 235 236 .SS "RAP SESSION INFO CLIENT_NAME" 237 .PP 238 Give a list with all the open files in specified session. 239 .SS "RAP SERVER \fIDOMAIN\fR" 240 .PP 241 List all servers in specified domain or workgroup. Defaults to local domain. 242 .SS "RAP DOMAIN" 243 .PP 244 Lists all domains and workgroups visible on the current network. 245 .SS "RAP PRINTQ" 246 247 .SS "RAP PRINTQ LIST QUEUE_NAME" 248 .PP 249 Lists the specified print queue and print jobs on the server. If the 250 \fIQUEUE_NAME\fR 251 is omitted, all queues are listed. 252 253 .SS "RAP PRINTQ DELETE JOBID" 254 .PP 255 Delete job with specified id. 256 .SS "RAP VALIDATE \fIuser\fR [\fIpassword\fR]" 257 .PP 258 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. 229 Note 230 .PP 231 Currently NOT implemented\. 232 .SS "RAP GROUPMEMBER" 233 .SS "RAP GROUPMEMBER LIST GROUP" 234 .PP 235 List all members of the specified group\. 236 .SS "RAP GROUPMEMBER DELETE GROUP USER" 237 .PP 238 Delete member from group\. 239 .SS "RAP GROUPMEMBER ADD GROUP USER" 240 .PP 241 Add member to group\. 242 .SS "RAP ADMIN \fIcommand\fR" 243 .PP 244 Execute the specified 245 \fIcommand\fR 246 on the remote server\. Only works with OS/2 servers\. 259 247 .sp 260 248 .it 1 an-trap … … 262 250 .nr an-break-flag 1 263 251 .br 264 \fBNote\fR 265 .PP 266 Currently NOT implemented. 267 .SS "RAP GROUPMEMBER" 268 269 .SS "RAP GROUPMEMBER LIST GROUP" 270 .PP 271 List all members of the specified group. 272 273 .SS "RAP GROUPMEMBER DELETE GROUP USER" 274 .PP 275 Delete member from group. 276 277 .SS "RAP GROUPMEMBER ADD GROUP USER" 278 .PP 279 Add member to group. 280 .SS "RAP ADMIN \fIcommand\fR" 281 .PP 282 Execute the specified 283 \fIcommand\fR 284 on the remote server. Only works with OS/2 servers. 252 Note 253 .PP 254 Currently NOT implemented\. 255 .SS "RAP SERVICE" 256 .SS "RAP SERVICE START NAME [arguments...]" 257 .PP 258 Start the specified service on the remote server\. Not implemented yet\. 285 259 .sp 286 260 .it 1 an-trap … … 288 262 .nr an-break-flag 1 289 263 .br 290 \fBNote\fR 291 .PP 292 Currently NOT implemented. 293 .SS "RAP SERVICE" 264 Note 265 .PP 266 Currently NOT implemented\. 294 267 295 .SS "RAP SERVICE ST ART NAME [arguments...]"296 .PP 297 St art the specified service on the remote server. Not implemented yet.268 .SS "RAP SERVICE STOP" 269 .PP 270 Stop the specified service on the remote server\. 298 271 .sp 299 272 .it 1 an-trap … … 301 274 .nr an-break-flag 1 302 275 .br 303 \fBNote\fR 304 .PP 305 Currently NOT implemented. 306 307 .SS "RAP SERVICE STOP" 308 .PP 309 Stop the specified service on the remote server. 310 .sp 311 .it 1 an-trap 312 .nr an-no-space-flag 1 313 .nr an-break-flag 1 314 .br 315 \fBNote\fR 316 .PP 317 Currently NOT implemented. 276 Note 277 .PP 278 Currently NOT implemented\. 318 279 .SS "RAP PASSWORD \fIUSER\fR \fIOLDPASS\fR \fINEWPASS\fR" 319 280 .PP … … 323 284 \fIOLDPASS\fR 324 285 to 325 \fINEWPASS\fR .286 \fINEWPASS\fR\. 326 287 .SS "LOOKUP" 327 328 288 .SS "LOOKUP HOST HOSTNAME [TYPE]" 329 289 .PP 330 Lookup the IP address of the given host with the specified type (netbios suffix). The type defaults to 0x20 (workstation). 331 332 .SS "LOOKUP LDAP [DOMAIN" 290 Lookup the IP address of the given host with the specified type (netbios suffix)\. The type defaults to 0x20 (workstation)\. 291 .SS "LOOKUP LDAP [DOMAIN]" 333 292 .PP 334 293 Give IP address of LDAP server of specified 335 \fIDOMAIN\fR. Defaults to local domain. 336 294 \fIDOMAIN\fR\. Defaults to local domain\. 337 295 .SS "LOOKUP KDC [REALM]" 338 296 .PP 339 297 Give IP address of KDC for the specified 340 \fIREALM\fR. Defaults to local realm. 341 298 \fIREALM\fR\. Defaults to local realm\. 342 299 .SS "LOOKUP DC [DOMAIN]" 343 300 .PP 344 Give IP's of Domain Controllers for specified 345 \fI DOMAIN\fR. Defaults to local domain. 346 301 Give IP\'s of Domain Controllers for specified 302 \fI DOMAIN\fR\. Defaults to local domain\. 347 303 .SS "LOOKUP MASTER DOMAIN" 348 304 .PP 349 305 Give IP of master browser for specified 350 306 \fIDOMAIN\fR 351 or workgroup . Defaults to local domain.307 or workgroup\. Defaults to local domain\. 352 308 .SS "CACHE" 353 309 .PP 354 Samba uses a general caching interface called 'gencache'. It can be controlled using 'NET CACHE'.310 Samba uses a general caching interface called \'gencache\'\. It can be controlled using \'NET CACHE\'\. 355 311 .PP 356 312 All the timeout parameters support the suffixes: 357 .IP "" 3n 358 s - Seconds 359 .IP "" 3n 360 m - Minutes 361 .IP "" 3n 362 h - Hours 363 .IP "" 3n 364 d - Days 365 .IP "" 3n 366 w - Weeks 367 313 .IP "" 4 314 s \- Seconds 315 .IP "" 4 316 m \- Minutes 317 .IP "" 4 318 h \- Hours 319 .IP "" 4 320 d \- Days 321 .IP "" 4 322 w \- Weeks 368 323 369 324 .SS "CACHE ADD key data time-out" 370 325 .PP 371 Add specified key+data to the cache with the given timeout. 372 326 Add specified key+data to the cache with the given timeout\. 373 327 .SS "CACHE DEL key" 374 328 .PP 375 Delete key from the cache. 376 329 Delete key from the cache\. 377 330 .SS "CACHE SET key data time-out" 378 331 .PP 379 Update data of existing cache entry. 380 332 Update data of existing cache entry\. 381 333 .SS "CACHE SEARCH PATTERN" 382 334 .PP 383 Search for the specified pattern in the cache data. 384 335 Search for the specified pattern in the cache data\. 385 336 .SS "CACHE LIST" 386 337 .PP 387 List all current items in the cache. 388 338 List all current items in the cache\. 389 339 .SS "CACHE FLUSH" 390 340 .PP 391 Remove all the current items from the cache .341 Remove all the current items from the cache\. 392 342 .SS "GETLOCALSID [DOMAIN]" 393 343 .PP 394 Print the SID of the specified domain, or if the parameter is omitted, the SID of the domain the local server is in. 395 .SS "SETLOCALSID S-1-5-21-x-y-z" 396 .PP 397 Sets domain sid for the local server to the specified SID. 344 Prints the SID of the specified domain, or if the parameter is omitted, the SID of the local server\. 345 .SS "SETLOCALSID S\-1\-5\-21\-x\-y\-z" 346 .PP 347 Sets SID for the local server to the specified SID\. 348 .SS "GETDOMAINSID" 349 .PP 350 Prints the local machine SID and the SID of the current domain\. 351 .SS "SETDOMAINSID" 352 .PP 353 Sets the SID of the current domain\. 398 354 .SS "GROUPMAP" 399 355 .PP 400 Manage the mappings between Windows group SIDs and UNIX groups. Parameters take the for "parameter=value". Common options include: 401 .TP 3n 402 \(bu 403 unixgroup - Name of the UNIX group 404 .TP 3n 405 \(bu 406 ntgroup - Name of the Windows NT group (must be resolvable to a SID 407 .TP 3n 408 \(bu 409 rid - Unsigned 32-bit integer 410 .TP 3n 411 \(bu 412 sid - Full SID in the form of "S-1-..." 413 .TP 3n 414 \(bu 415 type - Type of the group; either 'domain', 'local', or 'builtin' 416 .TP 3n 417 \(bu 418 comment - Freeform text description of the group 419 356 Manage the mappings between Windows group SIDs and UNIX groups\. Common options include: 357 .sp 358 .RS 4 359 .ie n \{\ 360 \h'-04'\(bu\h'+03'\c 361 .\} 362 .el \{\ 363 .sp -1 364 .IP \(bu 2.3 365 .\} 366 unixgroup \- Name of the UNIX group 367 .RE 368 .sp 369 .RS 4 370 .ie n \{\ 371 \h'-04'\(bu\h'+03'\c 372 .\} 373 .el \{\ 374 .sp -1 375 .IP \(bu 2.3 376 .\} 377 ntgroup \- Name of the Windows NT group (must be resolvable to a SID 378 .RE 379 .sp 380 .RS 4 381 .ie n \{\ 382 \h'-04'\(bu\h'+03'\c 383 .\} 384 .el \{\ 385 .sp -1 386 .IP \(bu 2.3 387 .\} 388 rid \- Unsigned 32\-bit integer 389 .RE 390 .sp 391 .RS 4 392 .ie n \{\ 393 \h'-04'\(bu\h'+03'\c 394 .\} 395 .el \{\ 396 .sp -1 397 .IP \(bu 2.3 398 .\} 399 sid \- Full SID in the form of "S\-1\-\.\.\." 400 .RE 401 .sp 402 .RS 4 403 .ie n \{\ 404 \h'-04'\(bu\h'+03'\c 405 .\} 406 .el \{\ 407 .sp -1 408 .IP \(bu 2.3 409 .\} 410 type \- Type of the group; either \'domain\', \'local\', or \'builtin\' 411 .RE 412 .sp 413 .RS 4 414 .ie n \{\ 415 \h'-04'\(bu\h'+03'\c 416 .\} 417 .el \{\ 418 .sp -1 419 .IP \(bu 2.3 420 .\} 421 comment \- Freeform text description of the group 422 .sp 423 .RE 420 424 .SS "GROUPMAP ADD" 421 425 .PP 422 426 Add a new group mapping entry: 423 424 .sp 425 427 .sp 428 .RS 4 426 429 .nf 427 428 net groupmap add {rid=int|sid=string} unixgroup=string \ 429 [type={domain|local}] [ntgroup=string] [comment=string] 430 430 net groupmap add {rid=int|sid=string} unixgroup=string \e 431 [type={domain|local}] [ntgroup=string] [comment=string] 431 432 .fi 432 433 .RE 434 .sp 433 435 434 436 .SS "GROUPMAP DELETE" 435 437 .PP 436 Delete a group mapping entry . If more then one group name matches, the first entry found is deleted.438 Delete a group mapping entry\. If more than one group name matches, the first entry found is deleted\. 437 439 .PP 438 440 net groupmap delete {ntgroup=string|sid=SID} 441 .SS "GROUPMAP MODIFY" 442 .PP 443 Update en existing group entry\. 444 .PP 439 445 440 .SS "GROUPMAP MODIFY" 441 .PP 442 Update en existing group entry 443 .PP 444 445 446 .sp 447 446 .sp 447 .RS 4 448 448 .nf 449 450 net groupmap modify {ntgroup=string|sid=SID} [unixgroup=string] \ 449 net groupmap modify {ntgroup=string|sid=SID} [unixgroup=string] \e 451 450 [comment=string] [type={domain|local}] 452 453 451 .fi 454 452 .RE 453 .sp 455 454 456 455 .SS "GROUPMAP LIST" 457 456 .PP 458 List existing group mapping entries 457 List existing group mapping entries\. 459 458 .PP 460 459 net groupmap list [verbose] [ntgroup=string] [sid=SID] 461 460 .SS "MAXRID" 462 461 .PP 463 Prints out the highest RID currently in use on the local server (by the active 'passdb backend').462 Prints out the highest RID currently in use on the local server (by the active \'passdb backend\')\. 464 463 .SS "RPC INFO" 465 464 .PP 466 Print information about the domain of the remote server, such as domain name, domain sid and number of users and groups .465 Print information about the domain of the remote server, such as domain name, domain sid and number of users and groups\. 467 466 .SS "[RPC|ADS] TESTJOIN" 468 467 .PP 469 Check whether participation in a domain is still valid .468 Check whether participation in a domain is still valid\. 470 469 .SS "[RPC|ADS] CHANGETRUSTPW" 471 470 .PP 472 Force change of domain trust password .471 Force change of domain trust password\. 473 472 .SS "RPC TRUSTDOM" 474 475 473 .SS "RPC TRUSTDOM ADD DOMAIN" 476 474 .PP 477 475 Add a interdomain trust account for 478 \fIDOMAIN\fR 479 to the remote server. 480 481 .SS "RPC TRUSTDOM DEL DOMAIM" 476 \fIDOMAIN\fR\. This is in fact a Samba account named 477 \fIDOMAIN$\fR 478 with the account flag 479 \fB\'I\'\fR 480 (interdomain trust account)\. If the command is used against localhost it has the same effect as 481 smbpasswd \-a \-i DOMAIN\. Please note that both commands expect a appropriate UNIX account\. 482 .SS "RPC TRUSTDOM DEL DOMAIN" 482 483 .PP 483 484 Remove interdomain trust account for 484 \fIDOMAIN\fR 485 from the remote server. 486 .sp 487 .it 1 an-trap 488 .nr an-no-space-flag 1 489 .nr an-break-flag 1 490 .br 491 \fBNote\fR 492 .PP 493 Currently NOT implemented. 494 485 \fIDOMAIN\fR\. If it is used against localhost it has the same effect as 486 smbpasswd \-x DOMAIN$\. 495 487 .SS "RPC TRUSTDOM ESTABLISH DOMAIN" 496 488 .PP 497 Establish a trust relationship to a trusting domain. Interdomain account must already be created on the remote PDC. 498 489 Establish a trust relationship to a trusting domain\. Interdomain account must already be created on the remote PDC\. 499 490 .SS "RPC TRUSTDOM REVOKE DOMAIN" 500 491 .PP 501 492 Abandon relationship to trusted domain 502 503 493 .SS "RPC TRUSTDOM LIST" 504 494 .PP 505 List all current interdomain trust relationships. 506 495 List all current interdomain trust relationships\. 507 496 .SS "RPC RIGHTS" 508 497 .PP 509 This subcommand is used to view and manage Samba 's rights assignments (also referred to as privileges). There are three options currentavailable:498 This subcommand is used to view and manage Samba\'s rights assignments (also referred to as privileges)\. There are three options currently available: 510 499 \fIlist\fR, 511 500 \fIgrant\fR, and 512 \fIrevoke\fR . More details on Samba's privilege model and its use can be found in the Samba-HOWTO-Collection.501 \fIrevoke\fR\. More details on Samba\'s privilege model and its use can be found in the Samba\-HOWTO\-Collection\. 513 502 .SS "RPC ABORTSHUTDOWN" 514 503 .PP 515 Abort the shutdown of a remote server. 516 .SS "RPC SHUTDOWN [-t timeout] [-r] [-f] [-C message]" 517 .PP 518 Shut down the remote server. 519 .PP 520 -r 521 .RS 3n 522 Reboot after shutdown. 523 .RE 524 .PP 525 -f 526 .RS 3n 527 Force shutting down all applications. 528 .RE 529 .PP 530 -t timeout 531 .RS 3n 532 Timeout before system will be shut down. An interactive user of the system can use this time to cancel the shutdown. 533 .RE 534 '> 535 536 .PP 537 -C message 538 .RS 3n 539 Display the specified message on the screen to announce the shutdown. 504 Abort the shutdown of a remote server\. 505 .SS "RPC SHUTDOWN [\-t timeout] [\-r] [\-f] [\-C message]" 506 .PP 507 Shut down the remote server\. 508 .PP 509 \-r 510 .RS 4 511 Reboot after shutdown\. 512 .RE 513 .PP 514 \-f 515 .RS 4 516 Force shutting down all applications\. 517 .RE 518 .PP 519 \-t timeout 520 .RS 4 521 Timeout before system will be shut down\. An interactive user of the system can use this time to cancel the shutdown\. 522 .RE 523 \'> 524 .PP 525 \-C message 526 .RS 4 527 Display the specified message on the screen to announce the shutdown\. 540 528 .RE 541 529 .SS "RPC SAMDUMP" 542 530 .PP 543 Print out sam database of remote server . You need to run this against the PDC, from a Samba machine joined as a BDC.531 Print out sam database of remote server\. You need to run this against the PDC, from a Samba machine joined as a BDC\. 544 532 .SS "RPC VAMPIRE" 545 533 .PP 546 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.534 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\. 547 535 .SS "RPC GETSID" 548 536 .PP 549 537 Fetch domain SID and store it in the local 550 \fIsecrets .tdb\fR.538 \fIsecrets\.tdb\fR\. 551 539 .SS "ADS LEAVE" 552 540 .PP 553 Make the remote host leave the domain it is part of .541 Make the remote host leave the domain it is part of\. 554 542 .SS "ADS STATUS" 555 543 .PP 556 Print out status of machine account of the local machine in ADS . Prints out quite some debug info. Aimed at developers, regular users should use557 NET ADS TESTJOIN .544 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 545 NET ADS TESTJOIN\. 558 546 .SS "ADS PRINTER" 559 560 547 .SS "ADS PRINTER INFO [PRINTER] [SERVER]" 561 548 .PP … … 563 550 \fIPRINTER\fR 564 551 on 565 \fISERVER\fR. The printer name defaults to "*", the server name defaults to the local host. 566 552 \fISERVER\fR\. The printer name defaults to "*", the server name defaults to the local host\. 567 553 .SS "ADS PRINTER PUBLISH PRINTER" 568 554 .PP 569 Publish specified printer using ADS. 570 555 Publish specified printer using ADS\. 571 556 .SS "ADS PRINTER REMOVE PRINTER" 572 557 .PP 573 Remove specified printer from ADS directory .574 .SS "ADS SEARCH \fIEXPRESSION\fR \fIATTRIBUTES ...\fR"575 .PP 576 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.558 Remove specified printer from ADS directory\. 559 .SS "ADS SEARCH \fIEXPRESSION\fR \fIATTRIBUTES\.\.\.\fR" 560 .PP 561 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\. 577 562 .PP 578 563 Example: 579 \fBnet ads search '(objectCategory=group)' sAMAccountName\fR564 \fBnet ads search \'(objectCategory=group)\' sAMAccountName\fR 580 565 .SS "ADS DN \fIDN\fR \fI(attributes)\fR" 581 566 .PP 582 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.567 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\. 583 568 .PP 584 569 Example: 585 \fBnet ads dn 'CN=administrator,CN=Users,DC=my,DC=domain' SAMAccountName\fR570 \fBnet ads dn \'CN=administrator,CN=Users,DC=my,DC=domain\' SAMAccountName\fR 586 571 .SS "ADS WORKGROUP" 587 572 .PP 588 Print out workgroup name for specified kerberos realm .573 Print out workgroup name for specified kerberos realm\. 589 574 .SS "SAM CREATEBUILTINGROUP <NAME>" 590 575 .PP 591 (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 ompatible Access. This command requires a running Winbindd with idmap allocation properly configured. The group gid will be allocated out of the winbindd range.576 (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\. 592 577 .SS "SAM CREATELOCALGROUP <NAME>" 593 578 .PP 594 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.579 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\. 595 580 .SS "SAM DELETELOCALGROUP <NAME>" 596 581 .PP 597 Delete an existing LOCAL group (also known as Alias) .582 Delete an existing LOCAL group (also known as Alias)\. 598 583 .SS "SAM MAPUNIXGROUP <NAME>" 599 584 .PP 600 Map an existing Unix group and make it a Domain Group, the domain group will have the same name .585 Map an existing Unix group and make it a Domain Group, the domain group will have the same name\. 601 586 .SS "SAM UNMAPUNIXGROUP <NAME>" 602 587 .PP 603 Remove an existing group mapping entry .588 Remove an existing group mapping entry\. 604 589 .SS "SAM ADDMEM <GROUP> <MEMBER>" 605 590 .PP 606 Add a member to a Local group . The group can be specified only by name, the member can be specified by name or SID.591 Add a member to a Local group\. The group can be specified only by name, the member can be specified by name or SID\. 607 592 .SS "SAM DELMEM <GROUP> <MEMBER>" 608 593 .PP 609 Remove a member from a Local group . The group and the member must be specified by name.594 Remove a member from a Local group\. The group and the member must be specified by name\. 610 595 .SS "SAM LISTMEM <GROUP>" 611 596 .PP 612 List Local group members . The group must be specified by name.597 List Local group members\. The group must be specified by name\. 613 598 .SS "SAM LIST <users|groups|localgroups|builtin|workstations> [verbose]" 614 599 .PP 615 List the specified set of accounts by name . If verbose is specified, the rid and description is also provided for each account.600 List the specified set of accounts by name\. If verbose is specified, the rid and description is also provided for each account\. 616 601 .SS "SAM SHOW <NAME>" 617 602 .PP 618 Show the full DOMAIN\ \NAME the SID and the type for the corrisponding account.603 Show the full DOMAIN\e\eNAME the SID and the type for the corresponding account\. 619 604 .SS "SAM SET HOMEDIR <NAME> <DIRECTORY>" 620 605 .PP 621 Set the home directory for a user account .606 Set the home directory for a user account\. 622 607 .SS "SAM SET PROFILEPATH <NAME> <PATH>" 623 608 .PP 624 Set the profile path for a user account .609 Set the profile path for a user account\. 625 610 .SS "SAM SET COMMENT <NAME> <COMMENT>" 626 611 .PP 627 Set the comment for a user or group account .612 Set the comment for a user or group account\. 628 613 .SS "SAM SET FULLNAME <NAME> <FULL NAME>" 629 614 .PP 630 Set the full name for a user account .615 Set the full name for a user account\. 631 616 .SS "SAM SET LOGONSCRIPT <NAME> <SCRIPT>" 632 617 .PP 633 Set the logon script for a user account .618 Set the logon script for a user account\. 634 619 .SS "SAM SET HOMEDRIVE <NAME> <DRIVE>" 635 620 .PP 636 Set the home drive for a user account .621 Set the home drive for a user account\. 637 622 .SS "SAM SET WORKSTATIONS <NAME> <WORKSTATIONS>" 638 623 .PP 639 Set the workstations a user account is allowed to log in from .624 Set the workstations a user account is allowed to log in from\. 640 625 .SS "SAM SET DISABLE <NAME>" 641 626 .PP 642 Set the "disabled" flag for a user account .627 Set the "disabled" flag for a user account\. 643 628 .SS "SAM SET PWNOTREQ <NAME>" 644 629 .PP 645 Set the "password not required" flag for a user account .630 Set the "password not required" flag for a user account\. 646 631 .SS "SAM SET AUTOLOCK <NAME>" 647 632 .PP 648 Set the "autolock" flag for a user account .633 Set the "autolock" flag for a user account\. 649 634 .SS "SAM SET PWNOEXP <NAME>" 650 635 .PP 651 Set the "password do not expire" flag for a user account .652 .SS "SAM SET PW MUSTCHANGENOW <NAME> [yes|no]"653 .PP 654 Set or unset the "password must change" flag f ro a user account.636 Set the "password do not expire" flag for a user account\. 637 .SS "SAM SET PWDMUSTCHANGENOW <NAME> [yes|no]" 638 .PP 639 Set or unset the "password must change" flag for a user account\. 655 640 .SS "SAM POLICY LIST" 656 641 .PP 657 List the av ilable account policies.642 List the available account policies\. 658 643 .SS "SAM POLICY SHOW <account policy>" 659 644 .PP 660 Show the account policy value .645 Show the account policy value\. 661 646 .SS "SAM POLICY SET <account policy> <value>" 662 647 .PP 663 Set a value for the account policy . Valid values can be: "forever", "never", "off", or a number.648 Set a value for the account policy\. Valid values can be: "forever", "never", "off", or a number\. 664 649 .SS "SAM PROVISION" 665 650 .PP 666 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.667 .SS "IDMAP DUMP < output file>"668 .PP 669 Dumps the mappings in the specified output file.651 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\. 652 .SS "IDMAP DUMP <local tdb file name>" 653 .PP 654 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\. 670 655 .SS "IDMAP RESTORE [input file]" 671 656 .PP 672 Restore the mappings from the specified file or stdin .657 Restore the mappings from the specified file or stdin\. 673 658 .SS "IDMAP SECRET <DOMAIN>|ALLOC <secret>" 674 659 .PP 675 Store a secret for the s epcified 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.660 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\. 676 661 .SS "USERSHARE" 677 662 .PP 678 Starting with version 3 .0.23, a Samba server now supports the ability for non-root users to add user define shares to be exported using the "net usershare" commands.679 .PP 680 To set this up, first set up your 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 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.663 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\. 664 .PP 665 To set this up, first set up your 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 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\. 681 666 .PP 682 667 The usershare commands are: 683 .IP "" 3n 684 net usershare add sharename path [comment] [acl] [guest_ok=[y|n]] - to add or change a user defined share. 685 .IP "" 3n 686 net usershare delete sharename - to delete a user defined share. 687 .IP "" 3n 688 net usershare info [-l|--long] [wildcard sharename] - to print info about a user defined share. 689 .IP "" 3n 690 net usershare list [-l|--long] [wildcard sharename] - to list user defined shares. 691 668 .IP "" 4 669 net usershare add sharename path [comment] [acl] [guest_ok=[y|n]] \- to add or change a user defined share\. 670 .IP "" 4 671 net usershare delete sharename \- to delete a user defined share\. 672 .IP "" 4 673 net usershare info [\-l|\-\-long] [wildcard sharename] \- to print info about a user defined share\. 674 .IP "" 4 675 net usershare list [\-l|\-\-long] [wildcard sharename] \- to list user defined shares\. 692 676 693 677 .SS "USERSHARE ADD sharename path [comment] [acl] [guest_ok=[y|n]]" 694 678 .PP 695 Add or replace a new user defined share, with name "sharename" .696 .PP 697 "path" specifies the absolute pathname on the system to be exported . Restrictions may be put on this, see the global smb.conf parameters : "usershare owner only", "usershare prefix allow list", and "usershare prefix deny list".698 .PP 699 The optional "comment" parameter is the comment that will appear on the share when browsed to by a client .700 .PP 701 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 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).702 .PP 703 The default if no "acl" is given is "Everyone:R", which means any authenticated user has read -only access.704 .PP 705 The optional "guest_ok" has the same effect as the parameter of the same name in 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 smb.conf.679 Add or replace a new user defined share, with name "sharename"\. 680 .PP 681 "path" specifies the absolute pathname on the system to be exported\. Restrictions may be put on this, see the global smb\.conf parameters: "usershare owner only", "usershare prefix allow list", and "usershare prefix deny list"\. 682 .PP 683 The optional "comment" parameter is the comment that will appear on the share when browsed to by a client\. 684 .PP 685 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 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)\. 686 .PP 687 The default if no "acl" is given is "Everyone:R", which means any authenticated user has read\-only access\. 688 .PP 689 The optional "guest_ok" has the same effect as the parameter of the same name in 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 smb\.conf\. 706 690 707 691 … … 709 693 just use the "net usershare add [sharename]" command using the same 710 694 sharename as the one you wish to modify and specify the new options 711 you wish . The Samba smbd daemon notices user defined share modifications695 you wish\. The Samba smbd daemon notices user defined share modifications 712 696 at connect time so will see the change immediately, there is no need 713 to restart smbd on adding, deleting or changing a user defined share. 714 697 to restart smbd on adding, deleting or changing a user defined share\. 715 698 .SS "USERSHARE DELETE sharename" 716 699 .PP 717 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. 718 700 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\. 719 701 .SS "USERSHARE INFO [-l|--long] [wildcard sharename]" 720 702 .PP 721 Get info on user defined shares owned by the current user matching the given pattern, or all users. 722 .PP 723 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 ('*' matches one or more characters, '?' matches only one character). If the '-l' or '--long' option is also given, it prints out info on user defined shares created by other users. 724 .PP 725 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. 726 703 Get info on user defined shares owned by the current user matching the given pattern, or all users\. 704 .PP 705 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 (\'*\' matches one or more characters, \'?\' matches only one character)\. If the \'\-l\' or \'\-\-long\' option is also given, it prints out info on user defined shares created by other users\. 706 .PP 707 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\. 727 708 .SS "USERSHARE LIST [-l|--long] wildcard sharename" 728 709 .PP 729 List all the user defined shares owned by the current user matching the given pattern, or all users .730 .PP 731 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 ( '*' matches one or more characters, '?' matches only one character). If the '-l' or '--long' option is also given, it includes the names of user defined shares created by other users.710 List all the user defined shares owned by the current user matching the given pattern, or all users\. 711 .PP 712 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 (\'*\' matches one or more characters, \'?\' matches only one character)\. If the \'\-l\' or \'\-\-long\' option is also given, it includes the names of user defined shares created by other users\. 732 713 .SS "HELP [COMMAND]" 733 714 .PP 734 Gives usage information for the specified command .715 Gives usage information for the specified command\. 735 716 .SH "VERSION" 736 717 .PP 737 This man page is complete for version 3 .0 of the Samba suite.718 This man page is complete for version 3\.0 of the Samba suite\. 738 719 .SH "AUTHOR" 739 720 .PP 740 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. 741 .PP 742 The net manpage was written by Jelmer Vernooij. 743 721 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\. 722 .PP 723 The net manpage was written by Jelmer Vernooij\.
Note:
See TracChangeset
for help on using the changeset viewer.