Ignore:
Timestamp:
May 23, 2008, 6:56:41 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.29

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
    2113.SH "NAME"
    2214net - Tool for administration of Samba and remote CIFS servers.
    2315.SH "SYNOPSIS"
    2416.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]
     17net {<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]
    2618.SH "DESCRIPTION"
    2719.PP
    2820This tool is part of the
    2921\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.
     22suite\.
     23.PP
     24The 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\.
    3325.SH "OPTIONS"
    3426.PP
    35 -h|--help
    36 .RS 3n
    37 Print a summary of command line options.
    38 .RE
    39 .PP
    40 -w target-workgroup
    41 .RS 3n
    42 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 workgroup
    46 .RS 3n
     27\-h|\-\-help
     28.RS 4
     29Print a summary of command line options\.
     30.RE
     31.PP
     32\-w target\-workgroup
     33.RS 4
     34Sets 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
    4739Sets client workgroup or domain
    4840.RE
    4941.PP
    50 -U user
    51 .RS 3n
     42\-U user
     43.RS 4
    5244User name to use
    5345.RE
    5446.PP
    55 -I ip-address
    56 .RS 3n
    57 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 port
    61 .RS 3n
    62 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 3n
    67 This option allows you to override the NetBIOS name that Samba uses for itself. This is identical to setting the
    68 
     47\-I ip\-address
     48.RS 4
     49IP 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
     54Port 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
     59This option allows you to override the NetBIOS name that Samba uses for itself\. This is identical to setting the
     60\fInetbios name\fR
    6961parameter in the
    70 \fIsmb.conf\fR
    71 file. However, a command line setting will take precedence over settings in
    72 \fIsmb.conf\fR.
    73 .RE
    74 .PP
    75 -s <configuration file>
    76 .RS 3n
    77 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
    78 \fIsmb.conf\fR
    79 for more information. The default configuration file name is determined at compile time.
    80 .RE
    81 .PP
    82 -S server
    83 .RS 3n
    84 Name of target server. You should specify either this option or a target workgroup or a target IP address.
    85 .RE
    86 .PP
    87 -l
    88 .RS 3n
    89 When listing data, give more information on each item.
    90 .RE
    91 .PP
    92 -P
    93 .RS 3n
    94 Make queries to the external server using the machine account of the local server.
    95 .RE
    96 .PP
    97 -d|--debuglevel=level
    98 .RS 3n
     62\fIsmb\.conf\fR
     63file\. 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
     69The 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
     71for more information\. The default configuration file name is determined at compile time\.
     72.RE
     73.PP
     74\-S server
     75.RS 4
     76Name 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
     81When listing data, give more information on each item\.
     82.RE
     83.PP
     84\-P
     85.RS 4
     86Make queries to the external server using the machine account of the local server\.
     87.RE
     88.PP
     89\-d|\-\-debuglevel=level
     90.RS 4
    9991\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.
     92is an integer from 0 to 10\. The default value if this parameter is not specified is 0\.
     93.sp
     94The 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
     96Levels 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\.
    10597.sp
    10698Note that specifying this parameter here will override the
    107 
     99\fIlog level\fR
    108100parameter in the
    109 \fIsmb.conf\fR
    110 file.
     101\fIsmb\.conf\fR
     102file\.
    111103.RE
    112104.SH "COMMANDS"
    113105.SS "CHANGESECRETPW"
    114106.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.
     107This 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\.
    116108.SS "TIME"
    117109.PP
    118110The
    119111NET 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 
     112command 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\.
    122113.SS "TIME"
    123114.PP
    124115Without any options, the
    125116NET TIME
    126 command displays the time on the remote server.
    127 
     117command displays the time on the remote server\.
    128118.SS "TIME SYSTEM"
    129119.PP
    130120Displays the time on the remote server in a format ready for
    131 /bin/date
    132 
     121/bin/date\.
    133122.SS "TIME SET"
    134123.PP
    135124Tries to set the date and time of the local server to that on the remote server using
    136 /bin/date.
    137 
     125/bin/date\.
    138126.SS "TIME ZONE"
    139127.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.
     128Displays 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
     131Join 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\.
    150138.SS "[RPC] OLDJOIN [options]"
    151139.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.
     140Join 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\.
    153141.SS "[RPC|ADS] USER"
    154 
    155142.SS "[RPC|ADS] USER"
    156143.PP
    157144List all users
    158 
    159145.SS "[RPC|ADS] USER DELETE target"
    160146.PP
    161147Delete specified user
    162 
    163148.SS "[RPC|ADS] USER INFO target"
    164149.PP
    165 List the domain groups of a the specified user.
    166 
     150List the domain groups of the specified user\.
    167151.SS "[RPC|ADS] USER RENAME oldname newname"
    168152.PP
    169 Rename specified user.
    170 
     153Rename specified user\.
    171154.SS "[RPC|ADS] USER ADD name [password] [-F user flags] [-C comment]"
    172155.PP
    173 Add specified user.
     156Add specified user\.
    174157.SS "[RPC|ADS] GROUP"
    175 
    176158.SS "[RPC|ADS] GROUP [misc options] [targets]"
    177159.PP
    178 List user groups.
    179 
     160List user groups\.
    180161.SS "[RPC|ADS] GROUP DELETE name [misc. options]"
    181162.PP
    182 Delete specified group.
    183 
     163Delete specified group\.
    184164.SS "[RPC|ADS] GROUP ADD name [-C comment]"
    185165.PP
    186 Create specified group.
     166Create specified group\.
    187167.SS "[RAP|RPC] SHARE"
    188 
    189168.SS "[RAP|RPC] SHARE [misc. options] [targets]"
    190169.PP
    191 Enumerates all exported resources (network shares) on target server.
    192 
     170Enumerates all exported resources (network shares) on target server\.
    193171.SS "[RAP|RPC] SHARE ADD name=serverpath [-C comment] [-M maxusers] [targets]"
    194172.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.
     173Adds 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
     176Delete specified share\.
    200177.SS "[RPC|RAP] FILE"
    201 
    202178.SS "[RPC|RAP] FILE"
    203179.PP
    204 List all open files on remote server.
    205 
     180List all open files on remote server\.
    206181.SS "[RPC|RAP] FILE CLOSE fileid"
    207182.PP
    208183Close file with specified
    209184\fIfileid\fR
    210 on remote server.
    211 
     185on remote server\.
    212186.SS "[RPC|RAP] FILE INFO fileid"
    213187.PP
    214188Print 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
     192List files opened by specified
     193\fIuser\fR\. Please note that
     194net rap file user
     195does not work against Samba servers\.
     196.SS "SESSION"
     197.SS "RAP SESSION"
     198.PP
     199Without any other options, SESSION enumerates all active SMB/CIFS sessions on the target server\.
     200.SS "RAP SESSION DELETE|CLOSE CLIENT_NAME"
     201.PP
     202Close the specified sessions\.
     203.SS "RAP SESSION INFO CLIENT_NAME"
     204.PP
     205Give a list with all the open files in specified session\.
     206.SS "RAP SERVER \fIDOMAIN\fR"
     207.PP
     208List all servers in specified domain or workgroup\. Defaults to local domain\.
     209.SS "RAP DOMAIN"
     210.PP
     211Lists all domains and workgroups visible on the current network\.
     212.SS "RAP PRINTQ"
     213.SS "RAP PRINTQ LIST QUEUE_NAME"
     214.PP
     215Lists the specified print queue and print jobs on the server\. If the
     216\fIQUEUE_NAME\fR
     217is omitted, all queues are listed\.
     218.SS "RAP PRINTQ DELETE JOBID"
     219.PP
     220Delete job with specified id\.
     221.SS "RAP VALIDATE \fIuser\fR [\fIpassword\fR]"
     222.PP
     223Validate whether the specified user can log in to the remote server\. If the password is not specified on the commandline, it will be prompted\.
    218224.sp
    219225.it 1 an-trap
     
    221227.nr an-break-flag 1
    222228.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.
     229Note
     230.PP
     231Currently NOT implemented\.
     232.SS "RAP GROUPMEMBER"
     233.SS "RAP GROUPMEMBER LIST GROUP"
     234.PP
     235List all members of the specified group\.
     236.SS "RAP GROUPMEMBER DELETE GROUP USER"
     237.PP
     238Delete member from group\.
     239.SS "RAP GROUPMEMBER ADD GROUP USER"
     240.PP
     241Add member to group\.
     242.SS "RAP ADMIN \fIcommand\fR"
     243.PP
     244Execute the specified
     245\fIcommand\fR
     246on the remote server\. Only works with OS/2 servers\.
    259247.sp
    260248.it 1 an-trap
     
    262250.nr an-break-flag 1
    263251.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.
     252Note
     253.PP
     254Currently NOT implemented\.
     255.SS "RAP SERVICE"
     256.SS "RAP SERVICE START NAME [arguments...]"
     257.PP
     258Start the specified service on the remote server\. Not implemented yet\.
    285259.sp
    286260.it 1 an-trap
     
    288262.nr an-break-flag 1
    289263.br
    290 \fBNote\fR
    291 .PP
    292 Currently NOT implemented.
    293 .SS "RAP SERVICE"
     264Note
     265.PP
     266Currently NOT implemented\.
    294267
    295 .SS "RAP SERVICE START NAME [arguments...]"
    296 .PP
    297 Start the specified service on the remote server. Not implemented yet.
     268.SS "RAP SERVICE STOP"
     269.PP
     270Stop the specified service on the remote server\.
    298271.sp
    299272.it 1 an-trap
     
    301274.nr an-break-flag 1
    302275.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.
     276Note
     277.PP
     278Currently NOT implemented\.
    318279.SS "RAP PASSWORD \fIUSER\fR \fIOLDPASS\fR \fINEWPASS\fR"
    319280.PP
     
    323284\fIOLDPASS\fR
    324285to
    325 \fINEWPASS\fR.
     286\fINEWPASS\fR\.
    326287.SS "LOOKUP"
    327 
    328288.SS "LOOKUP HOST HOSTNAME [TYPE]"
    329289.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"
     290Lookup the IP address of the given host with the specified type (netbios suffix)\. The type defaults to 0x20 (workstation)\.
     291.SS "LOOKUP LDAP [DOMAIN]"
    333292.PP
    334293Give IP address of LDAP server of specified
    335 \fIDOMAIN\fR. Defaults to local domain.
    336 
     294\fIDOMAIN\fR\. Defaults to local domain\.
    337295.SS "LOOKUP KDC [REALM]"
    338296.PP
    339297Give IP address of KDC for the specified
    340 \fIREALM\fR. Defaults to local realm.
    341 
     298\fIREALM\fR\. Defaults to local realm\.
    342299.SS "LOOKUP DC [DOMAIN]"
    343300.PP
    344 Give IP's of Domain Controllers for specified
    345 \fI DOMAIN\fR. Defaults to local domain.
    346 
     301Give IP\'s of Domain Controllers for specified
     302\fI DOMAIN\fR\. Defaults to local domain\.
    347303.SS "LOOKUP MASTER DOMAIN"
    348304.PP
    349305Give IP of master browser for specified
    350306\fIDOMAIN\fR
    351 or workgroup. Defaults to local domain.
     307or workgroup\. Defaults to local domain\.
    352308.SS "CACHE"
    353309.PP
    354 Samba uses a general caching interface called 'gencache'. It can be controlled using 'NET CACHE'.
     310Samba uses a general caching interface called \'gencache\'\. It can be controlled using \'NET CACHE\'\.
    355311.PP
    356312All 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
     314s \- Seconds
     315.IP "" 4
     316m \- Minutes
     317.IP "" 4
     318h \- Hours
     319.IP "" 4
     320d \- Days
     321.IP "" 4
     322w \- Weeks
    368323
    369324.SS "CACHE ADD key data time-out"
    370325.PP
    371 Add specified key+data to the cache with the given timeout.
    372 
     326Add specified key+data to the cache with the given timeout\.
    373327.SS "CACHE DEL key"
    374328.PP
    375 Delete key from the cache.
    376 
     329Delete key from the cache\.
    377330.SS "CACHE SET key data time-out"
    378331.PP
    379 Update data of existing cache entry.
    380 
     332Update data of existing cache entry\.
    381333.SS "CACHE SEARCH PATTERN"
    382334.PP
    383 Search for the specified pattern in the cache data.
    384 
     335Search for the specified pattern in the cache data\.
    385336.SS "CACHE LIST"
    386337.PP
    387 List all current items in the cache.
    388 
     338List all current items in the cache\.
    389339.SS "CACHE FLUSH"
    390340.PP
    391 Remove all the current items from the cache.
     341Remove all the current items from the cache\.
    392342.SS "GETLOCALSID [DOMAIN]"
    393343.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.
     344Prints 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
     347Sets SID for the local server to the specified SID\.
     348.SS "GETDOMAINSID"
     349.PP
     350Prints the local machine SID and the SID of the current domain\.
     351.SS "SETDOMAINSID"
     352.PP
     353Sets the SID of the current domain\.
    398354.SS "GROUPMAP"
    399355.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 
     356Manage 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.\}
     366unixgroup \- 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.\}
     377ntgroup \- 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.\}
     388rid \- 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.\}
     399sid \- 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.\}
     410type \- 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.\}
     421comment \- Freeform text description of the group
     422.sp
     423.RE
    420424.SS "GROUPMAP ADD"
    421425.PP
    422426Add a new group mapping entry:
    423 
    424 .sp
    425 
     427.sp
     428.RS 4
    426429.nf
    427 
    428 net groupmap add {rid=int|sid=string} unixgroup=string \
    429       [type={domain|local}] [ntgroup=string] [comment=string]
    430 
     430net groupmap add {rid=int|sid=string} unixgroup=string \e
     431        [type={domain|local}] [ntgroup=string] [comment=string]
    431432.fi
    432 
     433.RE
     434.sp
    433435
    434436.SS "GROUPMAP DELETE"
    435437.PP
    436 Delete a group mapping entry. If more then one group name matches, the first entry found is deleted.
     438Delete a group mapping entry\. If more than one group name matches, the first entry found is deleted\.
    437439.PP
    438440net groupmap delete {ntgroup=string|sid=SID}
     441.SS "GROUPMAP MODIFY"
     442.PP
     443Update en existing group entry\.
     444.PP
    439445
    440 .SS "GROUPMAP MODIFY"
    441 .PP
    442 Update en existing group entry
    443 .PP
    444 
    445 
    446 .sp
    447 
     446.sp
     447.RS 4
    448448.nf
    449 
    450 net groupmap modify {ntgroup=string|sid=SID} [unixgroup=string] \
     449net groupmap modify {ntgroup=string|sid=SID} [unixgroup=string] \e
    451450       [comment=string] [type={domain|local}]
    452 
    453451.fi
    454 
     452.RE
     453.sp
    455454
    456455.SS "GROUPMAP LIST"
    457456.PP
    458 List existing group mapping entries
     457List existing group mapping entries\.
    459458.PP
    460459net groupmap list [verbose] [ntgroup=string] [sid=SID]
    461460.SS "MAXRID"
    462461.PP
    463 Prints out the highest RID currently in use on the local server (by the active 'passdb backend').
     462Prints out the highest RID currently in use on the local server (by the active \'passdb backend\')\.
    464463.SS "RPC INFO"
    465464.PP
    466 Print information about the domain of the remote server, such as domain name, domain sid and number of users and groups.
     465Print information about the domain of the remote server, such as domain name, domain sid and number of users and groups\.
    467466.SS "[RPC|ADS] TESTJOIN"
    468467.PP
    469 Check whether participation in a domain is still valid.
     468Check whether participation in a domain is still valid\.
    470469.SS "[RPC|ADS] CHANGETRUSTPW"
    471470.PP
    472 Force change of domain trust password.
     471Force change of domain trust password\.
    473472.SS "RPC TRUSTDOM"
    474 
    475473.SS "RPC TRUSTDOM ADD DOMAIN"
    476474.PP
    477475Add 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
     478with the account flag
     479\fB\'I\'\fR
     480(interdomain trust account)\. If the command is used against localhost it has the same effect as
     481smbpasswd \-a \-i DOMAIN\. Please note that both commands expect a appropriate UNIX account\.
     482.SS "RPC TRUSTDOM DEL DOMAIN"
    482483.PP
    483484Remove 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
     486smbpasswd \-x DOMAIN$\.
    495487.SS "RPC TRUSTDOM ESTABLISH DOMAIN"
    496488.PP
    497 Establish a trust relationship to a trusting domain. Interdomain account must already be created on the remote PDC.
    498 
     489Establish a trust relationship to a trusting domain\. Interdomain account must already be created on the remote PDC\.
    499490.SS "RPC TRUSTDOM REVOKE DOMAIN"
    500491.PP
    501492Abandon relationship to trusted domain
    502 
    503493.SS "RPC TRUSTDOM LIST"
    504494.PP
    505 List all current interdomain trust relationships.
    506 
     495List all current interdomain trust relationships\.
    507496.SS "RPC RIGHTS"
    508497.PP
    509 This subcommand is used to view and manage Samba's rights assignments (also referred to as privileges). There are three options current available:
     498This subcommand is used to view and manage Samba\'s rights assignments (also referred to as privileges)\. There are three options currently available:
    510499\fIlist\fR,
    511500\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\.
    513502.SS "RPC ABORTSHUTDOWN"
    514503.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.
     504Abort the shutdown of a remote server\.
     505.SS "RPC SHUTDOWN [\-t timeout] [\-r] [\-f] [\-C message]"
     506.PP
     507Shut down the remote server\.
     508.PP
     509\-r
     510.RS 4
     511Reboot after shutdown\.
     512.RE
     513.PP
     514\-f
     515.RS 4
     516Force shutting down all applications\.
     517.RE
     518.PP
     519\-t timeout
     520.RS 4
     521Timeout 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
     527Display the specified message on the screen to announce the shutdown\.
    540528.RE
    541529.SS "RPC SAMDUMP"
    542530.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.
     531Print out sam database of remote server\. You need to run this against the PDC, from a Samba machine joined as a BDC\.
    544532.SS "RPC VAMPIRE"
    545533.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.
     534Export 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\.
    547535.SS "RPC GETSID"
    548536.PP
    549537Fetch domain SID and store it in the local
    550 \fIsecrets.tdb\fR.
     538\fIsecrets\.tdb\fR\.
    551539.SS "ADS LEAVE"
    552540.PP
    553 Make the remote host leave the domain it is part of.
     541Make the remote host leave the domain it is part of\.
    554542.SS "ADS STATUS"
    555543.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 use
    557 NET ADS TESTJOIN.
     544Print out status of machine account of the local machine in ADS\. Prints out quite some debug info\. Aimed at developers, regular users should use
     545NET ADS TESTJOIN\.
    558546.SS "ADS PRINTER"
    559 
    560547.SS "ADS PRINTER INFO [PRINTER] [SERVER]"
    561548.PP
     
    563550\fIPRINTER\fR
    564551on
    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\.
    567553.SS "ADS PRINTER PUBLISH PRINTER"
    568554.PP
    569 Publish specified printer using ADS.
    570 
     555Publish specified printer using ADS\.
    571556.SS "ADS PRINTER REMOVE PRINTER"
    572557.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.
     558Remove specified printer from ADS directory\.
     559.SS "ADS SEARCH \fIEXPRESSION\fR \fIATTRIBUTES\.\.\.\fR"
     560.PP
     561Perform 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\.
    577562.PP
    578563Example:
    579 \fBnet ads search '(objectCategory=group)' sAMAccountName\fR
     564\fBnet ads search \'(objectCategory=group)\' sAMAccountName\fR
    580565.SS "ADS DN \fIDN\fR \fI(attributes)\fR"
    581566.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.
     567Perform 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\.
    583568.PP
    584569Example:
    585 \fBnet ads dn 'CN=administrator,CN=Users,DC=my,DC=domain' SAMAccountName\fR
     570\fBnet ads dn \'CN=administrator,CN=Users,DC=my,DC=domain\' SAMAccountName\fR
    586571.SS "ADS WORKGROUP"
    587572.PP
    588 Print out workgroup name for specified kerberos realm.
     573Print out workgroup name for specified kerberos realm\.
    589574.SS "SAM CREATEBUILTINGROUP <NAME>"
    590575.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\.
    592577.SS "SAM CREATELOCALGROUP <NAME>"
    593578.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.
     579Create 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\.
    595580.SS "SAM DELETELOCALGROUP <NAME>"
    596581.PP
    597 Delete an existing LOCAL group (also known as Alias).
     582Delete an existing LOCAL group (also known as Alias)\.
    598583.SS "SAM MAPUNIXGROUP <NAME>"
    599584.PP
    600 Map an existing Unix group and make it a Domain Group, the domain group will have the same name.
     585Map an existing Unix group and make it a Domain Group, the domain group will have the same name\.
    601586.SS "SAM UNMAPUNIXGROUP <NAME>"
    602587.PP
    603 Remove an existing group mapping entry.
     588Remove an existing group mapping entry\.
    604589.SS "SAM ADDMEM <GROUP> <MEMBER>"
    605590.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.
     591Add a member to a Local group\. The group can be specified only by name, the member can be specified by name or SID\.
    607592.SS "SAM DELMEM <GROUP> <MEMBER>"
    608593.PP
    609 Remove a member from a Local group. The group and the member must be specified by name.
     594Remove a member from a Local group\. The group and the member must be specified by name\.
    610595.SS "SAM LISTMEM <GROUP>"
    611596.PP
    612 List Local group members. The group must be specified by name.
     597List Local group members\. The group must be specified by name\.
    613598.SS "SAM LIST <users|groups|localgroups|builtin|workstations> [verbose]"
    614599.PP
    615 List the specified set of accounts by name. If verbose is specified, the rid and description is also provided for each account.
     600List the specified set of accounts by name\. If verbose is specified, the rid and description is also provided for each account\.
    616601.SS "SAM SHOW <NAME>"
    617602.PP
    618 Show the full DOMAIN\\NAME the SID and the type for the corrisponding account.
     603Show the full DOMAIN\e\eNAME the SID and the type for the corresponding account\.
    619604.SS "SAM SET HOMEDIR <NAME> <DIRECTORY>"
    620605.PP
    621 Set the home directory for a user account.
     606Set the home directory for a user account\.
    622607.SS "SAM SET PROFILEPATH <NAME> <PATH>"
    623608.PP
    624 Set the profile path for a user account.
     609Set the profile path for a user account\.
    625610.SS "SAM SET COMMENT <NAME> <COMMENT>"
    626611.PP
    627 Set the comment for a user or group account.
     612Set the comment for a user or group account\.
    628613.SS "SAM SET FULLNAME <NAME> <FULL NAME>"
    629614.PP
    630 Set the full name for a user account.
     615Set the full name for a user account\.
    631616.SS "SAM SET LOGONSCRIPT <NAME> <SCRIPT>"
    632617.PP
    633 Set the logon script for a user account.
     618Set the logon script for a user account\.
    634619.SS "SAM SET HOMEDRIVE <NAME> <DRIVE>"
    635620.PP
    636 Set the home drive for a user account.
     621Set the home drive for a user account\.
    637622.SS "SAM SET WORKSTATIONS <NAME> <WORKSTATIONS>"
    638623.PP
    639 Set the workstations a user account is allowed to log in from.
     624Set the workstations a user account is allowed to log in from\.
    640625.SS "SAM SET DISABLE <NAME>"
    641626.PP
    642 Set the "disabled" flag for a user account.
     627Set the "disabled" flag for a user account\.
    643628.SS "SAM SET PWNOTREQ <NAME>"
    644629.PP
    645 Set the "password not required" flag for a user account.
     630Set the "password not required" flag for a user account\.
    646631.SS "SAM SET AUTOLOCK <NAME>"
    647632.PP
    648 Set the "autolock" flag for a user account.
     633Set the "autolock" flag for a user account\.
    649634.SS "SAM SET PWNOEXP <NAME>"
    650635.PP
    651 Set the "password do not expire" flag for a user account.
    652 .SS "SAM SET PWMUSTCHANGENOW <NAME> [yes|no]"
    653 .PP
    654 Set or unset the "password must change" flag fro a user account.
     636Set the "password do not expire" flag for a user account\.
     637.SS "SAM SET PWDMUSTCHANGENOW <NAME> [yes|no]"
     638.PP
     639Set or unset the "password must change" flag for a user account\.
    655640.SS "SAM POLICY LIST"
    656641.PP
    657 List the avilable account policies.
     642List the available account policies\.
    658643.SS "SAM POLICY SHOW <account policy>"
    659644.PP
    660 Show the account policy value.
     645Show the account policy value\.
    661646.SS "SAM POLICY SET <account policy> <value>"
    662647.PP
    663 Set a value for the account policy. Valid values can be: "forever", "never", "off", or a number.
     648Set a value for the account policy\. Valid values can be: "forever", "never", "off", or a number\.
    664649.SS "SAM PROVISION"
    665650.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.
     651Only 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
     654Dumps the mappings contained in the local tdb file specified\. This command is useful to dump only the mappings produced by the idmap_tdb backend\.
    670655.SS "IDMAP RESTORE [input file]"
    671656.PP
    672 Restore the mappings from the specified file or stdin.
     657Restore the mappings from the specified file or stdin\.
    673658.SS "IDMAP SECRET <DOMAIN>|ALLOC <secret>"
    674659.PP
    675 Store a secret for the sepcified 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.
     660Store 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\.
    676661.SS "USERSHARE"
    677662.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.
     663Starting 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
     665To 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\.
    681666.PP
    682667The 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
     669net usershare add sharename path [comment] [acl] [guest_ok=[y|n]] \- to add or change a user defined share\.
     670.IP "" 4
     671net usershare delete sharename \- to delete a user defined share\.
     672.IP "" 4
     673net usershare info [\-l|\-\-long] [wildcard sharename] \- to print info about a user defined share\.
     674.IP "" 4
     675net usershare list [\-l|\-\-long] [wildcard sharename] \- to list user defined shares\.
    692676
    693677.SS "USERSHARE ADD sharename path [comment] [acl] [guest_ok=[y|n]]"
    694678.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.
     679Add 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
     683The optional "comment" parameter is the comment that will appear on the share when browsed to by a client\.
     684.PP
     685The 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
     687The default if no "acl" is given is "Everyone:R", which means any authenticated user has read\-only access\.
     688.PP
     689The 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\.
    706690
    707691
     
    709693just use the "net usershare add [sharename]" command using the same
    710694sharename as the one you wish to modify and specify the new options
    711 you wish. The Samba smbd daemon notices user defined share modifications
     695you wish\. The Samba smbd daemon notices user defined share modifications
    712696at 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 
     697to restart smbd on adding, deleting or changing a user defined share\.
    715698.SS "USERSHARE DELETE sharename"
    716699.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 
     700Deletes 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\.
    719701.SS "USERSHARE INFO [-l|--long] [wildcard sharename]"
    720702.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 
     703Get info on user defined shares owned by the current user matching the given pattern, or all users\.
     704.PP
     705net 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
     707The 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\.
    727708.SS "USERSHARE LIST [-l|--long] wildcard sharename"
    728709.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.
     710List all the user defined shares owned by the current user matching the given pattern, or all users\.
     711.PP
     712net 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\.
    732713.SS "HELP [COMMAND]"
    733714.PP
    734 Gives usage information for the specified command.
     715Gives usage information for the specified command\.
    735716.SH "VERSION"
    736717.PP
    737 This man page is complete for version 3.0 of the Samba suite.
     718This man page is complete for version 3\.0 of the Samba suite\.
    738719.SH "AUTHOR"
    739720.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 
     721The 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
     723The net manpage was written by Jelmer Vernooij\.
Note: See TracChangeset for help on using the changeset viewer.