diff options
Diffstat (limited to 'fs/cifs/README')
-rw-r--r-- | fs/cifs/README | 49 |
1 files changed, 41 insertions, 8 deletions
diff --git a/fs/cifs/README b/fs/cifs/README index 0f20edc935b5..e74df0c73256 100644 --- a/fs/cifs/README +++ b/fs/cifs/README | |||
@@ -32,9 +32,9 @@ the cifs download to your kernel build directory e.g. | |||
32 | 6) make modules (or "make" if CIFS VFS not to be built as a module) | 32 | 6) make modules (or "make" if CIFS VFS not to be built as a module) |
33 | 33 | ||
34 | For Linux 2.6: | 34 | For Linux 2.6: |
35 | 1) Download the kernel (e.g. from http://www.kernel.org or from bitkeeper | 35 | 1) Download the kernel (e.g. from http://www.kernel.org) |
36 | at bk://linux.bkbits.net/linux-2.5) and change directory into the top | 36 | and change directory into the top of the kernel directory tree |
37 | of the kernel directory tree (e.g. /usr/src/linux-2.5.73) | 37 | (e.g. /usr/src/linux-2.5.73) |
38 | 2) make menuconfig (or make xconfig) | 38 | 2) make menuconfig (or make xconfig) |
39 | 3) select cifs from within the network filesystem choices | 39 | 3) select cifs from within the network filesystem choices |
40 | 4) save and exit | 40 | 4) save and exit |
@@ -75,7 +75,7 @@ Allowing User Mounts | |||
75 | ==================== | 75 | ==================== |
76 | To permit users to mount and unmount over directories they own is possible | 76 | To permit users to mount and unmount over directories they own is possible |
77 | with the cifs vfs. A way to enable such mounting is to mark the mount.cifs | 77 | with the cifs vfs. A way to enable such mounting is to mark the mount.cifs |
78 | utility as suid (e.g. "chmod +s /sbin/mount/cifs). To enable users to | 78 | utility as suid (e.g. "chmod +s /sbin/mount.cifs). To enable users to |
79 | umount shares they mount requires | 79 | umount shares they mount requires |
80 | 1) mount.cifs version 1.4 or later | 80 | 1) mount.cifs version 1.4 or later |
81 | 2) an entry for the share in /etc/fstab indicating that a user may | 81 | 2) an entry for the share in /etc/fstab indicating that a user may |
@@ -97,6 +97,26 @@ mount.cifs with the following flag: | |||
97 | There is a corresponding manual page for cifs mounting in the Samba 3.0 and | 97 | There is a corresponding manual page for cifs mounting in the Samba 3.0 and |
98 | later source tree in docs/manpages/mount.cifs.8 | 98 | later source tree in docs/manpages/mount.cifs.8 |
99 | 99 | ||
100 | Allowing User Unmounts | ||
101 | ====================== | ||
102 | To permit users to ummount directories that they have user mounted (see above), | ||
103 | the utility umount.cifs may be used. It may be invoked directly, or if | ||
104 | umount.cifs is placed in /sbin, umount can invoke the cifs umount helper | ||
105 | (at least for most versions of the umount utility) for umount of cifs | ||
106 | mounts, unless umount is invoked with -i (which will avoid invoking a umount | ||
107 | helper). As with mount.cifs, to enable user unmounts umount.cifs must be marked | ||
108 | as suid (e.g. "chmod +s /sbin/umount.cifs") or equivalent (some distributions | ||
109 | allow adding entries to a file to the /etc/permissions file to achieve the | ||
110 | equivalent suid effect). For this utility to succeed the target path | ||
111 | must be a cifs mount, and the uid of the current user must match the uid | ||
112 | of the user who mounted the resource. | ||
113 | |||
114 | Also note that the customary way of allowing user mounts and unmounts is | ||
115 | (instead of using mount.cifs and unmount.cifs as suid) to add a line | ||
116 | to the file /etc/fstab for each //server/share you wish to mount, but | ||
117 | this can become unwieldy when potential mount targets include many | ||
118 | or unpredictable UNC names. | ||
119 | |||
100 | Samba Considerations | 120 | Samba Considerations |
101 | ==================== | 121 | ==================== |
102 | To get the maximum benefit from the CIFS VFS, we recommend using a server that | 122 | To get the maximum benefit from the CIFS VFS, we recommend using a server that |
@@ -376,6 +396,19 @@ A partial list of the supported mount options follows: | |||
376 | attributes) to the server (default) e.g. via setfattr | 396 | attributes) to the server (default) e.g. via setfattr |
377 | and getfattr utilities. | 397 | and getfattr utilities. |
378 | nouser_xattr Do not allow getfattr/setfattr to get/set xattrs | 398 | nouser_xattr Do not allow getfattr/setfattr to get/set xattrs |
399 | mapchars Translate six of the seven reserved characters (not backslash) | ||
400 | *?<>|: | ||
401 | to the remap range (above 0xF000), which also | ||
402 | allows the CIFS client to recognize files created with | ||
403 | such characters by Windows's POSIX emulation. This can | ||
404 | also be useful when mounting to most versions of Samba | ||
405 | (which also forbids creating and opening files | ||
406 | whose names contain any of these seven characters). | ||
407 | This has no effect if the server does not support | ||
408 | Unicode on the wire. | ||
409 | nomapchars Do not translate any of these seven characters (default). | ||
410 | remount remount the share (often used to change from ro to rw mounts | ||
411 | or vice versa) | ||
379 | 412 | ||
380 | The mount.cifs mount helper also accepts a few mount options before -o | 413 | The mount.cifs mount helper also accepts a few mount options before -o |
381 | including: | 414 | including: |
@@ -392,7 +425,7 @@ Misc /proc/fs/cifs Flags and Debug Info | |||
392 | ======================================= | 425 | ======================================= |
393 | Informational pseudo-files: | 426 | Informational pseudo-files: |
394 | DebugData Displays information about active CIFS sessions | 427 | DebugData Displays information about active CIFS sessions |
395 | and shares. | 428 | and shares, as well as the cifs.ko version. |
396 | Stats Lists summary resource usage information as well as per | 429 | Stats Lists summary resource usage information as well as per |
397 | share statistics, if CONFIG_CIFS_STATS in enabled | 430 | share statistics, if CONFIG_CIFS_STATS in enabled |
398 | in the kernel configuration. | 431 | in the kernel configuration. |
@@ -449,7 +482,7 @@ and for more extensive tracing including the start of smb requests and responses | |||
449 | Two other experimental features are under development and to test | 482 | Two other experimental features are under development and to test |
450 | require enabling CONFIG_CIFS_EXPERIMENTAL | 483 | require enabling CONFIG_CIFS_EXPERIMENTAL |
451 | 484 | ||
452 | More efficient write operations and SMB buffer handling | 485 | More efficient write operations |
453 | 486 | ||
454 | DNOTIFY fcntl: needed for support of directory change | 487 | DNOTIFY fcntl: needed for support of directory change |
455 | notification and perhaps later for file leases) | 488 | notification and perhaps later for file leases) |
@@ -467,8 +500,8 @@ returned success. | |||
467 | 500 | ||
468 | Also note that "cat /proc/fs/cifs/DebugData" will display information about | 501 | Also note that "cat /proc/fs/cifs/DebugData" will display information about |
469 | the active sessions and the shares that are mounted. Note: NTLMv2 enablement | 502 | the active sessions and the shares that are mounted. Note: NTLMv2 enablement |
470 | will not work since they its implementation is not quite complete yet. | 503 | will not work since its implementation is not quite complete yet. Do not alter |
471 | Do not alter these configuration values unless you are doing specific testing. | 504 | the ExtendedSecurity configuration value unless you are doing specific testing. |
472 | Enabling extended security works to Windows 2000 Workstations and XP but not to | 505 | Enabling extended security works to Windows 2000 Workstations and XP but not to |
473 | Windows 2000 server or Samba since it does not usually send "raw NTLMSSP" | 506 | Windows 2000 server or Samba since it does not usually send "raw NTLMSSP" |
474 | (instead it sends NTLMSSP encapsulated in SPNEGO/GSSAPI, which support is not | 507 | (instead it sends NTLMSSP encapsulated in SPNEGO/GSSAPI, which support is not |