source: vendor/3.5.5/docs/manpages/mount.cifs.8

Last change on this file was 478, checked in by Silvan Scherrer, 15 years ago

Samba 3.5: vendor update to 3.5.4

File size: 27.2 KB
Line 
1.\" Title: mount.cifs
2.\" Author: [see the "AUTHOR" section]
3.\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
4.\" Date: 06/18/2010
5.\" Manual: System Administration tools
6.\" Source: Samba 3.5
7.\" Language: English
8.\"
9.TH "MOUNT\&.CIFS" "8" "06/18/2010" "Samba 3\&.5" "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.\" -----------------------------------------------------------------
162.\" disable hyphenation
163.nh
164.\" disable justification (adjust text to left margin only)
165.ad l
166.\" -----------------------------------------------------------------
167.\" * MAIN CONTENT STARTS HERE *
168.\" -----------------------------------------------------------------
169.SH "Name"
170mount.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
176.SH "DESCRIPTION"
177.PP
178This tool is part of the
179\fBsamba\fR(7)
180suite\&.
181.PP
182mount\&.cifs mounts a Linux CIFS filesystem\&. It is usually invoked indirectly by the
183\fBmount\fR(8)
184command 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
186The 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\&.
190.PP
191Options to
192\fImount\&.cifs\fR
193are 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
196causes 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)\&.
197.PP
198
199\fImount\&.cifs \-V\fR
200command displays the version of cifs mount helper\&.
201.PP
202
203\fImodinfo cifs\fR
204command displays the version of cifs module\&.
205.SH "OPTIONS"
206.PP
207user=\fIarg\fR
208.RS 4
209specifies the username to connect as\&. If this is not given, then the environment variable
210\fIUSER\fR
211is 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\&.
212.if n \{\
213.sp
214.\}
215.RS 4
216.BM yellow
217.it 1 an-trap
218.nr an-no-space-flag 1
219.nr an-break-flag 1
220.br
221.ps +1
222\fBNote\fR
223.ps -1
224.br
225The cifs vfs accepts the parameter
226\fIuser=\fR, or for users familiar with smbfs it accepts the longer form of the parameter
227\fIusername=\fR\&. Similarly the longer smbfs style parameter names may be accepted as synonyms for the shorter cifs parameters
228\fIpass=\fR,\fIdom=\fR
229and
230\fIcred=\fR\&.
231.sp .5v
232.EM yellow
233.RE
234.RE
235.PP
236password=\fIarg\fR
237.RS 4
238specifies the CIFS password\&. If this option is not given then the environment variable
239\fIPASSWD\fR
240is used\&. If the password is not specified directly or indirectly via an argument to mount,
241\fImount\&.cifs\fR
242will prompt for a password, unless the guest option is specified\&.
243.sp
244Note 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\&.
245.RE
246.PP
247credentials=\fIfilename\fR
248.RS 4
249specifies a file that contains a username and/or password and optionally the name of the workgroup\&. The format of the file is:
250.sp
251.if n \{\
252.RS 4
253.\}
254.fam C
255.ps -1
256.nf
257.if t \{\
258.sp -1
259.\}
260.BB lightgray adjust-for-leading-newline
261.sp -1
262
263 username=\fIvalue\fR
264 password=\fIvalue\fR
265 domain=\fIvalue\fR
266.EB lightgray adjust-for-leading-newline
267.if t \{\
268.sp 1
269.\}
270.fi
271.fam
272.ps +1
273.if n \{\
274.RE
275.\}
276.sp
277This is preferred over having passwords in plaintext in a shared file, such as
278\FC/etc/fstab\F[]\&. Be sure to protect any credentials file properly\&.
279.RE
280.PP
281uid=\fIarg\fR
282.RS 4
283sets the uid that will own all files or directories on the mounted filesystem when the server does not provide ownership information\&. It may be specified as either a username or a numeric uid\&. When not specified, the default is uid 0\&. The mount\&.cifs helper must be at version 1\&.10 or higher to support specifying the uid in non\-numeric form\&. See the section on FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS below for more information\&.
284.RE
285.PP
286forceuid
287.RS 4
288instructs the client to ignore any uid provided by the server for files and directories and to always assign the owner to be the value of the uid= option\&. See the section on FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS below for more information\&.
289.RE
290.PP
291gid=\fIarg\fR
292.RS 4
293sets the gid that will own all files or directories on the mounted filesystem when the server does not provide ownership information\&. It may be specified as either a groupname or a numeric gid\&. When not specified, the default is gid 0\&. The mount\&.cifs helper must be at version 1\&.10 or higher to support specifying the gid in non\-numeric form\&. See the section on FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS below for more information\&.
294.RE
295.PP
296forcegid
297.RS 4
298instructs the client to ignore any gid provided by the server for files and directories and to always assign the owner to be the value of the gid= option\&. See the section on FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS below for more information\&.
299.RE
300.PP
301port=\fIarg\fR
302.RS 4
303sets 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\&.
304.RE
305.PP
306servern=\fIarg\fR
307.RS 4
308Specify 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\&.
309.RE
310.PP
311netbiosname=\fIarg\fR
312.RS 4
313When 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\&.
314.RE
315.PP
316file_mode=\fIarg\fR
317.RS 4
318If the server does not support the CIFS Unix extensions this overrides the default file mode\&.
319.RE
320.PP
321dir_mode=\fIarg\fR
322.RS 4
323If the server does not support the CIFS Unix extensions this overrides the default mode for directories\&.
324.RE
325.PP
326ip=\fIarg\fR
327.RS 4
328sets 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\&.
329.RE
330.PP
331domain=\fIarg\fR
332.RS 4
333sets the domain (workgroup) of the user
334.RE
335.PP
336guest
337.RS 4
338don\'t prompt for a password
339.RE
340.PP
341iocharset
342.RS 4
343Charset 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\&.
344.RE
345.PP
346ro
347.RS 4
348mount read\-only
349.RE
350.PP
351rw
352.RS 4
353mount read\-write
354.RE
355.PP
356setuids
357.RS 4
358If 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)\&.
359.RE
360.PP
361nosetuids
362.RS 4
363The 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\&.
364.RE
365.PP
366perm
367.RS 4
368Client 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\&.
369.RE
370.PP
371noperm
372.RS 4
373Client 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)\&.
374.RE
375.PP
376dynperm
377.RS 4
378Instructs the server to maintain ownership and permissions in memory that can\'t be stored on the server\&. This information can disappear at any time (whenever the inode is flushed from the cache), so while this may help make some applications work, it\'s behavior is somewhat unreliable\&. See the section below on FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS for more information\&.
379.RE
380.PP
381directio
382.RS 4
383Do 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\&.
384.RE
385.PP
386mapchars
387.RS 4
388Translate 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\&. Please note that the files created with mapchars mount option may not be accessible if the share is mounted without that option\&.
389.RE
390.PP
391nomapchars
392.RS 4
393Do not translate any of these seven characters (default)
394.RE
395.PP
396intr
397.RS 4
398currently unimplemented
399.RE
400.PP
401nointr
402.RS 4
403(default) currently unimplemented
404.RE
405.PP
406hard
407.RS 4
408The program accessing a file on the cifs mounted file system will hang when the server crashes\&.
409.RE
410.PP
411soft
412.RS 4
413(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\&.
414.RE
415.PP
416noacl
417.RS 4
418Do not allow POSIX ACL operations even if server would support them\&.
419.sp
420The CIFS client can get and set POSIX ACLs (getfacl, setfacl) to Samba servers version 3\&.0\&.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 basis by specifying "noacl" on mount\&.
421.RE
422.PP
423nocase
424.RS 4
425Request case insensitive path name matching (case sensitive is the default if the server suports it)\&.
426.RE
427.PP
428sec=
429.RS 4
430Security mode\&. Allowed values are:
431.sp
432.RS 4
433.ie n \{\
434\h'-04'\(bu\h'+03'\c
435.\}
436.el \{\
437.sp -1
438.IP \(bu 2.3
439.\}
440none attempt to connection as a null user (no name)
441.RE
442.sp
443.RS 4
444.ie n \{\
445\h'-04'\(bu\h'+03'\c
446.\}
447.el \{\
448.sp -1
449.IP \(bu 2.3
450.\}
451krb5 Use Kerberos version 5 authentication
452.RE
453.sp
454.RS 4
455.ie n \{\
456\h'-04'\(bu\h'+03'\c
457.\}
458.el \{\
459.sp -1
460.IP \(bu 2.3
461.\}
462krb5i Use Kerberos authentication and packet signing
463.RE
464.sp
465.RS 4
466.ie n \{\
467\h'-04'\(bu\h'+03'\c
468.\}
469.el \{\
470.sp -1
471.IP \(bu 2.3
472.\}
473ntlm Use NTLM password hashing (default)
474.RE
475.sp
476.RS 4
477.ie n \{\
478\h'-04'\(bu\h'+03'\c
479.\}
480.el \{\
481.sp -1
482.IP \(bu 2.3
483.\}
484ntlmi Use NTLM password hashing with signing (if /proc/fs/cifs/PacketSigningEnabled on or if server requires signing also can be the default)
485.RE
486.sp
487.RS 4
488.ie n \{\
489\h'-04'\(bu\h'+03'\c
490.\}
491.el \{\
492.sp -1
493.IP \(bu 2.3
494.\}
495ntlmv2 Use NTLMv2 password hashing
496.RE
497.sp
498.RS 4
499.ie n \{\
500\h'-04'\(bu\h'+03'\c
501.\}
502.el \{\
503.sp -1
504.IP \(bu 2.3
505.\}
506ntlmv2i Use NTLMv2 password hashing with packet signing
507.sp
508.RE
509[NB This [sec parameter] is under development and expected to be available in cifs kernel module 1\&.40 and later]
510.RE
511.PP
512nobrl
513.RS 4
514Do 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)\&.
515.RE
516.PP
517sfu
518.RS 4
519When 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\&.
520.RE
521.PP
522serverino
523.RS 4
524Use 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\&.
525.RE
526.PP
527noserverino
528.RS 4
529Client generates inode numbers (rather than using the actual one from the server) by default\&.
530.sp
531See section
532\fIINODE NUMBERS\fR
533for more information\&.
534.RE
535.PP
536nounix
537.RS 4
538Disable the CIFS Unix Extensions for this mount\&. This can be useful in order to turn off multiple settings at once\&. This includes POSIX acls, POSIX locks, POSIX paths, symlink support and retrieving uids/gids/mode from the server\&. This can also be useful to work around a bug in a server that supports Unix Extensions\&.
539.sp
540See section
541\fIINODE NUMBERS\fR
542for more information\&.
543.RE
544.PP
545nouser_xattr
546.RS 4
547(default) Do not allow getfattr/setfattr to get/set xattrs, even if server would support it otherwise\&.
548.RE
549.PP
550rsize=\fIarg\fR
551.RS 4
552default 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)
553.RE
554.PP
555wsize=\fIarg\fR
556.RS 4
557default network write size (default 57344) maximum wsize currently allowed by CIFS is 57344 (fourteen 4096 byte pages)
558.RE
559.PP
560\-\-verbose
561.RS 4
562Print additional debugging information for the mount\&. Note that this parameter must be specified before the \-o\&. For example:
563.sp
564mount \-t cifs //server/share /mnt \-\-verbose \-o user=username
565.RE
566.SH "SERVICE FORMATTING AND DELIMITERS"
567.PP
568It\'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\&.
569.PP
570mount\&.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\&.
571.SH "INODE NUMBERS"
572.PP
573When Unix Extensions are enabled, we use the actual inode number provided by the server in response to the POSIX calls as an inode number\&.
574.PP
575When Unix Extensions are disabled and "serverino" mount option is enabled there is no way to get the server inode number\&. The client typically maps the server\-assigned "UniqueID" onto an inode number\&.
576.PP
577Note that the UniqueID is a different value from the server inode number\&. The UniqueID value is unique over the scope of the entire server and is often greater than 2 power 32\&. This value often makes programs that are not compiled with LFS (Large File Support), to trigger a glibc EOVERFLOW error as this won\'t fit in the target structure field\&. It is strongly recommended to compile your programs with LFS support (i\&.e\&. with \-D_FILE_OFFSET_BITS=64) to prevent this problem\&. You can also use "noserverino" mount option to generate inode numbers smaller than 2 power 32 on the client\&. But you may not be able to detect hardlinks properly\&.
578.SH "FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS"
579.PP
580The core CIFS protocol does not provide unix ownership information or mode for files and directories\&. Because of this, files and directories will generally appear to be owned by whatever values the uid= or gid= options are set, and will have permissions set to the default file_mode and dir_mode for the mount\&. Attempting to change these values via chmod/chown will return success but have no effect\&.
581.PP
582When the client and server negotiate unix extensions, files and directories will be assigned the uid, gid, and mode provided by the server\&. Because CIFS mounts are generally single\-user, and the same credentials are used no matter what user accesses the mount, newly created files and directories will generally be given ownership corresponding to whatever credentials were used to mount the share\&.
583.PP
584If the uid\'s and gid\'s being used do not match on the client and server, the forceuid and forcegid options may be helpful\&. Note however, that there is no corresponding option to override the mode\&. Permissions assigned to a file when forceuid or forcegid are in effect may not reflect the the real permissions\&.
585.PP
586When unix extensions are not negotiated, it\'s also possible to emulate them locally on the server using the "dynperm" mount option\&. When this mount option is in effect, newly created files and directories will receive what appear to be proper permissions\&. These permissions are not stored on the server however and can disappear at any time in the future (subject to the whims of the kernel flushing out the inode cache)\&. In general, this mount option is discouraged\&.
587.PP
588It\'s also possible to override permission checking on the client altogether via the noperm option\&. Server\-side permission checks cannot be overriden\&. The permission checks done by the server will always correspond to the credentials used to mount the share, and not necessarily to the user who is accessing the share\&.
589.SH "ENVIRONMENT VARIABLES"
590.PP
591The variable
592\fIUSER\fR
593may 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\&.
594.PP
595The variable
596\fIPASSWD\fR
597may contain the password of the person using the client\&.
598.PP
599The variable
600\fIPASSWD_FILE\fR
601may contain the pathname of a file to read the password from\&. A single line of input is read and used as the password\&.
602.SH "NOTES"
603.PP
604This command may be used only by root, unless installed setuid, in which case the noeexec and nosuid mount flags are enabled\&. When installed as a setuid program, the program follows the conventions set forth by the mount program for user mounts\&.
605.PP
606Some samba client tools like smbclient(8) honour client\-side configuration parameters present in smb\&.conf\&. Unlike those client tools,
607\fImount\&.cifs\fR
608ignores smb\&.conf completely\&.
609.SH "CONFIGURATION"
610.PP
611The primary mechanism for making configuration changes and for reading debug information for the cifs vfs is via the Linux /proc filesystem\&. In the directory
612\FC/proc/fs/cifs\F[]
613are 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
614\FCfs/cifs/README\F[]\&.
615.SH "BUGS"
616.PP
617Mounting using the CIFS URL specification is currently not supported\&.
618.PP
619The credentials file does not handle usernames or passwords with leading space\&.
620.PP
621Note 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\&.
622.SH "VERSION"
623.PP
624This man page is correct for version 1\&.52 of the cifs vfs filesystem (roughly Linux kernel 2\&.6\&.24)\&.
625.SH "SEE ALSO"
626.PP
627Documentation/filesystems/cifs\&.txt and fs/cifs/README in the linux kernel source tree may contain additional options and information\&.
628.PP
629\fBumount.cifs\fR(8)
630.SH "AUTHOR"
631.PP
632Steve French
633.PP
634The syntax and manpage were loosely based on that of smbmount\&. It was converted to Docbook/XML by Jelmer Vernooij\&.
635.PP
636The maintainer of the Linux cifs vfs and the userspace tool
637\fImount\&.cifs\fR
638is
639Steve French\&. The
640Linux CIFS Mailing list
641is the preferred place to ask questions regarding these programs\&.
Note: See TracBrowser for help on using the repository browser.