~ubuntu-branches/ubuntu/maverick/samba/maverick-security

« back to all changes in this revision

Viewing changes to .pc/fix-manpages-warnings.patch/docs/manpages/mount.cifs.8

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-01-29 06:16:15 UTC
  • mfrom: (0.27.9 upstream) (0.34.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100129061615-37hs6xqpsdhjq3ld
Tags: 2:3.4.5~dfsg-1ubuntu1
* Merge from debian testing.  Remaining changes:
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/smb.conf:
    - Add "(Samba, Ubuntu)" to server string.
    - Comment out the default [homes] share, and add a comment about "valid users = %s"
      to show users how to restrict access to \\server\username to only username.
    - Set 'usershare allow guests', so that usershare admins are allowed to create
      public shares in additon to authenticated ones.
    - add map to guest = Bad user, maps bad username to gues access.
  + debian/samba-common.conf:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/mksambapasswd.awk:
    - Do not add user with UID less than 1000 to smbpasswd.
  + debian/control: 
    - Make libswbclient0 replace/conflict with hardy's likewise-open.
    - Don't build against ctdb, since its not in main yet.
  + debian/rules:
    - Enable "native" PIE hardening.
    - Add BIND_NOW to maximize benefit of RELRO hardening.
  + Add ufw integration:
    - Created debian/samba.ufw.profile.
    - debian/rules, debian/samba.dirs, debian/samba.files: install
  + Add apoort hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba.dirs, debian/samba-common-bin.files: install
  + debian/rules, debian/samba.if-up: allow "NetworkManager" as a recognized address
    family... it's obviously /not/ an address family, but it's what gets
    sent when using NM, so we'll cope for now.  (LP: #462169). Taken from karmic-proposed.
  + debian/control: Recommend keyutils for smbfs (LP: #493565)
  + Dropped patches:
    - debian/patches/security-CVE-2009-3297.patch: No longer needed
    - debian/patches/fix-too-many-open-files.patch: No longer needed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.\"     Title: mount.cifs
2
 
.\"    Author: [see the "AUTHOR" section]
3
 
.\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
4
 
.\"      Date: 10/29/2009
5
 
.\"    Manual: System Administration tools
6
 
.\"    Source: Samba 3.4
7
 
.\"  Language: English
8
 
.\"
9
 
.TH "MOUNT\&.CIFS" "8" "10/29/2009" "Samba 3\&.4" "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"
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
176
 
.SH "DESCRIPTION"
177
 
.PP
178
 
This tool is part of the
179
 
\fBsamba\fR(7)
180
 
suite\&.
181
 
.PP
182
 
mount\&.cifs mounts a Linux CIFS filesystem\&. It is usually invoked indirectly by the
183
 
\fBmount\fR(8)
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\&.
190
 
.PP
191
 
Options to
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)\&.
197
 
.PP
198
 
 
199
 
\fImount\&.cifs \-V\fR
200
 
command displays the version of cifs mount helper\&.
201
 
.PP
202
 
 
203
 
\fImodinfo cifs\fR
204
 
command displays the version of cifs module\&.
205
 
.SH "OPTIONS"
206
 
.PP
207
 
user=\fIarg\fR
208
 
.RS 4
209
 
specifies the username to connect as\&. If this is not given, then the environment variable
210
 
\fIUSER\fR
211
 
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\&.
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
225
 
The 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
229
 
and
230
 
\fIcred=\fR\&.
231
 
.sp .5v
232
 
.EM yellow
233
 
.RE
234
 
.RE
235
 
.PP
236
 
password=\fIarg\fR
237
 
.RS 4
238
 
specifies the CIFS password\&. If this option is not given then the environment variable
239
 
\fIPASSWD\fR
240
 
is used\&. If the password is not specified directly or indirectly via an argument to mount,
241
 
\fImount\&.cifs\fR
242
 
will prompt for a password, unless the guest option is specified\&.
243
 
.sp
244
 
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\&.
245
 
.RE
246
 
.PP
247
 
credentials=\fIfilename\fR
248
 
.RS 4
249
 
specifies 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
 
                workgroup=\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
277
 
This 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
281
 
uid=\fIarg\fR
282
 
.RS 4
283
 
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 specified 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\&.
284
 
.RE
285
 
.PP
286
 
gid=\fIarg\fR
287
 
.RS 4
288
 
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\&.
289
 
.RE
290
 
.PP
291
 
port=\fIarg\fR
292
 
.RS 4
293
 
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\&.
294
 
.RE
295
 
.PP
296
 
servern=\fIarg\fR
297
 
.RS 4
298
 
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\&.
299
 
.RE
300
 
.PP
301
 
netbiosname=\fIarg\fR
302
 
.RS 4
303
 
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\&.
304
 
.RE
305
 
.PP
306
 
file_mode=\fIarg\fR
307
 
.RS 4
308
 
If the server does not support the CIFS Unix extensions this overrides the default file mode\&.
309
 
.RE
310
 
.PP
311
 
dir_mode=\fIarg\fR
312
 
.RS 4
313
 
If the server does not support the CIFS Unix extensions this overrides the default mode for directories\&.
314
 
.RE
315
 
.PP
316
 
ip=\fIarg\fR
317
 
.RS 4
318
 
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\&.
319
 
.RE
320
 
.PP
321
 
domain=\fIarg\fR
322
 
.RS 4
323
 
sets the domain (workgroup) of the user
324
 
.RE
325
 
.PP
326
 
guest
327
 
.RS 4
328
 
don\'t prompt for a password
329
 
.RE
330
 
.PP
331
 
iocharset
332
 
.RS 4
333
 
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\&.
334
 
.RE
335
 
.PP
336
 
ro
337
 
.RS 4
338
 
mount read\-only
339
 
.RE
340
 
.PP
341
 
rw
342
 
.RS 4
343
 
mount read\-write
344
 
.RE
345
 
.PP
346
 
setuids
347
 
.RS 4
348
 
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)\&.
349
 
