Changeset 286 for branches/samba-3.0/docs/manpages/mount.cifs.8
- Timestamp:
- Jun 24, 2009, 5:09:21 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/docs/manpages/mount.cifs.8
r158 r286 1 1 .\" Title: mount.cifs 2 .\" Author: 3 .\" Generator: DocBook XSL Stylesheets v1.7 3.2<http://docbook.sf.net/>4 .\" Date: 0 8/25/20082 .\" Author: [see the "AUTHOR" section] 3 .\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/> 4 .\" Date: 06/22/2009 5 5 .\" Manual: System Administration tools 6 6 .\" Source: Samba 3.0 7 .\" Language: English 7 8 .\" 8 .TH "MOUNT\.CIFS" "8" "08/25/2008" "Samba 3\.0" "System Administration tools" 9 .TH "MOUNT\&.CIFS" "8" "06/22/2009" "Samba 3\&.0" "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 directory29 \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) to the local directory 187 \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 188 .PP 31 189 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)\.190 \fImount\&.cifs\fR 191 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\&. 192 .PP 193 \fImount\&.cifs\fR 194 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 195 .SH "OPTIONS" 38 196 .PP 39 197 user=\fIarg\fR 40 198 .RS 4 41 specifies the username to connect as\ . If this is not given, then the environment variable199 specifies the username to connect as\&. If this is not given, then the environment variable 42 200 \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 201 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\&. 202 .if n \{\ 203 .sp 204 .\} 205 .RS 4 206 .BM yellow 45 207 .it 1 an-trap 46 208 .nr an-no-space-flag 1 47 209 .nr an-break-flag 1 48 210 .br 49 Note 211 .ps +1 212 \fBNote\fR 213 .ps -1 214 .br 50 215 The cifs vfs accepts the parameter 51 216 \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 parameters217 \fIusername=\fR\&. Similarly the longer smbfs style parameter names may be accepted as synonyms for the shorter cifs parameters 53 218 \fIpass=\fR,\fIdom=\fR 54 219 and 55 \fIcred=\fR\. 220 \fIcred=\fR\&. 221 .sp .5v 222 .EM yellow 223 .RE 56 224 .RE 57 225 .PP 58 226 password=\fIarg\fR 59 227 .RS 4 60 specifies the CIFS password\ . If this option is not given then the environment variable228 specifies the CIFS password\&. If this option is not given then the environment variable 61 229 \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\.230 is used\&. If the password is not specified directly or indirectly via an argument to mount, 231 \fImount\&.cifs\fR 232 will prompt for a password, unless the guest option is specified\&. 233 .sp 234 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 235 .RE 68 236 .PP 69 237 credentials=\fIfilename\fR 70 238 .RS 4 71 specifies a file that contains a username and/or password\. The format of the file is: 72 .sp 73 .RS 4 239 specifies a file that contains a username and/or password and optionally the name of the workgroup\&. The format of the file is: 240 .sp 241 .if n \{\ 242 .RS 4 243 .\} 244 .fam C 245 .ps -1 74 246 .nf 247 .if t \{\ 248 .sp -1 249 .\} 250 .BB lightgray adjust-for-leading-newline 251 .sp -1 252 75 253 username=\fIvalue\fR 76 254 password=\fIvalue\fR 255 workgroup=\fIvalue\fR 256 .EB lightgray adjust-for-leading-newline 257 .if t \{\ 258 .sp 1 259 .\} 77 260 .fi 78 .RE 261 .fam 262 .ps +1 263 .if n \{\ 264 .RE 265 .\} 266 .sp 79 267 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\.268 \FC/etc/fstab\F[]\&. Be sure to protect any credentials file properly\&. 81 269 .RE 82 270 .PP 83 271 uid=\fIarg\fR 84 272 .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\.273 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 274 .RE 87 275 .PP 88 276 gid=\fIarg\fR 89 277 .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\.278 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 279 .RE 92 280 .PP 93 281 port=\fIarg\fR 94 282 .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\.283 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 284 .RE 97 285 .PP 98 286 servern=\fIarg\fR 99 287 .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\.288 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 289 .RE 102 290 .PP 103 291 netbiosname=\fIarg\fR 104 292 .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\ .293 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 294 .RE 107 295 .PP 108 296 file_mode=\fIarg\fR 109 297 .RS 4 110 If the server does not support the CIFS Unix extensions this overrides the default file mode\ .298 If the server does not support the CIFS Unix extensions this overrides the default file mode\&. 111 299 .RE 112 300 .PP 113 301 dir_mode=\fIarg\fR 114 302 .RS 4 115 If the server does not support the CIFS Unix extensions this overrides the default mode for directories\ .303 If the server does not support the CIFS Unix extensions this overrides the default mode for directories\&. 116 304 .RE 117 305 .PP 118 306 ip=\fIarg\fR 119 307 .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\.308 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 309 .RE 122 310 .PP … … 133 321 iocharset 134 322 .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\.323 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 324 .RE 137 325 .PP … … 148 336 setuids 149 337 .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)\.338 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 339 .RE 152 340 .PP 153 341 nosetuids 154 342 .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\.343 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 344 .RE 157 345 .PP 158 346 perm 159 347 .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\.348 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 349 .RE 162 350 .PP 163 351 noperm 164 352 .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)\.353 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 354 .RE 167 355 .PP 168 356 directio 169 357 .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\.358 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 359 .RE 172 360 .PP 173 361 mapchars 174 362 .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\.363 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 364 .RE 177 365 .PP … … 193 381 hard 194 382 .RS 4 195 The program accessing a file on the cifs mounted file system will hang when the server crashes\ .383 The program accessing a file on the cifs mounted file system will hang when the server crashes\&. 196 384 .RE 197 385 .PP 198 386 soft 199 387 .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\ .388 (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 389 .RE 202 390 .PP 203 391 noacl 204 392 .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\.393 Do not allow POSIX ACL operations even if server would support them\&. 394 .sp 395 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 396 .RE 209 397 .PP 210 398 nocase 211 399 .RS 4 212 Request case insensitive path name matching (case sensitive is the default if the server suports it)\ .400 Request case insensitive path name matching (case sensitive is the default if the server suports it)\&. 213 401 .RE 214 402 .PP 215 403 sec= 216 404 .RS 4 217 Security mode\ . Allowed values are:405 Security mode\&. Allowed values are: 218 406 .sp 219 407 .RS 4 … … 294 482 .sp 295 483 .RE 296 [NB This [sec parameter] is under development and expected to be available in cifs kernel module 1\ .40 and later]484 [NB This [sec parameter] is under development and expected to be available in cifs kernel module 1\&.40 and later] 297 485 .RE 298 486 .PP 299 487 nobrl 300 488 .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)\.489 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 490 .RE 303 491 .PP 304 492 sfu 305 493 .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\.494 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 495 .RE 308 496 .PP 309 497 serverino 310 498 .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\.499 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 500 .RE 313 501 .PP 314 502 noserverino 315 503 .RS 4 316 client generates inode numbers (rather than using the actual one from the server) by default\ .504 client generates inode numbers (rather than using the actual one from the server) by default\&. 317 505 .RE 318 506 .PP 319 507 nouser_xattr 320 508 .RS 4 321 (default) Do not allow getfattr/setfattr to get/set xattrs, even if server would support it otherwise\ .509 (default) Do not allow getfattr/setfattr to get/set xattrs, even if server would support it otherwise\&. 322 510 .RE 323 511 .PP 324 512 rsize=\fIarg\fR 325 513 .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)514 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 515 .RE 328 516 .PP … … 334 522 \-\-verbose 335 523 .RS 4 336 Print additional debugging information for the mount\ . Note that this parameter must be specified before the \-o\. For example:524 Print additional debugging information for the mount\&. Note that this parameter must be specified before the \-o\&. For example: 337 525 .sp 338 526 mount \-t cifs //server/share /mnt \-\-verbose \-o user=username … … 340 528 .SH "SERVICE FORMATTING AND DELIMITERS" 341 529 .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\.530 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\&. 531 .PP 532 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 533 .SH "ENVIRONMENT VARIABLES" 346 534 .PP 347 535 The variable 348 536 \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\.537 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 538 .PP 351 539 The variable 352 540 \fIPASSWD\fR 353 may contain the password of the person using the client\ .541 may contain the password of the person using the client\&. 354 542 .PP 355 543 The variable 356 544 \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\.545 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 546 .SH "NOTES" 359 547 .PP 360 This command may be used only by root, unless installed setuid, in which case the noeexec and nosuid mount flags are enabled\ .548 This command may be used only by root, unless installed setuid, in which case the noeexec and nosuid mount flags are enabled\&. 361 549 .SH "CONFIGURATION" 362 550 .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\.551 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 552 \FC/proc/fs/cifs\F[] 553 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 554 \FCfs/cifs/README\F[]\&. 367 555 .SH "BUGS" 368 556 .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\.557 Mounting using the CIFS URL specification is currently not supported\&. 558 .PP 559 The credentials file does not handle usernames or passwords with leading space\&. 560 .PP 561 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 562 .SH "VERSION" 375 563 .PP 376 This man page is correct for version 1\ .52 of the cifs vfs filesystem (roughly Linux kernel 2\.6\.24)\.564 This man page is correct for version 1\&.52 of the cifs vfs filesystem (roughly Linux kernel 2\&.6\&.24)\&. 377 565 .SH "SEE ALSO" 378 566 .PP 379 Documentation/filesystems/cifs\ .txt and fs/cifs/README in the linux kernel source tree may contain additional options and information\.567 Documentation/filesystems/cifs\&.txt and fs/cifs/README in the linux kernel source tree may contain additional options and information\&. 380 568 .PP 381 569 \fBumount.cifs\fR(8) … … 384 572 Steve French 385 573 .PP 386 The syntax and manpage were loosely based on that of smbmount\ . It was converted to Docbook/XML by Jelmer Vernooij\.574 The syntax and manpage were loosely based on that of smbmount\&. It was converted to Docbook/XML by Jelmer Vernooij\&. 387 575 .PP 388 576 The maintainer of the Linux cifs vfs and the userspace tool 389 \fImount\ .cifs\fR577 \fImount\&.cifs\fR 390 578 is 391 Steve French\ . The579 Steve French\&. The 392 580 Linux CIFS Mailing list 393 is the preferred place to ask questions regarding these programs\ .581 is the preferred place to ask questions regarding these programs\&.
Note:
See TracChangeset
for help on using the changeset viewer.