Changeset 231 for branches/samba-3.2.x/docs/manpages/mount.cifs.8
- Timestamp:
- May 27, 2009, 9:08:03 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/docs/manpages/mount.cifs.8
r229 r231 1 1 .\" Title: mount.cifs 2 .\" Author: 3 .\" Generator: DocBook XSL Stylesheets v1.7 3.1<http://docbook.sf.net/>4 .\" Date: 12/19/20082 .\" Author: [see the "AUTHOR" section] 3 .\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/> 4 .\" Date: 02/03/2009 5 5 .\" Manual: System Administration tools 6 6 .\" Source: Samba 3.2 7 .\" Language: English 7 8 .\" 8 .TH "MOUNT\.CIFS" "8" "12/19/2008" "Samba 3\.2" "System Administration tools" 9 .TH "MOUNT\&.CIFS" "8" "02/03/2009" "Samba 3\&.2" "System Administration tools" 10 .\" ----------------------------------------------------------------- 11 .\" * (re)Define some macros 12 .\" ----------------------------------------------------------------- 13 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 14 .\" toupper - uppercase a string (locale-aware) 15 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 16 .de toupper 17 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ 18 \\$* 19 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz 20 .. 21 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 22 .\" SH-xref - format a cross-reference to an SH section 23 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 24 .de SH-xref 25 .ie n \{\ 26 .\} 27 .toupper \\$* 28 .el \{\ 29 \\$* 30 .\} 31 .. 32 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 33 .\" SH - level-one heading that works better for non-TTY output 34 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 35 .de1 SH 36 .\" put an extra blank line of space above the head in non-TTY output 37 .if t \{\ 38 .sp 1 39 .\} 40 .sp \\n[PD]u 41 .nr an-level 1 42 .set-an-margin 43 .nr an-prevailing-indent \\n[IN] 44 .fi 45 .in \\n[an-margin]u 46 .ti 0 47 .HTML-TAG ".NH \\n[an-level]" 48 .it 1 an-trap 49 .nr an-no-space-flag 1 50 .nr an-break-flag 1 51 \." make the size of the head bigger 52 .ps +3 53 .ft B 54 .ne (2v + 1u) 55 .ie n \{\ 56 .\" if n (TTY output), use uppercase 57 .toupper \\$* 58 .\} 59 .el \{\ 60 .nr an-break-flag 0 61 .\" if not n (not TTY), use normal case (not uppercase) 62 \\$1 63 .in \\n[an-margin]u 64 .ti 0 65 .\" if not n (not TTY), put a border/line under subheading 66 .sp -.6 67 \l'\n(.lu' 68 .\} 69 .. 70 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 .\" SS - level-two heading that works better for non-TTY output 72 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 .de1 SS 74 .sp \\n[PD]u 75 .nr an-level 1 76 .set-an-margin 77 .nr an-prevailing-indent \\n[IN] 78 .fi 79 .in \\n[IN]u 80 .ti \\n[SN]u 81 .it 1 an-trap 82 .nr an-no-space-flag 1 83 .nr an-break-flag 1 84 .ps \\n[PS-SS]u 85 \." make the size of the head bigger 86 .ps +2 87 .ft B 88 .ne (2v + 1u) 89 .if \\n[.$] \&\\$* 90 .. 91 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 92 .\" BB/BE - put background/screen (filled box) around block of text 93 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 94 .de BB 95 .if t \{\ 96 .sp -.5 97 .br 98 .in +2n 99 .ll -2n 100 .gcolor red 101 .di BX 102 .\} 103 .. 104 .de EB 105 .if t \{\ 106 .if "\\$2"adjust-for-leading-newline" \{\ 107 .sp -1 108 .\} 109 .br 110 .di 111 .in 112 .ll 113 .gcolor 114 .nr BW \\n(.lu-\\n(.i 115 .nr BH \\n(dn+.5v 116 .ne \\n(BHu+.5v 117 .ie "\\$2"adjust-for-leading-newline" \{\ 118 \M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] 119 .\} 120 .el \{\ 121 \M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] 122 .\} 123 .in 0 124 .sp -.5v 125 .nf 126 .BX 127 .in 128 .sp .5v 129 .fi 130 .\} 131 .. 132 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 133 .\" BM/EM - put colored marker in margin next to block of text 134 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 135 .de BM 136 .if t \{\ 137 .br 138 .ll -2n 139 .gcolor red 140 .di BX 141 .\} 142 .. 143 .de EM 144 .if t \{\ 145 .br 146 .di 147 .ll 148 .gcolor 149 .nr BH \\n(dn 150 .ne \\n(BHu 151 \M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] 152 .in 0 153 .nf 154 .BX 155 .in 156 .fi 157 .\} 158 .. 159 .\" ----------------------------------------------------------------- 160 .\" * set default formatting 161 .\" ----------------------------------------------------------------- 9 162 .\" disable hyphenation 10 163 .nh 11 164 .\" disable justification (adjust text to left margin only) 12 165 .ad l 13 .SH "NAME" 14 mount.cifs - mount using the Common Internet File System (CIFS) 15 .SH "SYNOPSIS" 16 .HP 1 17 mount\.cifs {service} {mount\-point} [\-o\ options] 166 .\" ----------------------------------------------------------------- 167 .\" * MAIN CONTENT STARTS HERE * 168 .\" ----------------------------------------------------------------- 169 .SH "Name" 170 mount.cifs \- mount using the Common Internet File System (CIFS) 171 .SH "Synopsis" 172 .fam C 173 .HP \w'\ 'u 174 \FCmount\&.cifs\F[] {service} {mount\-point} [\-o\ options] 175 .fam 18 176 .SH "DESCRIPTION" 19 177 .PP 20 178 This tool is part of the 21 179 \fBsamba\fR(7) 22 suite\ .23 .PP 24 mount\ .cifs mounts a Linux CIFS filesystem\. It is usually invoked indirectly by the180 suite\&. 181 .PP 182 mount\&.cifs mounts a Linux CIFS filesystem\&. It is usually invoked indirectly by the 25 183 \fBmount\fR(8) 26 command when using the "\-t cifs" option\. This command only works in Linux, and the kernel must support the cifs filesystem\. The CIFS protocol is the successor to the SMB protocol and is supported by most Windows servers and many other commercial servers and Network Attached Storage appliances as well as by the popular Open Source server Samba\. 27 .PP 28 The mount\.cifs utility attaches the UNC name (exported network resource) to the local directory 29 \fImount\-point\fR\. It is possible to set the mode for mount\.cifs to setuid root to allow non\-root users to mount shares to directories for which they have write permission\. 184 command when using the "\-t cifs" option\&. This command only works in Linux, and the kernel must support the cifs filesystem\&. The CIFS protocol is the successor to the SMB protocol and is supported by most Windows servers and many other commercial servers and Network Attached Storage appliances as well as by the popular Open Source server Samba\&. 185 .PP 186 The mount\&.cifs utility attaches the UNC name (exported network resource) specified as 187 \fIservice\fR 188 (using //server/share syntax, where "server" is the server name or IP address and "share" is the name of the share) to the local directory 189 \fImount\-point\fR\&. It is possible to set the mode for mount\&.cifs to setuid root to allow non\-root users to mount shares to directories for which they have write permission\&. 30 190 .PP 31 191 Options to 32 \fImount\ .cifs\fR33 are specified as a comma\-separated list of key=value pairs\ . It is possible to send options other than those listed here, assuming that the cifs filesystem kernel module (cifs\.ko) supports them\. Unrecognized cifs mount options passed to the cifs vfs kernel code will be logged to the kernel log\.34 .PP 35 \fImount\ .cifs\fR36 causes the cifs vfs to launch a thread named cifsd\ . After mounting it keeps running until the mounted resource is unmounted (usually via the umount utility)\.192 \fImount\&.cifs\fR 193 are specified as a comma\-separated list of key=value pairs\&. It is possible to send options other than those listed here, assuming that the cifs filesystem kernel module (cifs\&.ko) supports them\&. Unrecognized cifs mount options passed to the cifs vfs kernel code will be logged to the kernel log\&. 194 .PP 195 \fImount\&.cifs\fR 196 causes the cifs vfs to launch a thread named cifsd\&. After mounting it keeps running until the mounted resource is unmounted (usually via the umount utility)\&. 37 197 .SH "OPTIONS" 38 198 .PP 39 199 user=\fIarg\fR 40 200 .RS 4 41 specifies the username to connect as\ . If this is not given, then the environment variable201 specifies the username to connect as\&. If this is not given, then the environment variable 42 202 \fIUSER\fR 43 is used\. This option can also take the form "user%password" or "workgroup/user" or "workgroup/user%password" to allow the password and workgroup to be specified as part of the username\. 44 .sp 203 is used\&. This option can also take the form "user%password" or "workgroup/user" or "workgroup/user%password" to allow the password and workgroup to be specified as part of the username\&. 204 .if n \{\ 205 .sp 206 .\} 207 .RS 4 208 .BM yellow 45 209 .it 1 an-trap 46 210 .nr an-no-space-flag 1 47 211 .nr an-break-flag 1 48 212 .br 49 Note 213 .ps +1 214 \fBNote\fR 215 .ps -1 216 .br 50 217 The cifs vfs accepts the parameter 51 218 \fIuser=\fR, or for users familiar with smbfs it accepts the longer form of the parameter 52 \fIusername=\fR\ . Similarly the longer smbfs style parameter names may be accepted as synonyms for the shorter cifs parameters219 \fIusername=\fR\&. Similarly the longer smbfs style parameter names may be accepted as synonyms for the shorter cifs parameters 53 220 \fIpass=\fR,\fIdom=\fR 54 221 and 55 \fIcred=\fR\. 222 \fIcred=\fR\&. 223 .sp .5v 224 .EM yellow 225 .RE 56 226 .RE 57 227 .PP 58 228 password=\fIarg\fR 59 229 .RS 4 60 specifies the CIFS password\ . If this option is not given then the environment variable230 specifies the CIFS password\&. If this option is not given then the environment variable 61 231 \fIPASSWD\fR 62 is used\ . If the password is not specified directly or indirectly via an argument to mount,63 \fImount\ .cifs\fR64 will prompt for a password, unless the guest option is specified\ .65 .sp 66 Note that a password which contains the delimiter character (i\ .e\. a comma \',\') will fail to be parsed correctly on the command line\. However, the same password defined in the PASSWD environment variable or via a credentials file (see below) or entered at the password prompt will be read correctly\.232 is used\&. If the password is not specified directly or indirectly via an argument to mount, 233 \fImount\&.cifs\fR 234 will prompt for a password, unless the guest option is specified\&. 235 .sp 236 Note that a password which contains the delimiter character (i\&.e\&. a comma \',\') will fail to be parsed correctly on the command line\&. However, the same password defined in the PASSWD environment variable or via a credentials file (see below) or entered at the password prompt will be read correctly\&. 67 237 .RE 68 238 .PP 69 239 credentials=\fIfilename\fR 70 240 .RS 4 71 specifies a file that contains a username and/or password\. The format of the file is: 72 .sp 73 .RS 4 241 specifies a file that contains a username and/or password and optionally the name of the workgroup\&. The format of the file is: 242 .sp 243 .if n \{\ 244 .RS 4 245 .\} 246 .fam C 247 .ps -1 74 248 .nf 249 .if t \{\ 250 .sp -1 251 .\} 252 .BB lightgray adjust-for-leading-newline 253 .sp -1 254 75 255 username=\fIvalue\fR 76 256 password=\fIvalue\fR 257 workgroup=\fIvalue\fR 258 .EB lightgray adjust-for-leading-newline 259 .if t \{\ 260 .sp 1 261 .\} 77 262 .fi 78 .RE 263 .fam 264 .ps +1 265 .if n \{\ 266 .RE 267 .\} 268 .sp 79 269 This is preferred over having passwords in plaintext in a shared file, such as 80 \ fI/etc/fstab\fR\. Be sure to protect any credentials file properly\.270 \FC/etc/fstab\F[]\&. Be sure to protect any credentials file properly\&. 81 271 .RE 82 272 .PP 83 273 uid=\fIarg\fR 84 274 .RS 4 85 sets the uid that will own all files on the mounted filesystem\ . It may be specified as either a username or a numeric uid\. For mounts to servers which do support the CIFS Unix extensions, such as a properly configured Samba server, the server provides the uid, gid and mode so this parameter should not be specified unless the server and client uid and gid numbering differ\. If the server and client are in the same domain (e\.g\. running winbind or nss_ldap) and the server supports the Unix Extensions then the uid and gid can be retrieved from the server (and uid and gid would not have to be specifed on the mount\. For servers which do not support the CIFS Unix extensions, the default uid (and gid) returned on lookup of existing files will be the uid (gid) of the person who executed the mount (root, except when mount\.cifs is configured setuid for user mounts) unless the "uid=" (gid) mount option is specified\. For the uid (gid) of newly created files and directories, ie files created since the last mount of the server share, the expected uid (gid) is cached as long as the inode remains in memory on the client\. Also note that permission checks (authorization checks) on accesses to a file occur at the server, but there are cases in which an administrator may want to restrict at the client as well\. For those servers which do not report a uid/gid owner (such as Windows), permissions can also be checked at the client, and a crude form of client side permission checking can be enabled by specifying file_mode and dir_mode on the client\. Note that the mount\.cifs helper must be at version 1\.10 or higher to support specifying the uid (or gid) in non\-numeric form\.275 sets the uid that will own all files on the mounted filesystem\&. It may be specified as either a username or a numeric uid\&. For mounts to servers which do support the CIFS Unix extensions, such as a properly configured Samba server, the server provides the uid, gid and mode so this parameter should not be specified unless the server and client uid and gid numbering differ\&. If the server and client are in the same domain (e\&.g\&. running winbind or nss_ldap) and the server supports the Unix Extensions then the uid and gid can be retrieved from the server (and uid and gid would not have to be specifed on the mount\&. For servers which do not support the CIFS Unix extensions, the default uid (and gid) returned on lookup of existing files will be the uid (gid) of the person who executed the mount (root, except when mount\&.cifs is configured setuid for user mounts) unless the "uid=" (gid) mount option is specified\&. For the uid (gid) of newly created files and directories, ie files created since the last mount of the server share, the expected uid (gid) is cached as long as the inode remains in memory on the client\&. Also note that permission checks (authorization checks) on accesses to a file occur at the server, but there are cases in which an administrator may want to restrict at the client as well\&. For those servers which do not report a uid/gid owner (such as Windows), permissions can also be checked at the client, and a crude form of client side permission checking can be enabled by specifying file_mode and dir_mode on the client\&. Note that the mount\&.cifs helper must be at version 1\&.10 or higher to support specifying the uid (or gid) in non\-numeric form\&. 86 276 .RE 87 277 .PP 88 278 gid=\fIarg\fR 89 279 .RS 4 90 sets the gid that will own all files on the mounted filesystem\ . It may be specified as either a groupname or a numeric gid\. For other considerations see the description of uid above\.280 sets the gid that will own all files on the mounted filesystem\&. It may be specified as either a groupname or a numeric gid\&. For other considerations see the description of uid above\&. 91 281 .RE 92 282 .PP 93 283 port=\fIarg\fR 94 284 .RS 4 95 sets the port number on the server to attempt to contact to negotiate CIFS support\ . If the CIFS server is not listening on this port or if it is not specified, the default ports will be tried i\.e\. port 445 is tried and if no response then port 139 is tried\.285 sets the port number on the server to attempt to contact to negotiate CIFS support\&. If the CIFS server is not listening on this port or if it is not specified, the default ports will be tried i\&.e\&. port 445 is tried and if no response then port 139 is tried\&. 96 286 .RE 97 287 .PP 98 288 servern=\fIarg\fR 99 289 .RS 4 100 Specify the server netbios name (RFC1001 name) to use when attempting to setup a session to the server\ . Although rarely needed for mounting to newer servers, this option is needed for mounting to some older servers (such as OS/2 or Windows 98 and Windows ME) since when connecting over port 139 they, unlike most newer servers, do not support a default server name\. A server name can be up to 15 characters long and is usually uppercased\.290 Specify the server netbios name (RFC1001 name) to use when attempting to setup a session to the server\&. Although rarely needed for mounting to newer servers, this option is needed for mounting to some older servers (such as OS/2 or Windows 98 and Windows ME) since when connecting over port 139 they, unlike most newer servers, do not support a default server name\&. A server name can be up to 15 characters long and is usually uppercased\&. 101 291 .RE 102 292 .PP 103 293 netbiosname=\fIarg\fR 104 294 .RS 4 105 When mounting to servers via port 139, specifies the RFC1001 source name to use to represent the client netbios machine name when doing the RFC1001 netbios session initialize\ .295 When mounting to servers via port 139, specifies the RFC1001 source name to use to represent the client netbios machine name when doing the RFC1001 netbios session initialize\&. 106 296 .RE 107 297 .PP 108 298 file_mode=\fIarg\fR 109 299 .RS 4 110 If the server does not support the CIFS Unix extensions this overrides the default file mode\ .300 If the server does not support the CIFS Unix extensions this overrides the default file mode\&. 111 301 .RE 112 302 .PP 113 303 dir_mode=\fIarg\fR 114 304 .RS 4 115 If the server does not support the CIFS Unix extensions this overrides the default mode for directories\ .305 If the server does not support the CIFS Unix extensions this overrides the default mode for directories\&. 116 306 .RE 117 307 .PP 118 308 ip=\fIarg\fR 119 309 .RS 4 120 sets the destination IP address\ . This option is set automatically if the server name portion of the requested UNC name can be resolved so rarely needs to be specified by the user\.310 sets the destination IP address\&. This option is set automatically if the server name portion of the requested UNC name can be resolved so rarely needs to be specified by the user\&. 121 311 .RE 122 312 .PP … … 133 323 iocharset 134 324 .RS 4 135 Charset used to convert local path names to and from Unicode\ . Unicode is used by default for network path names if the server supports it\. If iocharset is not specified then the nls_default specified during the local client kernel build will be used\. If server does not support Unicode, this parameter is unused\.325 Charset used to convert local path names to and from Unicode\&. Unicode is used by default for network path names if the server supports it\&. If iocharset is not specified then the nls_default specified during the local client kernel build will be used\&. If server does not support Unicode, this parameter is unused\&. 136 326 .RE 137 327 .PP … … 148 338 setuids 149 339 .RS 4 150 If the CIFS Unix extensions are negotiated with the server the client will attempt to set the effective uid and gid of the local process on newly created files, directories, and devices (create, mkdir, mknod)\ . If the CIFS Unix Extensions are not negotiated, for newly created files and directories instead of using the default uid and gid specified on the the mount, cache the new file\'s uid and gid locally which means that the uid for the file can change when the inode is reloaded (or the user remounts the share)\.340 If the CIFS Unix extensions are negotiated with the server the client will attempt to set the effective uid and gid of the local process on newly created files, directories, and devices (create, mkdir, mknod)\&. If the CIFS Unix Extensions are not negotiated, for newly created files and directories instead of using the default uid and gid specified on the the mount, cache the new file\'s uid and gid locally which means that the uid for the file can change when the inode is reloaded (or the user remounts the share)\&. 151 341 .RE 152 342 .PP 153 343 nosetuids 154 344 .RS 4 155 The client will not attempt to set the uid and gid on on newly created files, directories, and devices (create, mkdir, mknod) which will result in the server setting the uid and gid to the default (usually the server uid of the user who mounted the share)\ . Letting the server (rather than the client) set the uid and gid is the default\.If the CIFS Unix Extensions are not negotiated then the uid and gid for new files will appear to be the uid (gid) of the mounter or the uid (gid) parameter specified on the mount\.345 The client will not attempt to set the uid and gid on on newly created files, directories, and devices (create, mkdir, mknod) which will result in the server setting the uid and gid to the default (usually the server uid of the user who mounted the share)\&. Letting the server (rather than the client) set the uid and gid is the default\&.If the CIFS Unix Extensions are not negotiated then the uid and gid for new files will appear to be the uid (gid) of the mounter or the uid (gid) parameter specified on the mount\&. 156 346 .RE 157 347 .PP 158 348 perm 159 349 .RS 4 160 Client does permission checks (vfs_permission check of uid and gid of the file against the mode and desired operation), Note that this is in addition to the normal ACL check on the target machine done by the server software\ . Client permission checking is enabled by default\.350 Client does permission checks (vfs_permission check of uid and gid of the file against the mode and desired operation), Note that this is in addition to the normal ACL check on the target machine done by the server software\&. Client permission checking is enabled by default\&. 161 351 .RE 162 352 .PP 163 353 noperm 164 354 .RS 4 165 Client does not do permission checks\ . This can expose files on this mount to access by other users on the local client system\. It is typically only needed when the server supports the CIFS Unix Extensions but the UIDs/GIDs on the client and server system do not match closely enough to allow access by the user doing the mount\. Note that this does not affect the normal ACL check on the target machine done by the server software (of the server ACL against the user name provided at mount time)\.355 Client does not do permission checks\&. This can expose files on this mount to access by other users on the local client system\&. It is typically only needed when the server supports the CIFS Unix Extensions but the UIDs/GIDs on the client and server system do not match closely enough to allow access by the user doing the mount\&. Note that this does not affect the normal ACL check on the target machine done by the server software (of the server ACL against the user name provided at mount time)\&. 166 356 .RE 167 357 .PP 168 358 directio 169 359 .RS 4 170 Do not do inode data caching on files opened on this mount\ . This precludes mmaping files on this mount\. In some cases with fast networks and little or no caching benefits on the client (e\.g\. when the application is doing large sequential reads bigger than page size without rereading the same data) this can provide better performance than the default behavior which caches reads (readahead) and writes (writebehind) through the local Linux client pagecache if oplock (caching token) is granted and held\. Note that direct allows write operations larger than page size to be sent to the server\. On some kernels this requires the cifs\.ko module to be built with the CIFS_EXPERIMENTAL configure option\.360 Do not do inode data caching on files opened on this mount\&. This precludes mmaping files on this mount\&. In some cases with fast networks and little or no caching benefits on the client (e\&.g\&. when the application is doing large sequential reads bigger than page size without rereading the same data) this can provide better performance than the default behavior which caches reads (readahead) and writes (writebehind) through the local Linux client pagecache if oplock (caching token) is granted and held\&. Note that direct allows write operations larger than page size to be sent to the server\&. On some kernels this requires the cifs\&.ko module to be built with the CIFS_EXPERIMENTAL configure option\&. 171 361 .RE 172 362 .PP 173 363 mapchars 174 364 .RS 4 175 Translate six of the seven reserved characters (not backslash, but including the colon, question mark, pipe, asterik, greater than and less than characters) to the remap range (above 0xF000), which also allows the CIFS client to recognize files created with such characters by Windows\'s POSIX emulation\ . This can also be useful when mounting to most versions of Samba (which also forbids creating and opening files whose names contain any of these seven characters)\. This has no effect if the server does not support Unicode on the wire\.365 Translate six of the seven reserved characters (not backslash, but including the colon, question mark, pipe, asterik, greater than and less than characters) to the remap range (above 0xF000), which also allows the CIFS client to recognize files created with such characters by Windows\'s POSIX emulation\&. This can also be useful when mounting to most versions of Samba (which also forbids creating and opening files whose names contain any of these seven characters)\&. This has no effect if the server does not support Unicode on the wire\&. 176 366 .RE 177 367 .PP … … 193 383 hard 194 384 .RS 4 195 The program accessing a file on the cifs mounted file system will hang when the server crashes\ .385 The program accessing a file on the cifs mounted file system will hang when the server crashes\&. 196 386 .RE 197 387 .PP 198 388 soft 199 389 .RS 4 200 (default) The program accessing a file on the cifs mounted file system will not hang when the server crashes and will return errors to the user application\ .390 (default) The program accessing a file on the cifs mounted file system will not hang when the server crashes and will return errors to the user application\&. 201 391 .RE 202 392 .PP 203 393 noacl 204 394 .RS 4 205 Do not allow POSIX ACL operations even if server would support them\ .206 .sp 207 The CIFS client can get and set POSIX ACLs (getfacl, setfacl) to Samba servers version 3\ .10 and later\. Setting POSIX ACLs requires enabling both XATTR and then POSIX support in the CIFS configuration options when building the cifs module\. POSIX ACL support can be disabled on a per mount basic by specifying "noacl" on mount\.395 Do not allow POSIX ACL operations even if server would support them\&. 396 .sp 397 The CIFS client can get and set POSIX ACLs (getfacl, setfacl) to Samba servers version 3\&.10 and later\&. Setting POSIX ACLs requires enabling both XATTR and then POSIX support in the CIFS configuration options when building the cifs module\&. POSIX ACL support can be disabled on a per mount basic by specifying "noacl" on mount\&. 208 398 .RE 209 399 .PP 210 400 nocase 211 401 .RS 4 212 Request case insensitive path name matching (case sensitive is the default if the server suports it)\ .402 Request case insensitive path name matching (case sensitive is the default if the server suports it)\&. 213 403 .RE 214 404 .PP 215 405 sec= 216 406 .RS 4 217 Security mode\ . Allowed values are:407 Security mode\&. Allowed values are: 218 408 .sp 219 409 .RS 4 … … 294 484 .sp 295 485 .RE 296 [NB This [sec parameter] is under development and expected to be available in cifs kernel module 1\ .40 and later]486 [NB This [sec parameter] is under development and expected to be available in cifs kernel module 1\&.40 and later] 297 487 .RE 298 488 .PP 299 489 nobrl 300 490 .RS 4 301 Do not send byte range lock requests to the server\ . This is necessary for certain applications that break with cifs style mandatory byte range locks (and most cifs servers do not yet support requesting advisory byte range locks)\.491 Do not send byte range lock requests to the server\&. This is necessary for certain applications that break with cifs style mandatory byte range locks (and most cifs servers do not yet support requesting advisory byte range locks)\&. 302 492 .RE 303 493 .PP 304 494 sfu 305 495 .RS 4 306 When the CIFS Unix Extensions are not negotiated, attempt to create device files and fifos in a format compatible with Services for Unix (SFU)\ . In addition retrieve bits 10\-12 of the mode via the SETFILEBITS extended attribute (as SFU does)\. In the future the bottom 9 bits of the mode mode also will be emulated using queries of the security descriptor (ACL)\. [NB: requires version 1\.39 or later of the CIFS VFS\. To recognize symlinks and be able to create symlinks in an SFU interoperable form requires version 1\.40 or later of the CIFS VFS kernel module\.496 When the CIFS Unix Extensions are not negotiated, attempt to create device files and fifos in a format compatible with Services for Unix (SFU)\&. In addition retrieve bits 10\-12 of the mode via the SETFILEBITS extended attribute (as SFU does)\&. In the future the bottom 9 bits of the mode mode also will be emulated using queries of the security descriptor (ACL)\&. [NB: requires version 1\&.39 or later of the CIFS VFS\&. To recognize symlinks and be able to create symlinks in an SFU interoperable form requires version 1\&.40 or later of the CIFS VFS kernel module\&. 307 497 .RE 308 498 .PP 309 499 serverino 310 500 .RS 4 311 Use inode numbers (unique persistent file identifiers) returned by the server instead of automatically generating temporary inode numbers on the client\ . Although server inode numbers make it easier to spot hardlinked files (as they will have the same inode numbers) and inode numbers may be persistent (which is userful for some sofware), the server does not guarantee that the inode numbers are unique if multiple server side mounts are exported under a single share (since inode numbers on the servers might not be unique if multiple filesystems are mounted under the same shared higher level directory)\. Note that not all servers support returning server inode numbers, although those that support the CIFS Unix Extensions, and Windows 2000 and later servers typically do support this (although not necessarily on every local server filesystem)\. Parameter has no effect if the server lacks support for returning inode numbers or equivalent\.501 Use inode numbers (unique persistent file identifiers) returned by the server instead of automatically generating temporary inode numbers on the client\&. Although server inode numbers make it easier to spot hardlinked files (as they will have the same inode numbers) and inode numbers may be persistent (which is userful for some sofware), the server does not guarantee that the inode numbers are unique if multiple server side mounts are exported under a single share (since inode numbers on the servers might not be unique if multiple filesystems are mounted under the same shared higher level directory)\&. Note that not all servers support returning server inode numbers, although those that support the CIFS Unix Extensions, and Windows 2000 and later servers typically do support this (although not necessarily on every local server filesystem)\&. Parameter has no effect if the server lacks support for returning inode numbers or equivalent\&. 312 502 .RE 313 503 .PP 314 504 noserverino 315 505 .RS 4 316 client generates inode numbers (rather than using the actual one from the server) by default\ .506 client generates inode numbers (rather than using the actual one from the server) by default\&. 317 507 .RE 318 508 .PP 319 509 nouser_xattr 320 510 .RS 4 321 (default) Do not allow getfattr/setfattr to get/set xattrs, even if server would support it otherwise\ .511 (default) Do not allow getfattr/setfattr to get/set xattrs, even if server would support it otherwise\&. 322 512 .RE 323 513 .PP 324 514 rsize=\fIarg\fR 325 515 .RS 4 326 default network read size (usually 16K)\ . The client currently can not use rsize larger than CIFSMaxBufSize\. CIFSMaxBufSize defaults to 16K and may be changed (from 8K to the maximum kmalloc size allowed by your kernel) at module install time for cifs\.ko\. Setting CIFSMaxBufSize to a very large value will cause cifs to use more memory and may reduce performance in some cases\. To use rsize greater than 127K (the original cifs protocol maximum) also requires that the server support a new Unix Capability flag (for very large read) which some newer servers (e\.g\. Samba 3\.0\.26 or later) do\. rsize can be set from a minimum of 2048 to a maximum of 130048 (127K or CIFSMaxBufSize, whichever is smaller)516 default network read size (usually 16K)\&. The client currently can not use rsize larger than CIFSMaxBufSize\&. CIFSMaxBufSize defaults to 16K and may be changed (from 8K to the maximum kmalloc size allowed by your kernel) at module install time for cifs\&.ko\&. Setting CIFSMaxBufSize to a very large value will cause cifs to use more memory and may reduce performance in some cases\&. To use rsize greater than 127K (the original cifs protocol maximum) also requires that the server support a new Unix Capability flag (for very large read) which some newer servers (e\&.g\&. Samba 3\&.0\&.26 or later) do\&. rsize can be set from a minimum of 2048 to a maximum of 130048 (127K or CIFSMaxBufSize, whichever is smaller) 327 517 .RE 328 518 .PP … … 334 524 \-\-verbose 335 525 .RS 4 336 Print additional debugging information for the mount\ . Note that this parameter must be specified before the \-o\. For example:526 Print additional debugging information for the mount\&. Note that this parameter must be specified before the \-o\&. For example: 337 527 .sp 338 528 mount \-t cifs //server/share /mnt \-\-verbose \-o user=username … … 340 530 .SH "SERVICE FORMATTING AND DELIMITERS" 341 531 .PP 342 It\'s generally preferred to use forward slashes (/) as a delimiter in service names\ . They are considered to be the "universal delimiter" since they are generally not allowed to be embedded within path components on Windows machines and the client can convert them to blackslashes (\e) unconditionally\. Conversely, backslash characters are allowed by POSIX to be part of a path component, and can\'t be automatically converted in the same way\.343 .PP 344 mount\ .cifs will attempt to convert backslashes to forward slashes where it\'s able to do so, but it cannot do so in any path component following the sharename\.532 It\'s generally preferred to use forward slashes (/) as a delimiter in service names\&. They are considered to be the "universal delimiter" since they are generally not allowed to be embedded within path components on Windows machines and the client can convert them to blackslashes (\e) unconditionally\&. Conversely, backslash characters are allowed by POSIX to be part of a path component, and can\'t be automatically converted in the same way\&. 533 .PP 534 mount\&.cifs will attempt to convert backslashes to forward slashes where it\'s able to do so, but it cannot do so in any path component following the sharename\&. 345 535 .SH "ENVIRONMENT VARIABLES" 346 536 .PP 347 537 The variable 348 538 \fIUSER\fR 349 may contain the username of the person to be used to authenticate to the server\ . The variable can be used to set both username and password by using the format username%password\.539 may contain the username of the person to be used to authenticate to the server\&. The variable can be used to set both username and password by using the format username%password\&. 350 540 .PP 351 541 The variable 352 542 \fIPASSWD\fR 353 may contain the password of the person using the client\ .543 may contain the password of the person using the client\&. 354 544 .PP 355 545 The variable 356 546 \fIPASSWD_FILE\fR 357 may contain the pathname of a file to read the password from\ . A single line of input is read and used as the password\.547 may contain the pathname of a file to read the password from\&. A single line of input is read and used as the password\&. 358 548 .SH "NOTES" 359 549 .PP 360 This command may be used only by root, unless installed setuid, in which case the noeexec and nosuid mount flags are enabled\ .550 This command may be used only by root, unless installed setuid, in which case the noeexec and nosuid mount flags are enabled\&. 361 551 .SH "CONFIGURATION" 362 552 .PP 363 The primary mechanism for making configuration changes and for reading debug information for the cifs vfs is via the Linux /proc filesystem\ . In the directory364 \ fI/proc/fs/cifs\fR365 are various configuration files and pseudo files which can display debug information\ . There are additional startup options such as maximum buffer size and number of buffers which only may be set when the kernel cifs vfs (cifs\.ko module) is loaded\. These can be seen by running the modinfo utility against the file cifs\.ko which will list the options that may be passed to cifs during module installation (device driver load)\. For more information see the kernel file366 \ fIfs/cifs/README\fR\.553 The primary mechanism for making configuration changes and for reading debug information for the cifs vfs is via the Linux /proc filesystem\&. In the directory 554 \FC/proc/fs/cifs\F[] 555 are various configuration files and pseudo files which can display debug information\&. There are additional startup options such as maximum buffer size and number of buffers which only may be set when the kernel cifs vfs (cifs\&.ko module) is loaded\&. These can be seen by running the modinfo utility against the file cifs\&.ko which will list the options that may be passed to cifs during module installation (device driver load)\&. For more information see the kernel file 556 \FCfs/cifs/README\F[]\&. 367 557 .SH "BUGS" 368 558 .PP 369 Mounting using the CIFS URL specification is currently not supported\ .370 .PP 371 The credentials file does not handle usernames or passwords with leading space\ .372 .PP 373 Note that the typical response to a bug report is a suggestion to try the latest version first\ . So please try doing that first, and always include which versions you use of relevant software when reporting bugs (minimum: mount\.cifs (try mount\.cifs \-V), kernel (see /proc/version) and server type you are trying to contact\.559 Mounting using the CIFS URL specification is currently not supported\&. 560 .PP 561 The credentials file does not handle usernames or passwords with leading space\&. 562 .PP 563 Note that the typical response to a bug report is a suggestion to try the latest version first\&. So please try doing that first, and always include which versions you use of relevant software when reporting bugs (minimum: mount\&.cifs (try mount\&.cifs \-V), kernel (see /proc/version) and server type you are trying to contact\&. 374 564 .SH "VERSION" 375 565 .PP 376 This man page is correct for version 1\ .52 of the cifs vfs filesystem (roughly Linux kernel 2\.6\.24)\.566 This man page is correct for version 1\&.52 of the cifs vfs filesystem (roughly Linux kernel 2\&.6\&.24)\&. 377 567 .SH "SEE ALSO" 378 568 .PP 379 Documentation/filesystems/cifs\ .txt and fs/cifs/README in the linux kernel source tree may contain additional options and information\.569 Documentation/filesystems/cifs\&.txt and fs/cifs/README in the linux kernel source tree may contain additional options and information\&. 380 570 .PP 381 571 \fBumount.cifs\fR(8) … … 384 574 Steve French 385 575 .PP 386 The syntax and manpage were loosely based on that of smbmount\ . It was converted to Docbook/XML by Jelmer Vernooij\.576 The syntax and manpage were loosely based on that of smbmount\&. It was converted to Docbook/XML by Jelmer Vernooij\&. 387 577 .PP 388 578 The maintainer of the Linux cifs vfs and the userspace tool 389 \fImount\ .cifs\fR579 \fImount\&.cifs\fR 390 580 is 391 Steve French\ . The581 Steve French\&. The 392 582 Linux CIFS Mailing list 393 is the preferred place to ask questions regarding these programs\ .583 is the preferred place to ask questions regarding these programs\&.
Note:
See TracChangeset
for help on using the changeset viewer.