.RE
350
 
.PP
351
 
nosetuids
352
 
.RS 4
353
 
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\&.
354
 
.RE
355
 
.PP
356
 
perm
357
 
.RS 4
358
 
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\&.
359
 
.RE
360
 
.PP
361
 
noperm
362
 
.RS 4
363
 
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)\&.
364
 
.RE
365
 
.PP
366
 
directio
367
 
.RS 4
368
 
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\&.
369
 
.RE
370
 
.PP
371
 
mapchars
372
 
.RS 4
373
 
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\&.
374
 
.RE
375
 
.PP
376
 
nomapchars
377
 
.RS 4
378
 
Do not translate any of these seven characters (default)
379
 
.RE
380
 
.PP
381
 
intr
382
 
.RS 4
383
 
currently unimplemented
384
 
.RE
385
 
.PP
386
 
nointr
387
 
.RS 4
388
 
(default) currently unimplemented
389
 
.RE
390
 
.PP
391
 
hard
392
 
.RS 4
393
 
The program accessing a file on the cifs mounted file system will hang when the server crashes\&.
394
 
.RE
395
 
.PP
396
 
soft
397
 
.RS 4
398
 
(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\&.
399
 
.RE
400
 
.PP
401
 
noacl
402
 
.RS 4
403
 
Do not allow POSIX ACL operations even if server would support them\&.
404
 
.sp
405
 
The 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\&.
406
 
.RE
407
 
.PP
408
 
nocase
409
 
.RS 4
410
 
Request case insensitive path name matching (case sensitive is the default if the server suports it)\&.
411
 
.RE
412
 
.PP
413
 
sec=
414
 
.RS 4
415
 
Security mode\&. Allowed values are:
416
 
.sp
417
 
.RS 4
418
 
.ie n \{\
419
 
\h'-04'\(bu\h'+03'\c
420
 
.\}
421
 
.el \{\
422
 
.sp -1
423
 
.IP \(bu 2.3
424
 
.\}
425
 
none attempt to connection as a null user (no name)
426
 
.RE
427
 
.sp
428
 
.RS 4
429
 
.ie n \{\
430
 
\h'-04'\(bu\h'+03'\c
431
 
.\}
432
 
.el \{\
433
 
.sp -1
434
 
.IP \(bu 2.3
435
 
.\}
436
 
krb5 Use Kerberos version 5 authentication
437
 
.RE
438
 
.sp
439
 
.RS 4
440
 
.ie n \{\
441
 
\h'-04'\(bu\h'+03'\c
442
 
.\}
443
 
.el \{\
444
 
.sp -1
445
 
.IP \(bu 2.3
446
 
.\}
447
 
krb5i Use Kerberos authentication and packet signing
448
 
.RE
449
 
.sp
450
 
.RS 4
451
 
.ie n \{\
452
 
\h'-04'\(bu\h'+03'\c
453
 
.\}
454
 
.el \{\
455
 
.sp -1
456
 
.IP \(bu 2.3
457
 
.\}
458
 
ntlm Use NTLM password hashing (default)
459
 
.RE
460
 
.sp
461
 
.RS 4
462
 
.ie n \{\
463
 
\h'-04'\(bu\h'+03'\c
464
 
.\}
465
 
.el \{\
466
 
.sp -1
467
 
.IP \(bu 2.3
468
 
.\}
469
 
ntlmi Use NTLM password hashing with signing (if /proc/fs/cifs/PacketSigningEnabled on or if server requires signing also can be the default)
470
 
.RE
471
 
.sp
472
 
.RS 4
473
 
.ie n \{\
474
 
\h'-04'\(bu\h'+03'\c
475
 
.\}
476
 
.el \{\
477
 
.sp -1
478
 
.IP \(bu 2.3
479
 
.\}
480
 
ntlmv2 Use NTLMv2 password hashing
481
 
.RE
482
 
.sp
483
 
.RS 4
484
 
.ie n \{\
485
 
\h'-04'\(bu\h'+03'\c
486
 
.\}
487
 
.el \{\
488
 
.sp -1
489
 
.IP \(bu 2.3
490
 
.\}
491
 
ntlmv2i Use NTLMv2 password hashing with packet signing
492
 
.sp
493
 
.RE
494
 
[NB This [sec parameter] is under development and expected to be available in cifs kernel module 1\&.40 and later]
495
 
.RE
496
 
.PP
497
 
nobrl
498
 
.RS 4
499
 
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)\&.
500
 
.RE
501
 
.PP
502
 
sfu
503
 
.RS 4
504
 
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\&.
505
 
.RE
506
 
.PP
507
 
serverino
508
 
.RS 4
509
 
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\&.
510
 
.RE
511
 
.PP
512
 
noserverino
513
 
.RS 4
514
 
client generates inode numbers (rather than using the actual one from the server) by default\&.
515
 
.RE
516
 
.PP
517
 
nouser_xattr
518
 
.RS 4
519
 
(default) Do not allow getfattr/setfattr to get/set xattrs, even if server would support it otherwise\&.
520
 
.RE
521
 
.PP
522
 
rsize=\fIarg\fR
523
 
.RS 4
524
 
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)
525
 
.RE
526
 
.PP
527
 
wsize=\fIarg\fR
528
 
.RS 4
529
 
default network write size (default 57344) maximum wsize currently allowed by CIFS is 57344 (fourteen 4096 byte pages)
530
 
.RE
531
 
.PP
532
 
\-\-verbose
533
 
.RS 4
534
 
Print additional debugging information for the mount\&. Note that this parameter must be specified before the \-o\&. For example:
535
 
.sp
536
 
mount \-t cifs //server/share /mnt \-\-verbose \-o user=username
537
 
.RE
538
 
.SH "SERVICE FORMATTING AND DELIMITERS"
539
 
.PP
540
 
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\&.
541
 
.PP
542
 
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\&.
543
 
.SH "ENVIRONMENT VARIABLES"
544
 
.PP
545
 
The variable
546
 
\fIUSER\fR
547
 
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\&.
548
 
.PP
549
 
The variable
550
 
\fIPASSWD\fR
551
 
may contain the password of the person using the client\&.
552
 
.PP
553
 
The variable
554
 
\fIPASSWD_FILE\fR
555
 
may contain the pathname of a file to read the password from\&. A single line of input is read and used as the password\&.
556
 
.SH "NOTES"
557
 
.PP
558
 
This command may be used only by root, unless installed setuid, in which case the noeexec and nosuid mount flags are enabled\&.
559
 
.SH "CONFIGURATION"
560
 
.PP
561
 
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
562
 
\FC/proc/fs/cifs\F[]
563
 
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
564
 
\FCfs/cifs/README\F[]\&.
565
 
.SH "BUGS"
566
 
.PP
567
 
Mounting using the CIFS URL specification is currently not supported\&.
568
 
.PP
569
 
The credentials file does not handle usernames or passwords with leading space\&.
570
 
.PP
571
 
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\&.
572
 
.SH "VERSION"
573
 
.PP
574
 
This man page is correct for version 1\&.52 of the cifs vfs filesystem (roughly Linux kernel 2\&.6\&.24)\&.
575
 
.SH "SEE ALSO"
576
 
.PP
577
 
Documentation/filesystems/cifs\&.txt and fs/cifs/README in the linux kernel source tree may contain additional options and information\&.
578
 
.PP
579
 
\fBumount.cifs\fR(8)
580
 
.SH "AUTHOR"
581
 
.PP
582
 
Steve French
583
 
.PP
584
 
The syntax and manpage were loosely based on that of smbmount\&. It was converted to Docbook/XML by Jelmer Vernooij\&.
585
 
.PP
586
 
The maintainer of the Linux cifs vfs and the userspace tool
587
 
\fImount\&.cifs\fR
588
 
is
589
 
Steve French\&. The
590
 
Linux CIFS Mailing list
591
 
is the preferred place to ask questions regarding these programs\&.