Ssphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget*/translations/zh_CN/admin-guide/cifs/usagemodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/zh_TW/admin-guide/cifs/usagemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/it_IT/admin-guide/cifs/usagemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/ja_JP/admin-guide/cifs/usagemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/ko_KR/admin-guide/cifs/usagemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/sp_SP/admin-guide/cifs/usagemodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hUsageh]hUsage}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhD/var/lib/git/docbuild/linux/Documentation/admin-guide/cifs/usage.rsthKubh paragraph)}(hThis module supports the SMB3 family of advanced network protocols (as well as older dialects, originally called "CIFS" or SMB1).h]hThis module supports the SMB3 family of advanced network protocols (as well as older dialects, originally called “CIFS” or SMB1).}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXZThe CIFS VFS module for Linux supports many advanced network filesystem features such as hierarchical DFS like namespace, hardlinks, locking and more. It was designed to comply with the SNIA CIFS Technical Reference (which supersedes the 1992 X/Open SMB Standard) as well as to perform best practice practical interoperability with Windows 2000, Windows XP, Samba and equivalent servers. This code was developed in participation with the Protocol Freedom Information Foundation. CIFS and now SMB3 has now become a defacto standard for interoperating between Macs and Windows and major NAS appliances.h]hXZThe CIFS VFS module for Linux supports many advanced network filesystem features such as hierarchical DFS like namespace, hardlinks, locking and more. It was designed to comply with the SNIA CIFS Technical Reference (which supersedes the 1992 X/Open SMB Standard) as well as to perform best practice practical interoperability with Windows 2000, Windows XP, Samba and equivalent servers. This code was developed in participation with the Protocol Freedom Information Foundation. CIFS and now SMB3 has now become a defacto standard for interoperating between Macs and Windows and major NAS appliances.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(h~Please see MS-SMB2 (for detailed SMB2/SMB3/SMB3.1.1 protocol specification) or https://samba.org/samba/PFIF/ for more details.h](hOPlease see MS-SMB2 (for detailed SMB2/SMB3/SMB3.1.1 protocol specification) or }(hhhhhNhNubh reference)}(hhttps://samba.org/samba/PFIF/h]hhttps://samba.org/samba/PFIF/}(hhhhhNhNubah}(h]h ]h"]h$]h&]refurihuh1hhhubh for more details.}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(h,For questions or bug reports please contact:h]h,For questions or bug reports please contact:}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh block_quote)}(hsmfrench@gmail.com h]h)}(hsmfrench@gmail.comh]h)}(hjh]hsmfrench@gmail.com}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:smfrench@gmail.comuh1hhj ubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhhhKhhhhubh)}(hISee the project page at: https://wiki.samba.org/index.php/LinuxCIFS_utilsh](hSee the project page at: }(hj+hhhNhNubh)}(h0https://wiki.samba.org/index.php/LinuxCIFS_utilsh]h0https://wiki.samba.org/index.php/LinuxCIFS_utils}(hj3hhhNhNubah}(h]h ]h"]h$]h&]refurij5uh1hhj+ubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(hBuild instructionsh]hBuild instructions}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhhhhhKubh)}(h For Linux:h]h For Linux:}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hjHhhubhenumerated_list)}(hhh](h list_item)}(hDownload the kernel (e.g. from https://www.kernel.org) and change directory into the top of the kernel directory tree (e.g. /usr/src/linux-2.5.73)h]h)}(hDownload the kernel (e.g. from https://www.kernel.org) and change directory into the top of the kernel directory tree (e.g. /usr/src/linux-2.5.73)h](hDownload the kernel (e.g. from }(hjrhhhNhNubh)}(hhttps://www.kernel.orgh]hhttps://www.kernel.org}(hjzhhhNhNubah}(h]h ]h"]h$]h&]refurij|uh1hhjrubh]) and change directory into the top of the kernel directory tree (e.g. /usr/src/linux-2.5.73)}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK"hjnubah}(h]h ]h"]h$]h&]uh1jlhjihhhhhNubjm)}(h!make menuconfig (or make xconfig)h]h)}(hjh]h!make menuconfig (or make xconfig)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK%hjubah}(h]h ]h"]h$]h&]uh1jlhjihhhhhNubjm)}(h6select cifs from within the network filesystem choicesh]h)}(hjh]h6select cifs from within the network filesystem choices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK&hjubah}(h]h ]h"]h$]h&]uh1jlhjihhhhhNubjm)}(h save and exith]h)}(hjh]h save and exit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hjubah}(h]h ]h"]h$]h&]uh1jlhjihhhhhNubjm)}(hmake h]h)}(hmakeh]hmake}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK(hjubah}(h]h ]h"]h$]h&]uh1jlhjihhhhhNubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix)uh1jghjHhhhhhK"ubeh}(h]build-instructionsah ]h"]build instructionsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hInstallation instructionsh]hInstallation instructions}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhK,ubh)}(hIf you have built the CIFS vfs as module (successfully) simply type ``make modules_install`` (or if you prefer, manually copy the file to the modules directory e.g. /lib/modules/6.3.0-060300-generic/kernel/fs/smb/client/cifs.ko).h](hDIf you have built the CIFS vfs as module (successfully) simply type }(hjhhhNhNubhliteral)}(h``make modules_install``h]hmake modules_install}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubh (or if you prefer, manually copy the file to the modules directory e.g. /lib/modules/6.3.0-060300-generic/kernel/fs/smb/client/cifs.ko).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK.hj hhubh)}(hIf you have built the CIFS vfs into the kernel itself, follow the instructions for your distribution on how to install a new kernel (usually you would simply type ``make install``).h](hIf you have built the CIFS vfs into the kernel itself, follow the instructions for your distribution on how to install a new kernel (usually you would simply type }(hj<hhhNhNubj#)}(h``make install``h]h make install}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hj<ubh).}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK2hj hhubh)}(hXlIf you do not have the utility mount.cifs (in the Samba 4.x source tree and on the CIFS VFS web site) copy it to the same directory in which mount helpers reside (usually /sbin). Although the helper software is not required, mount.cifs is recommended. Most distros include a ``cifs-utils`` package that includes this utility so it is recommended to install this.h](hXIf you do not have the utility mount.cifs (in the Samba 4.x source tree and on the CIFS VFS web site) copy it to the same directory in which mount helpers reside (usually /sbin). Although the helper software is not required, mount.cifs is recommended. Most distros include a }(hj\hhhNhNubj#)}(h``cifs-utils``h]h cifs-utils}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hj\ubhI package that includes this utility so it is recommended to install this.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK6hj hhubh)}(hXNote that running the Winbind pam/nss module (logon service) on all of your Linux clients is useful in mapping Uids and Gids consistently across the domain to the proper network user. The mount.cifs mount helper can be found at cifs-utils.git on git.samba.orgh]hXNote that running the Winbind pam/nss module (logon service) on all of your Linux clients is useful in mapping Uids and Gids consistently across the domain to the proper network user. The mount.cifs mount helper can be found at cifs-utils.git on git.samba.org}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKh]hmodinfo }hjsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1jhhhKEhj hhubh)}(hon kernel/fs/smb/client/cifs.ko the list of configuration changes that can be made at module initialization time (by running insmod cifs.ko) can be seen.h]hon kernel/fs/smb/client/cifs.ko the list of configuration changes that can be made at module initialization time (by running insmod cifs.ko) can be seen.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKGhj hhubeh}(h]installation-instructionsah ]h"]installation instructionsah$]h&]uh1hhhhhhhhK,ubh)}(hhh](h)}(hRecommendationsh]hRecommendations}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKKubh)}(hXXTo improve security the SMB2.1 dialect or later (usually will get SMB3.1.1) is now the new default. To use old dialects (e.g. to mount Windows XP) use "vers=1.0" on mount (or vers=2.0 for Windows Vista). Note that the CIFS (vers=1.0) is much older and less secure than the default dialect SMB3 which includes many advanced security features such as downgrade attack detection and encrypted shares and stronger signing and authentication algorithms. There are additional mount options that may be helpful for SMB3 to get improved POSIX behavior (NB: can use vers=3 to force SMB3 or later, never 2.1):h]hX\To improve security the SMB2.1 dialect or later (usually will get SMB3.1.1) is now the new default. To use old dialects (e.g. to mount Windows XP) use “vers=1.0” on mount (or vers=2.0 for Windows Vista). Note that the CIFS (vers=1.0) is much older and less secure than the default dialect SMB3 which includes many advanced security features such as downgrade attack detection and encrypted shares and stronger signing and authentication algorithms. There are additional mount options that may be helpful for SMB3 to get improved POSIX behavior (NB: can use vers=3 to force SMB3 or later, never 2.1):}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKMhjhhubj)}(hW``mfsymlinks`` and either ``cifsacl`` or ``modefromsid`` (usually with ``idsfromsid``) h]h)}(hV``mfsymlinks`` and either ``cifsacl`` or ``modefromsid`` (usually with ``idsfromsid``)h](j#)}(h``mfsymlinks``h]h mfsymlinks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubh and either }(hjhhhNhNubj#)}(h ``cifsacl``h]hcifsacl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubh or }(hjhhhNhNubj#)}(h``modefromsid``h]h modefromsid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubh (usually with }(hjhhhNhNubj#)}(h``idsfromsid``h]h idsfromsid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubh)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKVhjubah}(h]h ]h"]h$]h&]uh1jhhhKVhjhhubeh}(h]recommendationsah ]h"]recommendationsah$]h&]uh1hhhhhhhhKKubh)}(hhh](h)}(hAllowing User Mountsh]hAllowing User Mounts}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChhhhhKYubh)}(hXTo permit users to mount and unmount over directories they own is possible with the cifs vfs. A way to enable such mounting is to mark the mount.cifs utility as suid (e.g. ``chmod +s /sbin/mount.cifs``). To enable users to umount shares they mount requiresh](hTo permit users to mount and unmount over directories they own is possible with the cifs vfs. A way to enable such mounting is to mark the mount.cifs utility as suid (e.g. }(hjThhhNhNubj#)}(h``chmod +s /sbin/mount.cifs``h]hchmod +s /sbin/mount.cifs}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjTubh7). To enable users to umount shares they mount requires}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK[hjChhubjh)}(hhh](jm)}(hmount.cifs version 1.4 or laterh]h)}(hjyh]hmount.cifs version 1.4 or later}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK`hjwubah}(h]h ]h"]h$]h&]uh1jlhjthhhhhNubjm)}(han entry for the share in /etc/fstab indicating that a user may unmount it e.g.:: //server/usersharename /mnt/username cifs user 0 0 h](h)}(hQan entry for the share in /etc/fstab indicating that a user may unmount it e.g.::h]hPan entry for the share in /etc/fstab indicating that a user may unmount it e.g.:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKahjubj)}(h3//server/usersharename /mnt/username cifs user 0 0h]h3//server/usersharename /mnt/username cifs user 0 0}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhKdhjubeh}(h]h ]h"]h$]h&]uh1jlhjthhhhhNubeh}(h]h ]h"]h$]h&]jjjhjjuh1jghjChhhhhK`ubh)}(hXmNote that when the mount.cifs utility is run suid (allowing user mounts), in order to reduce risks, the ``nosuid`` mount flag is passed in on mount to disallow execution of an suid program mounted on the remote target. When mount is executed as root, nosuid is not passed in by default, and execution of suid programs on the remote target would be enabled by default. This can be changed, as with nfs and other filesystems, by simply specifying ``nosuid`` among the mount options. For user mounts though to be able to pass the suid flag to mount requires rebuilding mount.cifs with the following flag: CIFS_ALLOW_USR_SUIDh](hhNote that when the mount.cifs utility is run suid (allowing user mounts), in order to reduce risks, the }(hjhhhNhNubj#)}(h ``nosuid``h]hnosuid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubhXK mount flag is passed in on mount to disallow execution of an suid program mounted on the remote target. When mount is executed as root, nosuid is not passed in by default, and execution of suid programs on the remote target would be enabled by default. This can be changed, as with nfs and other filesystems, by simply specifying }(hjhhhNhNubj#)}(h ``nosuid``h]hnosuid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubh among the mount options. For user mounts though to be able to pass the suid flag to mount requires rebuilding mount.cifs with the following flag: CIFS_ALLOW_USR_SUID}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKfhjChhubh)}(h{There is a corresponding manual page for cifs mounting in the Samba 3.0 and later source tree in docs/manpages/mount.cifs.8h]h{There is a corresponding manual page for cifs mounting in the Samba 3.0 and later source tree in docs/manpages/mount.cifs.8}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKphjChhubeh}(h]allowing-user-mountsah ]h"]allowing user mountsah$]h&]uh1hhhhhhhhKYubh)}(hhh](h)}(hAllowing User Unmountsh]hAllowing User Unmounts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKtubh)}(hXTo permit users to unmount directories that they have user mounted (see above), the utility umount.cifs may be used. It may be invoked directly, or if umount.cifs is placed in /sbin, umount can invoke the cifs umount helper (at least for most versions of the umount utility) for umount of cifs mounts, unless umount is invoked with -i (which will avoid invoking a umount helper). As with mount.cifs, to enable user unmounts umount.cifs must be marked as suid (e.g. ``chmod +s /sbin/umount.cifs``) or equivalent (some distributions allow adding entries to a file to the /etc/permissions file to achieve the equivalent suid effect). For this utility to succeed the target path must be a cifs mount, and the uid of the current user must match the uid of the user who mounted the resource.h](hXTo permit users to unmount directories that they have user mounted (see above), the utility umount.cifs may be used. It may be invoked directly, or if umount.cifs is placed in /sbin, umount can invoke the cifs umount helper (at least for most versions of the umount utility) for umount of cifs mounts, unless umount is invoked with -i (which will avoid invoking a umount helper). As with mount.cifs, to enable user unmounts umount.cifs must be marked as suid (e.g. }(hjhhhNhNubj#)}(h``chmod +s /sbin/umount.cifs``h]hchmod +s /sbin/umount.cifs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubhX#) or equivalent (some distributions allow adding entries to a file to the /etc/permissions file to achieve the equivalent suid effect). For this utility to succeed the target path must be a cifs mount, and the uid of the current user must match the uid of the user who mounted the resource.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKvhjhhubh)}(hX3Also note that the customary way of allowing user mounts and unmounts is (instead of using mount.cifs and unmount.cifs as suid) to add a line to the file /etc/fstab for each //server/share you wish to mount, but this can become unwieldy when potential mount targets include many or unpredictable UNC names.h]hX3Also note that the customary way of allowing user mounts and unmounts is (instead of using mount.cifs and unmount.cifs as suid) to add a line to the file /etc/fstab for each //server/share you wish to mount, but this can become unwieldy when potential mount targets include many or unpredictable UNC names.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]allowing-user-unmountsah ]h"]allowing user unmountsah$]h&]uh1hhhhhhhhKtubh)}(hhh](h)}(hSamba Considerationsh]hSamba Considerations}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhKubh)}(hXMost current servers support SMB2.1 and SMB3 which are more secure, but there are useful protocol extensions for the older less secure CIFS dialect, so to get the maximum benefit if mounting using the older dialect (CIFS/SMB1), we recommend using a server that supports the SNIA CIFS Unix Extensions standard (e.g. almost any version of Samba ie version 2.2.5 or later) but the CIFS vfs works fine with a wide variety of CIFS servers. Note that uid, gid and file permissions will display default values if you do not have a server that supports the Unix extensions for CIFS (such as Samba 2.2.5 or later). To enable the Unix CIFS Extensions in the Samba server, add the line::h]hXMost current servers support SMB2.1 and SMB3 which are more secure, but there are useful protocol extensions for the older less secure CIFS dialect, so to get the maximum benefit if mounting using the older dialect (CIFS/SMB1), we recommend using a server that supports the SNIA CIFS Unix Extensions standard (e.g. almost any version of Samba ie version 2.2.5 or later) but the CIFS vfs works fine with a wide variety of CIFS servers. Note that uid, gid and file permissions will display default values if you do not have a server that supports the Unix extensions for CIFS (such as Samba 2.2.5 or later). To enable the Unix CIFS Extensions in the Samba server, add the line:}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjIhhubj)}(hunix extensions = yesh]hunix extensions = yes}hjhsbah}(h]h ]h"]h$]h&]jjuh1jhhhKhjIhhubh)}(hto your smb.conf file on the server. Note that the following smb.conf settings are also useful (on the Samba server) when the majority of clients are Unix or Linux::h]hto your smb.conf file on the server. Note that the following smb.conf settings are also useful (on the Samba server) when the majority of clients are Unix or Linux:}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjIhhubj)}(h;case sensitive = yes delete readonly = yes ea support = yesh]h;case sensitive = yes delete readonly = yes ea support = yes}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhKhjIhhubh)}(hX Note that server ea support is required for supporting xattrs from the Linux cifs client, and that EA support is present in later versions of Samba (e.g. 3.0.6 and later (also EA support works in all versions of Windows, at least to shares on NTFS filesystems). Extended Attribute (xattr) support is an optional feature of most Linux filesystems which may require enabling via make menuconfig. Client support for extended attributes (user xattr) can be disabled on a per-mount basis by specifying ``nouser_xattr`` on mount.h](hXNote that server ea support is required for supporting xattrs from the Linux cifs client, and that EA support is present in later versions of Samba (e.g. 3.0.6 and later (also EA support works in all versions of Windows, at least to shares on NTFS filesystems). Extended Attribute (xattr) support is an optional feature of most Linux filesystems which may require enabling via make menuconfig. Client support for extended attributes (user xattr) can be disabled on a per-mount basis by specifying }(hjhhhNhNubj#)}(h``nouser_xattr``h]h nouser_xattr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubh on mount.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjIhhubh)}(hXIThe 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.h](hX6The 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 }(hjhhhNhNubj#)}(h ``noacl``h]hnoacl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubh on mount.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjIhhubh)}(hXSome administrators may want to change Samba's smb.conf ``map archive`` and ``create mask`` parameters from the default. Unless the create mask is changed newly created files can end up with an unnecessarily restrictive default mode, which may not be what you want, although if the CIFS Unix extensions are enabled on the server and client, subsequent setattr calls (e.g. chmod) can fix the mode. Note that creating special devices (mknod) remotely may require specifying a mkdev function to Samba if you are not using Samba 3.0.6 or later. For more information on these see the manual pages (``man smb.conf``) on the Samba server system. Note that the cifs vfs, unlike the smbfs vfs, does not read the smb.conf on the client system (the few optional settings are passed in on mount via -o parameters instead). Note that Samba 2.2.7 or later includes a fix that allows the CIFS VFS to delete open files (required for strict POSIX compliance). Windows Servers already supported this feature. Samba server does not allow symlinks that refer to files outside of the share, so in Samba versions prior to 3.0.6, most symlinks to files with absolute paths (ie beginning with slash) such as::h](h:Some administrators may want to change Samba’s smb.conf }(hjhhhNhNubj#)}(h``map archive``h]h map archive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubh and }(hjhhhNhNubj#)}(h``create mask``h]h create mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubhX parameters from the default. Unless the create mask is changed newly created files can end up with an unnecessarily restrictive default mode, which may not be what you want, although if the CIFS Unix extensions are enabled on the server and client, subsequent setattr calls (e.g. chmod) can fix the mode. Note that creating special devices (mknod) remotely may require specifying a mkdev function to Samba if you are not using Samba 3.0.6 or later. For more information on these see the manual pages (}(hjhhhNhNubj#)}(h``man smb.conf``h]h man smb.conf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubhXA) on the Samba server system. Note that the cifs vfs, unlike the smbfs vfs, does not read the smb.conf on the client system (the few optional settings are passed in on mount via -o parameters instead). Note that Samba 2.2.7 or later includes a fix that allows the CIFS VFS to delete open files (required for strict POSIX compliance). Windows Servers already supported this feature. Samba server does not allow symlinks that refer to files outside of the share, so in Samba versions prior to 3.0.6, most symlinks to files with absolute paths (ie beginning with slash) such as:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjIhhubj)}(hln -s /mnt/foo barh]hln -s /mnt/foo bar}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhKhjIhhubh)}(hXwould be forbidden. Samba 3.0.6 server or later includes the ability to create such symlinks safely by converting unsafe symlinks (ie symlinks to server files that are outside of the share) to a samba specific format on the server that is ignored by local server applications and non-cifs clients and that will not be traversed by the Samba server). This is opaque to the Linux client application using the cifs vfs. Absolute symlinks will work to Samba 3.0.5 or later, but only for remote clients using the CIFS Unix extensions, and will be invisible to Windows clients and typically will not affect local applications running on the same server as Samba.h]hXwould be forbidden. Samba 3.0.6 server or later includes the ability to create such symlinks safely by converting unsafe symlinks (ie symlinks to server files that are outside of the share) to a samba specific format on the server that is ignored by local server applications and non-cifs clients and that will not be traversed by the Samba server). This is opaque to the Linux client application using the cifs vfs. Absolute symlinks will work to Samba 3.0.5 or later, but only for remote clients using the CIFS Unix extensions, and will be invisible to Windows clients and typically will not affect local applications running on the same server as Samba.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjIhhubeh}(h]samba-considerationsah ]h"]samba considerationsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hUse instructionsh]hUse instructions}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hhhhhKubh)}(hOnce the CIFS VFS support is built into the kernel or installed as a module (cifs.ko), you can use mount syntax like the following to access Samba or Mac or Windows servers::h]hOnce the CIFS VFS support is built into the kernel or installed as a module (cifs.ko), you can use mount syntax like the following to access Samba or Mac or Windows servers:}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj:hhubj)}(hJmount -t cifs //9.53.216.11/e$ /mnt -o username=myname,password=mypasswordh]hJmount -t cifs //9.53.216.11/e$ /mnt -o username=myname,password=mypassword}hjYsbah}(h]h ]h"]h$]h&]jjuh1jhhhKhj:hhubh)}(hBefore -o the option -v may be specified to make the mount.cifs mount helper display the mount steps more verbosely. After -o the following commonly used cifs vfs specific options are supported::h]hBefore -o the option -v may be specified to make the mount.cifs mount helper display the mount steps more verbosely. After -o the following commonly used cifs vfs specific options are supported:}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj:hhubj)}(h password= domain=h]h password= domain=}hjusbah}(h]h ]h"]h$]h&]jjuh1jhhhKhj:hhubh)}(hXOther cifs mount options are described below. Use of TCP names (in addition to ip addresses) is available if the mount helper (mount.cifs) is installed. If you do not trust the server to which are mounted, or if you do not have cifs signing enabled (and the physical network is insecure), consider use of the standard mount options ``noexec`` and ``nosuid`` to reduce the risk of running an altered binary on your local system (downloaded from a hostile server or altered by a hostile router).h](hXMOther cifs mount options are described below. Use of TCP names (in addition to ip addresses) is available if the mount helper (mount.cifs) is installed. If you do not trust the server to which are mounted, or if you do not have cifs signing enabled (and the physical network is insecure), consider use of the standard mount options }(hjhhhNhNubj#)}(h ``noexec``h]hnoexec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubh and }(hjhhhNhNubj#)}(h ``nosuid``h]hnosuid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubh to reduce the risk of running an altered binary on your local system (downloaded from a hostile server or altered by a hostile router).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj:hhubh)}(hX-Although mounting using format corresponding to the CIFS URL specification is not possible in mount.cifs yet, it is possible to use an alternate format for the server and sharename (which is somewhat similar to NFS style mount syntax) instead of the more widely used UNC format (i.e. \\server\share)::h]hX,Although mounting using format corresponding to the CIFS URL specification is not possible in mount.cifs yet, it is possible to use an alternate format for the server and sharename (which is somewhat similar to NFS style mount syntax) instead of the more widely used UNC format (i.e. \servershare):}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj:hhubj)}(hMmount -t cifs tcp_name_of_server:share_name /mnt -o user=myname,pass=mypasswdh]hMmount -t cifs tcp_name_of_server:share_name /mnt -o user=myname,pass=mypasswd}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhKhj:hhubh)}(hX=When using the mount helper mount.cifs, passwords may be specified via alternate mechanisms, instead of specifying it after -o using the normal ``pass=`` syntax on the command line: 1) By including it in a credential file. Specify credentials=filename as one of the mount options. Credential files contain two lines::h](hWhen using the mount helper mount.cifs, passwords may be specified via alternate mechanisms, instead of specifying it after -o using the normal }(hjhhhNhNubj#)}(h ``pass=``h]hpass=}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubh syntax on the command line: 1) By including it in a credential file. Specify credentials=filename as one of the mount options. Credential files contain two lines:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj:hhubj)}(h(username=someuser password=your_passwordh]h(username=someuser password=your_password}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhKhj:hhubjh)}(hhh](jm)}(hBy specifying the password in the PASSWD environment variable (similarly the user name can be taken from the USER environment variable).h]h)}(hBy specifying the password in the PASSWD environment variable (similarly the user name can be taken from the USER environment variable).h]hBy specifying the password in the PASSWD environment variable (similarly the user name can be taken from the USER environment variable).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jlhjhhhhhNubjm)}(h|: 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. nomapchars Do not translate any of these seven characters (default). nocase Request case insensitive path name matching (case sensitive is the default if the server supports it). (mount option ``ignorecase`` is identical to ``nocase``) posixpaths If CIFS Unix extensions are supported, attempt to negotiate posix path name support which allows certain characters forbidden in typical CIFS filenames, without requiring remapping. (default) noposixpaths If CIFS Unix extensions are supported, do not request posix path name support (this may cause servers to reject creatingfile with certain reserved characters). nounix Disable the CIFS Unix Extensions for this mount (tree connection). This is rarely needed, but it may be useful in order to turn off multiple settings all at once (ie posix acls, posix locks, posix paths, symlink support and retrieving uids/gids/mode from the server) or to work around a bug in server which implement the Unix Extensions. nobrl 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). forcemandatorylock Even if the server supports posix (advisory) byte range locking, send only mandatory lock requests. For some (presumably rare) applications, originally coded for DOS/Windows, which require Windows style mandatory byte range locking, they may be able to take advantage of this option, forcing the cifs client to only send mandatory locks even if the cifs server would support posix advisory locks. ``forcemand`` is accepted as a shorter form of this mount option. nostrictsync If this mount option is set, when an application does an fsync call then the cifs client does not send an SMB Flush to the server (to force the server to write all dirty data for this file immediately to disk), although cifs still sends all dirty (cached) file data to the server and waits for the server to respond to the write. Since SMB Flush can be very slow, and some servers may be reliable enough (to risk delaying slightly flushing the data to disk on the server), turning on this option may be useful to improve performance for applications that fsync too much, at a small risk of server crash. If this mount option is not set, by default cifs will send an SMB flush request (and wait for a response) on every fsync call. nodfs Disable DFS (global name space support) even if the server claims to support it. This can help work around a problem with parsing of DFS paths with Samba server versions 3.0.24 and 3.0.25. remount remount the share (often used to change from ro to rw mounts or vice versa) cifsacl Report mode bits (e.g. on stat) based on the Windows ACL for the file. (EXPERIMENTAL) servern Specify the server 's netbios name (RFC1001 name) to use when attempting to setup a session to the server. This is needed for mounting to some older servers (such as OS/2 or Windows 98 and Windows ME) since they do not support a default server name. A server name can be up to 15 characters long and is usually uppercased. sfu 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 also will be emulated using queries of the security descriptor (ACL). mfsymlinks Enable support for Minshall+French symlinks (see http://wiki.samba.org/index.php/UNIX_Extensions#Minshall.2BFrench_symlinks) This option is ignored when specified together with the 'sfu' option. Minshall+French symlinks are used even if the server supports the CIFS Unix Extensions. sign Must use packet signing (helps avoid unwanted data modification by intermediate systems in the route). Note that signing does not work with lanman or plaintext authentication. seal Must seal (encrypt) all data on this mounted share before sending on the network. Requires support for Unix Extensions. Note that this differs from the sign mount option in that it causes encryption of data sent over this mounted share but other shares mounted to the same server are unaffected. locallease This option is rarely needed. Fcntl F_SETLEASE is used by some applications such as Samba and NFSv4 server to check to see whether a file is cacheable. CIFS has no way to explicitly request a lease, but can check whether a file is cacheable (oplocked). Unfortunately, even if a file is not oplocked, it could still be cacheable (ie cifs client could grant fcntl leases if no other local processes are using the file) for cases for example such as when the server does not support oplocks and the user is sure that the only updates to the file will be from this client. Specifying this mount option will allow the cifs client to check for leases (only) locally for files which are not oplocked instead of denying leases in that case. (EXPERIMENTAL) sec Security mode. Allowed values are: none attempt to connection as a null user (no name) krb5 Use Kerberos version 5 authentication krb5i Use Kerberos authentication and packet signing ntlm Use NTLM password hashing (default) ntlmi Use NTLM password hashing with signing (if /proc/fs/cifs/PacketSigningEnabled on or if server requires signing also can be the default) ntlmv2 Use NTLMv2 password hashing ntlmv2i Use NTLMv2 password hashing with packet signing lanman (if configured in kernel config) use older lanman hash hard Retry file operations if server is not responding soft Limit retries to unresponsive servers (usually only one retry) before returning an error. (default) h]hdefinition_list)}(hhh](hdefinition_list_item)}(hHusername The user name to use when trying to establish the CIFS session.h](hterm)}(husernameh]husername}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubh definition)}(hhh]h)}(h?The user name to use when trying to establish the CIFS session.h]h?The user name to use when trying to establish the CIFS session.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hvpassword The user password. If the mount helper is installed, the user will be prompted for password if not supplied.h](j)}(hpasswordh]hpassword}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(hmThe user password. If the mount helper is installed, the user will be prompted for password if not supplied.h]hmThe user password. If the mount helper is installed, the user will be prompted for password if not supplied.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(h&ip The ip address of the target serverh](j)}(hiph]hip}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjKubj)}(hhh]h)}(h#The ip address of the target serverh]h#The ip address of the target server}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj]ubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(h?unc The target server Universal Network Name (export) to mount.h](j)}(hunch]hunc}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjzubj)}(hhh]h)}(h;The target server Universal Network Name (export) to mount.h]h;The target server Universal Network Name (export) to mount.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhhhM hjubj)}(hbdomain Set the SMB/CIFS workgroup name prepended to the username during CIFS session establishmenth](j)}(hdomainh]hdomain}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM#hjubj)}(hhh]h)}(h[Set the SMB/CIFS workgroup name prepended to the username during CIFS session establishmenth]h[Set the SMB/CIFS workgroup name prepended to the username during CIFS session establishment}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhM#hjubj)}(hXforceuid Set the default uid for inodes to the uid passed in on mount. 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 clients 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. 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. (default)h](j)}(hforceuidh]hforceuid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM=hjubj)}(hhh]h)}(hXSet the default uid for inodes to the uid passed in on mount. 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 clients 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. 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. (default)h](hX3Set the default uid for inodes to the uid passed in on mount. 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 clients 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 }(hjhhhNhNubj#)}(h``uid=``h]huid=}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubhX (gid) mount option is specified. 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. (default)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhM=hjubj)}(hHforcegid (similar to above but for the groupid instead of uid) (default)h](j)}(hforcegidh]hforcegid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM?hjubj)}(hhh]h)}(h?(similar to above but for the groupid instead of uid) (default)h]h?(similar to above but for the groupid instead of uid) (default)}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM@hj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhM?hjubj)}(hnoforceuid Fill in file owner information (uid) by requesting it from the server if possible. With this option, the value given in the uid= option (on mount) will only be used if the server can not support returning uids on inodes.h](j)}(h noforceuidh]h noforceuid}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMDhjHubj)}(hhh]h)}(hFill in file owner information (uid) by requesting it from the server if possible. With this option, the value given in the uid= option (on mount) will only be used if the server can not support returning uids on inodes.h]hFill in file owner information (uid) by requesting it from the server if possible. With this option, the value given in the uid= option (on mount) will only be used if the server can not support returning uids on inodes.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMBhjZubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhhhMDhjubj)}(hJnoforcegid (similar to above but for the group owner, gid, instead of uid)h](j)}(h noforcegidh]h noforcegid}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMFhjwubj)}(hhh]h)}(h?(similar to above but for the group owner, gid, instead of uid)h]h?(similar to above but for the group owner, gid, instead of uid)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMGhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhhhMFhjubj)}(hX uid Set the default uid for inodes, and indicate to the cifs kernel driver which local user mounted. If the server supports the unix extensions the default uid is not used to fill in the owner fields of inodes (files) unless the ``forceuid`` parameter is specified.h](j)}(huidh]huid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMLhjubj)}(hhh]h)}(hXSet the default uid for inodes, and indicate to the cifs kernel driver which local user mounted. If the server supports the unix extensions the default uid is not used to fill in the owner fields of inodes (files) unless the ``forceuid`` parameter is specified.h](hSet the default uid for inodes, and indicate to the cifs kernel driver which local user mounted. If the server supports the unix extensions the default uid is not used to fill in the owner fields of inodes (files) unless the }(hjhhhNhNubj#)}(h ``forceuid``h]hforceuid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubh parameter is specified.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMLhjubj)}(h6gid Set the default gid for inodes (similar to above).h](j)}(hgidh]hgid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMNhjubj)}(hhh]h)}(h2Set the default gid for inodes (similar to above).h]h2Set the default gid for inodes (similar to above).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMOhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMNhjubj)}(hrfile_mode If CIFS Unix extensions are not supported by the server this overrides the default mode for file inodes.h](j)}(h file_modeh]h file_mode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMQhj ubj)}(hhh]h)}(hhIf CIFS Unix extensions are not supported by the server this overrides the default mode for file inodes.h]hhIf CIFS Unix extensions are not supported by the server this overrides the default mode for file inodes.}(hj+ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMQhj( ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMQhjubj)}(hX]fsc Enable local disk caching using FS-Cache (off by default). This option could be useful to improve performance on a slow link, heavily loaded server and/or network where reading from the disk is faster than reading from the server (over the network). This could also impact scalability positively as the number of calls to the server are reduced. However, local caching is not suitable for all workloads for e.g. read-once type workloads. So, you need to consider carefully your workload/scenario before using this option. Currently, local disk caching is functional for CIFS files opened as read-only.h](j)}(hfsch]hfsc}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM\hjE ubj)}(hhh]h)}(hXYEnable local disk caching using FS-Cache (off by default). This option could be useful to improve performance on a slow link, heavily loaded server and/or network where reading from the disk is faster than reading from the server (over the network). This could also impact scalability positively as the number of calls to the server are reduced. However, local caching is not suitable for all workloads for e.g. read-once type workloads. So, you need to consider carefully your workload/scenario before using this option. Currently, local disk caching is functional for CIFS files opened as read-only.h]hXYEnable local disk caching using FS-Cache (off by default). This option could be useful to improve performance on a slow link, heavily loaded server and/or network where reading from the disk is faster than reading from the server (over the network). This could also impact scalability positively as the number of calls to the server are reduced. However, local caching is not suitable for all workloads for e.g. read-once type workloads. So, you need to consider carefully your workload/scenario before using this option. Currently, local disk caching is functional for CIFS files opened as read-only.}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMThjW ubah}(h]h ]h"]h$]h&]uh1jhjE ubeh}(h]h ]h"]h$]h&]uh1jhhhM\hjubj)}(hvdir_mode If CIFS Unix extensions are not supported by the server this overrides the default mode for directory inodes.h](j)}(hdir_modeh]hdir_mode}(hjx hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM_hjt ubj)}(hhh]h)}(hmIf CIFS Unix extensions are not supported by the server this overrides the default mode for directory inodes.h]hmIf CIFS Unix extensions are not supported by the server this overrides the default mode for directory inodes.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM_hj ubah}(h]h ]h"]h$]h&]uh1jhjt ubeh}(h]h ]h"]h$]h&]uh1jhhhM_hjubj)}(hhport attempt to contact the server on this tcp port, before trying the usual ports (port 445, then 139).h](j)}(hporth]hport}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMbhj ubj)}(hhh]h)}(hcattempt to contact the server on this tcp port, before trying the usual ports (port 445, then 139).h]hcattempt to contact the server on this tcp port, before trying the usual ports (port 445, then 139).}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMbhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMbhjubj)}(hXDiocharset Codepage 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.h](j)}(h iocharseth]h iocharset}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMjhj ubj)}(hhh]h)}(hX:Codepage 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.h]hX:Codepage 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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMehj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMjhjubj)}(hXrsize default 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)h](j)}(hrsizeh]hrsize}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMwhj ubj)}(hhh]h)}(hXdefault 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)h]hXdefault 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)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMmhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMwhjubj)}(htwsize default write size (default 57344) maximum wsize currently allowed by CIFS is 57344 (fourteen 4096 byte pages)h](j)}(hwsizeh]hwsize}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM{hj0 ubj)}(hhh]h)}(hndefault write size (default 57344) maximum wsize currently allowed by CIFS is 57344 (fourteen 4096 byte pages)h]hndefault write size (default 57344) maximum wsize currently allowed by CIFS is 57344 (fourteen 4096 byte pages)}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMzhjB ubah}(h]h ]h"]h$]h&]uh1jhj0 ubeh}(h]h ]h"]h$]h&]uh1jhhhM{hjubj)}(hXactimeo=n attribute cache timeout in seconds (default 1 second). After this timeout, the cifs client requests fresh attribute information from the server. This option allows to tune the attribute cache timeout to suit the workload needs. Shorter timeouts mean better the cache coherency, but increased number of calls to the server. Longer timeouts mean reduced number of calls to the server at the expense of less stricter cache coherency checks (i.e. incorrect attribute cache for a short period of time).h](j)}(h actimeo=nh]h actimeo=n}(hjc hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj_ ubj)}(hhh]h)}(hXattribute cache timeout in seconds (default 1 second). After this timeout, the cifs client requests fresh attribute information from the server. This option allows to tune the attribute cache timeout to suit the workload needs. Shorter timeouts mean better the cache coherency, but increased number of calls to the server. Longer timeouts mean reduced number of calls to the server at the expense of less stricter cache coherency checks (i.e. incorrect attribute cache for a short period of time).h]hXattribute cache timeout in seconds (default 1 second). After this timeout, the cifs client requests fresh attribute information from the server. This option allows to tune the attribute cache timeout to suit the workload needs. Shorter timeouts mean better the cache coherency, but increased number of calls to the server. Longer timeouts mean reduced number of calls to the server at the expense of less stricter cache coherency checks (i.e. incorrect attribute cache for a short period of time).}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM~hjq ubah}(h]h ]h"]h$]h&]uh1jhj_ ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hcrw mount the network share read-write (note that the server may still consider the share read-only)h](j)}(hrwh]hrw}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hhh]h)}(h`mount the network share read-write (note that the server may still consider the share read-only)h]h`mount the network share read-write (note that the server may still consider the share read-only)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(h ro mount network share read-onlyh](j)}(hroh]hro}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hhh]h)}(hmount network share read-onlyh]hmount network share read-only}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(haversion used to distinguish different versions of the mount helper utility (not typically needed)h](j)}(hversionh]hversion}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hhh]h)}(hYused to distinguish different versions of the mount helper utility (not typically needed)h]hYused to distinguish different versions of the mount helper utility (not typically needed)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hXsep if first mount option (after the -o), overrides the comma as the separator between the mount parameters. e.g.:: -o user=myname,password=mypassword,domain=mydom could be passed instead with period as the separator by:: -o sep=.user=myname.password=mypassword.domain=mydom this might be useful when comma is contained within username or password or domain. This option is less important when the cifs mount helper cifs.mount (version 1.1 or later) is used.h](j)}(hseph]hsep}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hhh](h)}(hoif first mount option (after the -o), overrides the comma as the separator between the mount parameters. e.g.::h]hnif first mount option (after the -o), overrides the comma as the separator between the mount parameters. e.g.:}(hj0 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj- ubj)}(h/-o user=myname,password=mypassword,domain=mydomh]h/-o user=myname,password=mypassword,domain=mydom}hj> sbah}(h]h ]h"]h$]h&]jjuh1jhhhMhj- ubh)}(h9could be passed instead with period as the separator by::h]h8could be passed instead with period as the separator by:}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj- ubj)}(h4-o sep=.user=myname.password=mypassword.domain=mydomh]h4-o sep=.user=myname.password=mypassword.domain=mydom}hjZ sbah}(h]h ]h"]h$]h&]jjuh1jhhhMhj- ubh)}(hthis might be useful when comma is contained within username or password or domain. This option is less important when the cifs mount helper cifs.mount (version 1.1 or later) is used.h]hthis might be useful when comma is contained within username or password or domain. This option is less important when the cifs mount helper cifs.mount (version 1.1 or later) is used.}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj- ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hX?nosuid Do not allow remote executables with the suid bit program to be executed. This is only meaningful for mounts to servers such as Samba which support the CIFS Unix Extensions. If you do not trust the servers in your network (your mount targets) it is recommended that you specify this option for greater security.h](j)}(hnosuidh]hnosuid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hhh]h)}(hX8Do not allow remote executables with the suid bit program to be executed. This is only meaningful for mounts to servers such as Samba which support the CIFS Unix Extensions. If you do not trust the servers in your network (your mount targets) it is recommended that you specify this option for greater security.h]hX8Do not allow remote executables with the suid bit program to be executed. This is only meaningful for mounts to servers such as Samba which support the CIFS Unix Extensions. If you do not trust the servers in your network (your mount targets) it is recommended that you specify this option for greater security.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(h/exec Permit execution of binaries on the mount.h](j)}(hexech]hexec}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hhh]h)}(h*Permit execution of binaries on the mount.h]h*Permit execution of binaries on the mount.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(h8noexec Do not permit execution of binaries on the mount.h](j)}(hnoexech]hnoexec}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hhh]h)}(h1Do not permit execution of binaries on the mount.h]h1Do not permit execution of binaries on the mount.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(h0dev Recognize block devices on the remote mount.h](j)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hhh]h)}(h,Recognize block devices on the remote mount.h]h,Recognize block devices on the remote mount.}(hj$ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj! ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(h3nodev Do not recognize devices on the remote mount.h](j)}(hnodevh]hnodev}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj> ubj)}(hhh]h)}(h-Do not recognize devices on the remote mount.h]h-Do not recognize devices on the remote mount.}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjP ubah}(h]h ]h"]h$]h&]uh1jhj> ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hsuid Allow remote files on this mountpoint with suid enabled to be executed (default for mounts when executed as root, nosuid is default for user mounts).h](j)}(hsuidh]hsuid}(hjq hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjm ubj)}(hhh]h)}(hAllow remote files on this mountpoint with suid enabled to be executed (default for mounts when executed as root, nosuid is default for user mounts).h]hAllow remote files on this mountpoint with suid enabled to be executed (default for mounts when executed as root, nosuid is default for user mounts).}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhjm ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hX credentials Although ignored by the cifs kernel component, it is used by the mount helper, mount.cifs. When mount.cifs is installed it opens and reads the credential file specified in order to obtain the userid and password arguments which are passed to the cifs vfs.h](j)}(h credentialsh]h credentials}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hhh]h)}(hAlthough ignored by the cifs kernel component, it is used by the mount helper, mount.cifs. When mount.cifs is installed it opens and reads the credential file specified in order to obtain the userid and password arguments which are passed to the cifs vfs.h]hAlthough ignored by the cifs kernel component, it is used by the mount helper, mount.cifs. When mount.cifs is installed it opens and reads the credential file specified in order to obtain the userid and password arguments which are passed to the cifs vfs.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hguest Although ignored by the kernel component, the mount.cifs mount helper will not prompt the user for a password if guest is specified on the mount options. If no password is specified a null password will be used.h](j)}(hguesth]hguest}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hhh]h)}(hAlthough ignored by the kernel component, the mount.cifs mount helper will not prompt the user for a password if guest is specified on the mount options. If no password is specified a null password will be used.h]hAlthough ignored by the kernel component, the mount.cifs mount helper will not prompt the user for a password if guest is specified on the mount options. If no password is specified a null password will be used.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hXperm 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.h](j)}(hpermh]hperm}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hhh]h)}(hXClient 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.h]hXClient 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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hXnoperm 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, but it may be useful with non CIFS Unix Extension mounts for cases in which the default mode is specified on the mount but is not to be enforced on the client (e.g. perhaps when MultiUserMount is enabled) 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).h](j)}(hnopermh]hnoperm}(hj- hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj) ubj)}(hhh]h)}(hXClient 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, but it may be useful with non CIFS Unix Extension mounts for cases in which the default mode is specified on the mount but is not to be enforced on the client (e.g. perhaps when MultiUserMount is enabled) 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).h]hXClient 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, but it may be useful with non CIFS Unix Extension mounts for cases in which the default mode is specified on the mount but is not to be enforced on the client (e.g. perhaps when MultiUserMount is enabled) 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).}(hj> hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj; ubah}(h]h ]h"]h$]h&]uh1jhj) ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hX\serverino Use server's inode numbers instead of generating automatically incrementing inode numbers on the client. Although this will make it easier to spot hardlinked files (as they will have the same inode numbers) and inode numbers may be persistent, note that 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 some older (e.g. pre-Windows 2000) do not support returning UniqueIDs or the CIFS Unix Extensions equivalent and for those this mount option will have no effect. Exporting cifs mounts under nfsd requires this mount option on the cifs mount. This is now the default if server supports the required network operation.h](j)}(h serverinoh]h serverino}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjX ubj)}(hhh]h)}(hXRUse server's inode numbers instead of generating automatically incrementing inode numbers on the client. Although this will make it easier to spot hardlinked files (as they will have the same inode numbers) and inode numbers may be persistent, note that 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 some older (e.g. pre-Windows 2000) do not support returning UniqueIDs or the CIFS Unix Extensions equivalent and for those this mount option will have no effect. Exporting cifs mounts under nfsd requires this mount option on the cifs mount. This is now the default if server supports the required network operation.h]hXTUse server’s inode numbers instead of generating automatically incrementing inode numbers on the client. Although this will make it easier to spot hardlinked files (as they will have the same inode numbers) and inode numbers may be persistent, note that 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 some older (e.g. pre-Windows 2000) do not support returning UniqueIDs or the CIFS Unix Extensions equivalent and for those this mount option will have no effect. Exporting cifs mounts under nfsd requires this mount option on the cifs mount. This is now the default if server supports the required network operation.}(hjm hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjj ubah}(h]h ]h"]h$]h&]uh1jhjX ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hnoserverino Client generates inode numbers (rather than using the actual one from the server). These inode numbers will vary after unmount or reboot which can confuse some applications, but not all server filesystems support unique inode numbers.h](j)}(h noserverinoh]h noserverino}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hhh]h)}(hClient generates inode numbers (rather than using the actual one from the server). These inode numbers will vary after unmount or reboot which can confuse some applications, but not all server filesystems support unique inode numbers.h]hClient generates inode numbers (rather than using the actual one from the server). These inode numbers will vary after unmount or reboot which can confuse some applications, but not all server filesystems support unique inode numbers.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hX setuids 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 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).h](j)}(hsetuidsh]hsetuids}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hhh]h)}(hXIf 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 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).h]hXIf 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 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).}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hXnosetuids 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.h](j)}(h nosetuidsh]h nosetuids}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hhh]h)}(hXThe 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.h]hXThe 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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hnetbiosname 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.h](j)}(h netbiosnameh]h netbiosname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(hWhen 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.h]hWhen 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.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj&ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hXYdirect Do not do inode data caching on files opened on this mount. This precludes mmapping 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.h](j)}(hdirecth]hdirect}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjCubj)}(hhh]h)}(hXRDo not do inode data caching on files opened on this mount. This precludes mmapping 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.h]hXRDo not do inode data caching on files opened on this mount. This precludes mmapping 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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjUubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hX#strictcache Use for switching on strict cache mode. In this mode the client read from the cache all the time it has Oplock Level II, otherwise - read from the server. All written data are stored in the cache, but if the client doesn't have Exclusive Oplock, it writes the data to the server.h](j)}(h strictcacheh]h strictcache}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjrubj)}(hhh]h)}(hXUse for switching on strict cache mode. In this mode the client read from the cache all the time it has Oplock Level II, otherwise - read from the server. All written data are stored in the cache, but if the client doesn't have Exclusive Oplock, it writes the data to the server.h]hXUse for switching on strict cache mode. In this mode the client read from the cache all the time it has Oplock Level II, otherwise - read from the server. All written data are stored in the cache, but if the client doesn’t have Exclusive Oplock, it writes the data to the server.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhhhM hjubj)}(hrwpidforward Forward pid of a process who opened a file to any read or write operation on that file. This prevent applications like WINE from failing on read and write if we use mandatory brlock style.h](j)}(h rwpidforwardh]h rwpidforward}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(hForward pid of a process who opened a file to any read or write operation on that file. This prevent applications like WINE from failing on read and write if we use mandatory brlock style.h]hForward pid of a process who opened a file to any read or write operation on that file. This prevent applications like WINE from failing on read and write if we use mandatory brlock style.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hVacl Allow setfacl and getfacl to manage posix ACLs if server supports them. (default)h](j)}(haclh]hacl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(hRAllow setfacl and getfacl to manage posix ACLs if server supports them. (default)h]hRAllow setfacl and getfacl to manage posix ACLs if server supports them. (default)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(h:noacl Do not allow setfacl and getfacl calls on this mounth](j)}(hnoaclh]hnoacl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(h4Do not allow setfacl and getfacl calls on this mounth]h4Do not allow setfacl and getfacl calls on this mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(huser_xattr Allow getting and setting user xattrs (those attributes whose name begins with ``user.`` or ``os2.``) as OS/2 EAs (extended attributes) to the server. This allows support of the setfattr and getfattr utilities. (default)h](j)}(h user_xattrh]h user_xattr}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj.ubj)}(hhh]h)}(hAllow getting and setting user xattrs (those attributes whose name begins with ``user.`` or ``os2.``) as OS/2 EAs (extended attributes) to the server. This allows support of the setfattr and getfattr utilities. (default)h](hOAllow getting and setting user xattrs (those attributes whose name begins with }(hjChhhNhNubj#)}(h ``user.``h]huser.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjCubh or }(hjChhhNhNubj#)}(h``os2.``h]hos2.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjCubhy) as OS/2 EAs (extended attributes) to the server. This allows support of the setfattr and getfattr utilities. (default)}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj@ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hBnouser_xattr Do not allow getfattr/setfattr to get/set/list xattrsh](j)}(h nouser_xattrh]h nouser_xattr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(h5Do not allow getfattr/setfattr to get/set/list xattrsh]h5Do not allow getfattr/setfattr to get/set/list xattrs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hXmapchars Translate six of the seven reserved characters (not backslash):: *?<>|: 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.h](j)}(hmapcharsh]hmapchars}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM*hjubj)}(hhh](h)}(h@Translate six of the seven reserved characters (not backslash)::h]h?Translate six of the seven reserved characters (not backslash):}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjubj)}(h*?<>|:h]h*?<>|:}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhM"hjubh)}(hX|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.h]hX~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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM$hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhM*hjubj)}(hDnomapchars Do not translate any of these seven characters (default).h](j)}(h nomapcharsh]h nomapchars}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM,hjubj)}(hhh]h)}(h9Do not translate any of these seven characters (default).h]h9Do not translate any of these seven characters (default).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM-hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhM,hjubj)}(hnocase Request case insensitive path name matching (case sensitive is the default if the server supports it). (mount option ``ignorecase`` is identical to ``nocase``)h](j)}(hnocaseh]hnocase}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM0hj*ubj)}(hhh]h)}(hRequest case insensitive path name matching (case sensitive is the default if the server supports it). (mount option ``ignorecase`` is identical to ``nocase``)h](huRequest case insensitive path name matching (case sensitive is the default if the server supports it). (mount option }(hj?hhhNhNubj#)}(h``ignorecase``h]h ignorecase}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hj?ubh is identical to }(hj?hhhNhNubj#)}(h ``nocase``h]hnocase}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hj?ubh)}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM/hj<ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhhhM0hjubj)}(hposixpaths If CIFS Unix extensions are supported, attempt to negotiate posix path name support which allows certain characters forbidden in typical CIFS filenames, without requiring remapping. (default)h](j)}(h posixpathsh]h posixpaths}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM5hj}ubj)}(hhh]h)}(hIf CIFS Unix extensions are supported, attempt to negotiate posix path name support which allows certain characters forbidden in typical CIFS filenames, without requiring remapping. (default)h]hIf CIFS Unix extensions are supported, attempt to negotiate posix path name support which allows certain characters forbidden in typical CIFS filenames, without requiring remapping. (default)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM3hjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhhhM5hjubj)}(hnoposixpaths If CIFS Unix extensions are supported, do not request posix path name support (this may cause servers to reject creatingfile with certain reserved characters).h](j)}(h noposixpathsh]h noposixpaths}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM9hjubj)}(hhh]h)}(hIf CIFS Unix extensions are supported, do not request posix path name support (this may cause servers to reject creatingfile with certain reserved characters).h]hIf CIFS Unix extensions are supported, do not request posix path name support (this may cause servers to reject creatingfile with certain reserved characters).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhM9hjubj)}(hXXnounix Disable the CIFS Unix Extensions for this mount (tree connection). This is rarely needed, but it may be useful in order to turn off multiple settings all at once (ie posix acls, posix locks, posix paths, symlink support and retrieving uids/gids/mode from the server) or to work around a bug in server which implement the Unix Extensions.h](j)}(hnounixh]hnounix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMAhjubj)}(hhh]h)}(hXQDisable the CIFS Unix Extensions for this mount (tree connection). This is rarely needed, but it may be useful in order to turn off multiple settings all at once (ie posix acls, posix locks, posix paths, symlink support and retrieving uids/gids/mode from the server) or to work around a bug in server which implement the Unix Extensions.h]hXQDisable the CIFS Unix Extensions for this mount (tree connection). This is rarely needed, but it may be useful in order to turn off multiple settings all at once (ie posix acls, posix locks, posix paths, symlink support and retrieving uids/gids/mode from the server) or to work around a bug in server which implement the Unix Extensions.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM<hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMAhjubj)}(hnobrl 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).h](j)}(hnobrlh]hnobrl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMGhj ubj)}(hhh]h)}(hDo 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).h]hDo 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).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMDhjubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMGhjubj)}(hXforcemandatorylock Even if the server supports posix (advisory) byte range locking, send only mandatory lock requests. For some (presumably rare) applications, originally coded for DOS/Windows, which require Windows style mandatory byte range locking, they may be able to take advantage of this option, forcing the cifs client to only send mandatory locks even if the cifs server would support posix advisory locks. ``forcemand`` is accepted as a shorter form of this mount option.h](j)}(hforcemandatorylockh]hforcemandatorylock}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMQhj9ubj)}(hhh]h)}(hXEven if the server supports posix (advisory) byte range locking, send only mandatory lock requests. For some (presumably rare) applications, originally coded for DOS/Windows, which require Windows style mandatory byte range locking, they may be able to take advantage of this option, forcing the cifs client to only send mandatory locks even if the cifs server would support posix advisory locks. ``forcemand`` is accepted as a shorter form of this mount option.h](hXEven if the server supports posix (advisory) byte range locking, send only mandatory lock requests. For some (presumably rare) applications, originally coded for DOS/Windows, which require Windows style mandatory byte range locking, they may be able to take advantage of this option, forcing the cifs client to only send mandatory locks even if the cifs server would support posix advisory locks. }(hjNhhhNhNubj#)}(h ``forcemand``h]h forcemand}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjNubh4 is accepted as a shorter form of this mount option.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMJhjKubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhhhMQhjubj)}(hXnostrictsync If this mount option is set, when an application does an fsync call then the cifs client does not send an SMB Flush to the server (to force the server to write all dirty data for this file immediately to disk), although cifs still sends all dirty (cached) file data to the server and waits for the server to respond to the write. Since SMB Flush can be very slow, and some servers may be reliable enough (to risk delaying slightly flushing the data to disk on the server), turning on this option may be useful to improve performance for applications that fsync too much, at a small risk of server crash. If this mount option is not set, by default cifs will send an SMB flush request (and wait for a response) on every fsync call.h](j)}(h nostrictsynch]h nostrictsync}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM_hjzubj)}(hhh]h)}(hXIf this mount option is set, when an application does an fsync call then the cifs client does not send an SMB Flush to the server (to force the server to write all dirty data for this file immediately to disk), although cifs still sends all dirty (cached) file data to the server and waits for the server to respond to the write. Since SMB Flush can be very slow, and some servers may be reliable enough (to risk delaying slightly flushing the data to disk on the server), turning on this option may be useful to improve performance for applications that fsync too much, at a small risk of server crash. If this mount option is not set, by default cifs will send an SMB flush request (and wait for a response) on every fsync call.h]hXIf this mount option is set, when an application does an fsync call then the cifs client does not send an SMB Flush to the server (to force the server to write all dirty data for this file immediately to disk), although cifs still sends all dirty (cached) file data to the server and waits for the server to respond to the write. Since SMB Flush can be very slow, and some servers may be reliable enough (to risk delaying slightly flushing the data to disk on the server), turning on this option may be useful to improve performance for applications that fsync too much, at a small risk of server crash. If this mount option is not set, by default cifs will send an SMB flush request (and wait for a response) on every fsync call.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMThjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhhhM_hjubj)}(hnodfs Disable DFS (global name space support) even if the server claims to support it. This can help work around a problem with parsing of DFS paths with Samba server versions 3.0.24 and 3.0.25.h](j)}(hnodfsh]hnodfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMdhjubj)}(hhh]h)}(hDisable DFS (global name space support) even if the server claims to support it. This can help work around a problem with parsing of DFS paths with Samba server versions 3.0.24 and 3.0.25.h]hDisable DFS (global name space support) even if the server claims to support it. This can help work around a problem with parsing of DFS paths with Samba server versions 3.0.24 and 3.0.25.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMbhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMdhjubj)}(hSremount remount the share (often used to change from ro to rw mounts or vice versa)h](j)}(hremounth]hremount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMghjubj)}(hhh]h)}(hKremount the share (often used to change from ro to rw mounts or vice versa)h]hKremount the share (often used to change from ro to rw mounts or vice versa)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMghjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMghjubj)}(h]cifsacl Report mode bits (e.g. on stat) based on the Windows ACL for the file. (EXPERIMENTAL)h](j)}(hcifsaclh]hcifsacl}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMjhjubj)}(hhh]h)}(hUReport mode bits (e.g. on stat) based on the Windows ACL for the file. (EXPERIMENTAL)h]hUReport mode bits (e.g. on stat) based on the Windows ACL for the file. (EXPERIMENTAL)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMjhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMjhjubj)}(hXKservern Specify the server 's netbios name (RFC1001 name) to use when attempting to setup a session to the server. This is needed for mounting to some older servers (such as OS/2 or Windows 98 and Windows ME) since they do not support a default server name. A server name can be up to 15 characters long and is usually uppercased.h](j)}(hservernh]hservern}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMqhj6ubj)}(hhh]h)}(hXCSpecify the server 's netbios name (RFC1001 name) to use when attempting to setup a session to the server. This is needed for mounting to some older servers (such as OS/2 or Windows 98 and Windows ME) since they do not support a default server name. A server name can be up to 15 characters long and is usually uppercased.h]hXESpecify the server ‘s netbios name (RFC1001 name) to use when attempting to setup a session to the server. This is needed for mounting to some older servers (such as OS/2 or Windows 98 and Windows ME) since they do not support a default server name. A server name can be up to 15 characters long and is usually uppercased.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMmhjHubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhhhMqhjubj)}(hXisfu 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 also will be emulated using queries of the security descriptor (ACL).h](j)}(hsfuh]hsfu}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMyhjeubj)}(hhh]h)}(hXeWhen 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 also will be emulated using queries of the security descriptor (ACL).h]hXeWhen 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 also will be emulated using queries of the security descriptor (ACL).}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMthjwubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhhhMyhjubj)}(hX%mfsymlinks Enable support for Minshall+French symlinks (see http://wiki.samba.org/index.php/UNIX_Extensions#Minshall.2BFrench_symlinks) This option is ignored when specified together with the 'sfu' option. Minshall+French symlinks are used even if the server supports the CIFS Unix Extensions.h](j)}(h mfsymlinksh]h mfsymlinks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(hXEnable support for Minshall+French symlinks (see http://wiki.samba.org/index.php/UNIX_Extensions#Minshall.2BFrench_symlinks) This option is ignored when specified together with the 'sfu' option. Minshall+French symlinks are used even if the server supports the CIFS Unix Extensions.h](h1Enable support for Minshall+French symlinks (see }(hjhhhNhNubh)}(hJhttp://wiki.samba.org/index.php/UNIX_Extensions#Minshall.2BFrench_symlinksh]hJhttp://wiki.samba.org/index.php/UNIX_Extensions#Minshall.2BFrench_symlinks}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurijuh1hhjubh) This option is ignored when specified together with the ‘sfu’ option. Minshall+French symlinks are used even if the server supports the CIFS Unix Extensions.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM|hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hsign Must use packet signing (helps avoid unwanted data modification by intermediate systems in the route). Note that signing does not work with lanman or plaintext authentication.h](j)}(hsignh]hsign}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(hMust use packet signing (helps avoid unwanted data modification by intermediate systems in the route). Note that signing does not work with lanman or plaintext authentication.h]hMust use packet signing (helps avoid unwanted data modification by intermediate systems in the route). Note that signing does not work with lanman or plaintext authentication.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hX-seal Must seal (encrypt) all data on this mounted share before sending on the network. Requires support for Unix Extensions. Note that this differs from the sign mount option in that it causes encryption of data sent over this mounted share but other shares mounted to the same server are unaffected.h](j)}(hsealh]hseal}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(hX(Must seal (encrypt) all data on this mounted share before sending on the network. Requires support for Unix Extensions. Note that this differs from the sign mount option in that it causes encryption of data sent over this mounted share but other shares mounted to the same server are unaffected.h]hX(Must seal (encrypt) all data on this mounted share before sending on the network. Requires support for Unix Extensions. Note that this differs from the sign mount option in that it causes encryption of data sent over this mounted share but other shares mounted to the same server are unaffected.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hXlocallease This option is rarely needed. Fcntl F_SETLEASE is used by some applications such as Samba and NFSv4 server to check to see whether a file is cacheable. CIFS has no way to explicitly request a lease, but can check whether a file is cacheable (oplocked). Unfortunately, even if a file is not oplocked, it could still be cacheable (ie cifs client could grant fcntl leases if no other local processes are using the file) for cases for example such as when the server does not support oplocks and the user is sure that the only updates to the file will be from this client. Specifying this mount option will allow the cifs client to check for leases (only) locally for files which are not oplocked instead of denying leases in that case. (EXPERIMENTAL)h](j)}(h localleaseh]h locallease}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj4ubj)}(hhh]h)}(hXThis option is rarely needed. Fcntl F_SETLEASE is used by some applications such as Samba and NFSv4 server to check to see whether a file is cacheable. CIFS has no way to explicitly request a lease, but can check whether a file is cacheable (oplocked). Unfortunately, even if a file is not oplocked, it could still be cacheable (ie cifs client could grant fcntl leases if no other local processes are using the file) for cases for example such as when the server does not support oplocks and the user is sure that the only updates to the file will be from this client. Specifying this mount option will allow the cifs client to check for leases (only) locally for files which are not oplocked instead of denying leases in that case. (EXPERIMENTAL)h]hXThis option is rarely needed. Fcntl F_SETLEASE is used by some applications such as Samba and NFSv4 server to check to see whether a file is cacheable. CIFS has no way to explicitly request a lease, but can check whether a file is cacheable (oplocked). Unfortunately, even if a file is not oplocked, it could still be cacheable (ie cifs client could grant fcntl leases if no other local processes are using the file) for cases for example such as when the server does not support oplocks and the user is sure that the only updates to the file will be from this client. Specifying this mount option will allow the cifs client to check for leases (only) locally for files which are not oplocked instead of denying leases in that case. (EXPERIMENTAL)}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjFubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hXsec Security mode. Allowed values are: none attempt to connection as a null user (no name) krb5 Use Kerberos version 5 authentication krb5i Use Kerberos authentication and packet signing ntlm Use NTLM password hashing (default) ntlmi Use NTLM password hashing with signing (if /proc/fs/cifs/PacketSigningEnabled on or if server requires signing also can be the default) ntlmv2 Use NTLMv2 password hashing ntlmv2i Use NTLMv2 password hashing with packet signing lanman (if configured in kernel config) use older lanman hashh](j)}(hsech]hsec}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjcubj)}(hhh](h)}(h#Security mode. Allowed values are:h]h#Security mode. Allowed values are:}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjuubj)}(hX;none attempt to connection as a null user (no name) krb5 Use Kerberos version 5 authentication krb5i Use Kerberos authentication and packet signing ntlm Use NTLM password hashing (default) ntlmi Use NTLM password hashing with signing (if /proc/fs/cifs/PacketSigningEnabled on or if server requires signing also can be the default) ntlmv2 Use NTLMv2 password hashing ntlmv2i Use NTLMv2 password hashing with packet signing lanman (if configured in kernel config) use older lanman hashh]j)}(hhh](j)}(h3none attempt to connection as a null user (no name)h](j)}(hnoneh]hnone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(h.attempt to connection as a null user (no name)h]h.attempt to connection as a null user (no name)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(h*krb5 Use Kerberos version 5 authenticationh](j)}(hkrb5h]hkrb5}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(h%Use Kerberos version 5 authenticationh]h%Use Kerberos version 5 authentication}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(h4krb5i Use Kerberos authentication and packet signingh](j)}(hkrb5ih]hkrb5i}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(h.Use Kerberos authentication and packet signingh]h.Use Kerberos authentication and packet signing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(h(ntlm Use NTLM password hashing (default)h](j)}(hntlmh]hntlm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(h#Use NTLM password hashing (default)h]h#Use NTLM password hashing (default)}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hntlmi Use NTLM password hashing with signing (if /proc/fs/cifs/PacketSigningEnabled on or if server requires signing also can be the default)h](j)}(hntlmih]hntlmi}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjIubj)}(hhh]h)}(hUse NTLM password hashing with signing (if /proc/fs/cifs/PacketSigningEnabled on or if server requires signing also can be the default)h]hUse NTLM password hashing with signing (if /proc/fs/cifs/PacketSigningEnabled on or if server requires signing also can be the default)}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj[ubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(h"ntlmv2 Use NTLMv2 password hashingh](j)}(hntlmv2h]hntlmv2}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjxubj)}(hhh]h)}(hUse NTLMv2 password hashingh]hUse NTLMv2 password hashing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(h7ntlmv2i Use NTLMv2 password hashing with packet signingh](j)}(hntlmv2ih]hntlmv2i}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(h/Use NTLMv2 password hashing with packet signingh]h/Use NTLMv2 password hashing with packet signing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(h=lanman (if configured in kernel config) use older lanman hashh](j)}(hlanmanh]hlanman}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(h6(if configured in kernel config) use older lanman hashh]h6(if configured in kernel config) use older lanman hash}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhMhjuubeh}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(h6hard Retry file operations if server is not respondingh](j)}(hhardh]hhard}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(h1Retry file operations if server is not respondingh]h1Retry file operations if server is not responding}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hjsoft Limit retries to unresponsive servers (usually only one retry) before returning an error. (default) h](j)}(hsofth]hsoft}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjLubj)}(hhh]h)}(hdLimit retries to unresponsive servers (usually only one retry) before returning an error. (default)h]hdLimit retries to unresponsive servers (usually only one retry) before returning an error. (default)}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj^ubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhMhjhhubh)}(hQThe mount.cifs mount helper also accepts a few mount options before -o including:h]hQThe mount.cifs mount helper also accepts a few mount options before -o including:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK?uh1jhjubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h-Sh]h-S}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hXtake password from stdin (equivalent to setting the environment variable ``PASSWD_FD=0``h](hItake password from stdin (equivalent to setting the environment variable }(hjhhhNhNubj#)}(h``PASSWD_FD=0``h]h PASSWD_FD=0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h-Vh]h-V}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hprint mount.cifs versionh]hprint mount.cifs version}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h-?h]h-?}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj=ubah}(h]h ]h"]h$]h&]uh1jhj:ubj)}(hhh]h)}(h display simple usage informationh]h display simple usage information}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjTubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubh)}(hnWith most 2.6 kernel versions of modutils, the version of the cifs kernel module can be displayed via modinfo.h]hnWith most 2.6 kernel versions of modutils, the version of the cifs kernel module can be displayed via modinfo.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubeh}(h]cifs-vfs-mount-optionsah ]h"]cifs vfs mount optionsah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(h'Misc /proc/fs/cifs Flags and Debug Infoh]h'Misc /proc/fs/cifs Flags and Debug Info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hInformational pseudo-files:h]hInformational pseudo-files:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK:uh1jhjubj)}(hhh](j)}(hhh](j)}(hhh]h)}(h DebugDatah]h DebugData}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hlDisplays information about active CIFS sessions and shares, features enabled as well as the cifs.ko version.h]hlDisplays information about active CIFS sessions and shares, features enabled as well as the cifs.ko version.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hStatsh]hStats}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hILists summary resource usage information as well as per share statistics.h]hILists summary resource usage information as well as per share statistics.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h open_filesh]h open_files}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjGubah}(h]h ]h"]h$]h&]uh1jhjDubj)}(hhh]h)}(h:List all the open file handles on all active SMB sessions.h]h:List all the open file handles on all active SMB sessions.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj^ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h mount_paramsh]h mount_params}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj~ubah}(h]h ]h"]h$]h&]uh1jhj{ubj)}(hhh]h)}(h5List of all mount parameters available for the moduleh]h5List of all mount parameters available for the module}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubh)}(hConfiguration pseudo-files:h]hConfiguration pseudo-files:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK:uh1jhjubj)}(hhh](j)}(hhh](j)}(hhh]h)}(h SecurityFlagsh]h SecurityFlags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](h)}(hX!Flags which control security negotiation and also packet signing. Authentication (may/must) flags (e.g. for NTLMv2) may be combined with the signing flags. Specifying two different password hashing mechanisms (as "must use") on the other hand does not make much sense. Default flags are::h]hX$Flags which control security negotiation and also packet signing. Authentication (may/must) flags (e.g. for NTLMv2) may be combined with the signing flags. Specifying two different password hashing mechanisms (as “must use”) on the other hand does not make much sense. Default flags are:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubj)}(h0x00C5h]h0x00C5}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhMhj ubh)}(hp(NTLMv2 and packet signing allowed). Some SecurityFlags may require enabling a corresponding menuconfig option.h]hp(NTLMv2 and packet signing allowed). Some SecurityFlags may require enabling a corresponding menuconfig option.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubj)}(hXmay use packet signing 0x00001 must use packet signing 0x01001 may use NTLMv2 0x00004 must use NTLMv2 0x04004 may use Kerberos security (krb5) 0x00008 must use Kerberos 0x08008 may use NTLMSSP 0x00080 must use NTLMSSP 0x80080 seal (packet encryption) 0x00040 must seal 0x40040 h]h)}(hXmay use packet signing 0x00001 must use packet signing 0x01001 may use NTLMv2 0x00004 must use NTLMv2 0x04004 may use Kerberos security (krb5) 0x00008 must use Kerberos 0x08008 may use NTLMSSP 0x00080 must use NTLMSSP 0x80080 seal (packet encryption) 0x00040 must seal 0x40040h]hXmay use packet signing 0x00001 must use packet signing 0x01001 may use NTLMv2 0x00004 must use NTLMv2 0x04004 may use Kerberos security (krb5) 0x00008 must use Kerberos 0x08008 may use NTLMSSP 0x00080 must use NTLMSSP 0x80080 seal (packet encryption) 0x00040 must seal 0x40040}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj7ubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hcifsFYIh]hcifsFYI}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj^ubah}(h]h ]h"]h$]h&]uh1jhj[ubj)}(hhh](h)}(hXIf set to non-zero value, additional debug information will be logged to the system error log. This field contains three flags controlling different classes of debugging entries. The maximum value it can be set to is 7 which enables all debugging points (default 0). Some debugging statements are not compiled into the cifs kernel unless CONFIG_CIFS_DEBUG2 is enabled in the kernel configuration. cifsFYI may be set to one or more of the following flags (7 sets them all)::h]hXIf set to non-zero value, additional debug information will be logged to the system error log. This field contains three flags controlling different classes of debugging entries. The maximum value it can be set to is 7 which enables all debugging points (default 0). Some debugging statements are not compiled into the cifs kernel unless CONFIG_CIFS_DEBUG2 is enabled in the kernel configuration. cifsFYI may be set to one or more of the following flags (7 sets them all):}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjuubj)}(hX9+-----------------------------------------------+------+ | log cifs informational messages | 0x01 | +-----------------------------------------------+------+ | log return codes from cifs entry points | 0x02 | +-----------------------------------------------+------+ | log slow responses | 0x04 | | (ie which take longer than 1 second) | | | | | | CONFIG_CIFS_STATS2 must be enabled in .config | | +-----------------------------------------------+------+h]hX9+-----------------------------------------------+------+ | log cifs informational messages | 0x01 | +-----------------------------------------------+------+ | log return codes from cifs entry points | 0x02 | +-----------------------------------------------+------+ | log slow responses | 0x04 | | (ie which take longer than 1 second) | | | | | | CONFIG_CIFS_STATS2 must be enabled in .config | | +-----------------------------------------------+------+}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhMhjuubeh}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(htraceSMBh]htraceSMB}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h{If set to one, debug information is logged to the system error log with the start of smb requests and responses (default 0)h]h{If set to one, debug information is logged to the system error log with the start of smb requests and responses (default 0)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hLookupCacheEnableh]hLookupCacheEnable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hkIf set to one, inode information is kept cached for one second improving performance of lookups (default 1)h]hkIf set to one, inode information is kept cached for one second improving performance of lookups (default 1)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hLinuxExtensionsEnabledh]hLinuxExtensionsEnabled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hXIf set to one then the client will attempt to use the CIFS "UNIX" extensions which are optional protocol enhancements that allow CIFS servers to return accurate UID/GID information as well as support symbolic links. If you use servers such as Samba that support the CIFS Unix extensions but do not want to use symbolic link support and want to map the uid and gid fields to values supplied at mount (rather than the actual values, then set this to zero. (default 1)h]hXIf set to one then the client will attempt to use the CIFS “UNIX” extensions which are optional protocol enhancements that allow CIFS servers to return accurate UID/GID information as well as support symbolic links. If you use servers such as Samba that support the CIFS Unix extensions but do not want to use symbolic link support and want to map the uid and gid fields to values supplied at mount (rather than the actual values, then set this to zero. (default 1)}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj(ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hdfscacheh]hdfscache}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjHubah}(h]h ]h"]h$]h&]uh1jhjEubj)}(hhh]h)}(hPList the content of the DFS cache. If set to 0, the client will clear the cache.h]hPList the content of the DFS cache. If set to 0, the client will clear the cache.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj_ubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubh)}(hX These experimental features and tracing can be enabled by changing flags in /proc/fs/cifs (after the cifs module has been installed or built into the kernel, e.g. insmod cifs). To enable a feature set it to 1 e.g. to enable tracing to the kernel message log type::h]hX These experimental features and tracing can be enabled by changing flags in /proc/fs/cifs (after the cifs module has been installed or built into the kernel, e.g. insmod cifs). To enable a feature set it to 1 e.g. to enable tracing to the kernel message log type:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj)}(hecho 7 > /proc/fs/cifs/cifsFYIh]hecho 7 > /proc/fs/cifs/cifsFYI}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhMhjhhubh)}(hXcifsFYI functions as a bit mask. Setting it to 1 enables additional kernel logging of various informational messages. 2 enables logging of non-zero SMB return codes while 4 enables logging of requests that take longer than one second to complete (except for byte range lock requests). Setting it to 4 requires CONFIG_CIFS_STATS2 to be set in kernel configuration (.config). Setting it to seven enables all three. Finally, tracing the start of smb requests and responses can be enabled via::h]hXcifsFYI functions as a bit mask. Setting it to 1 enables additional kernel logging of various informational messages. 2 enables logging of non-zero SMB return codes while 4 enables logging of requests that take longer than one second to complete (except for byte range lock requests). Setting it to 4 requires CONFIG_CIFS_STATS2 to be set in kernel configuration (.config). Setting it to seven enables all three. Finally, tracing the start of smb requests and responses can be enabled via:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj)}(hecho 1 > /proc/fs/cifs/traceSMBh]hecho 1 > /proc/fs/cifs/traceSMB}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhM#hjhhubh)}(hXPer share (per client mount) statistics are available in /proc/fs/cifs/Stats. Additional information is available if CONFIG_CIFS_STATS2 is enabled in the kernel configuration (.config). The statistics returned include counters which represent the number of attempted and failed (ie non-zero return code from the server) SMB3 (or cifs) requests grouped by request type (read, write, close etc.). Also recorded is the total bytes read and bytes written to the server for that share. Note that due to client caching effects this can be less than the number of bytes read and written by the application running on the client. Statistics can be reset to zero by ``echo 0 > /proc/fs/cifs/Stats`` which may be useful if comparing performance of two different scenarios.h](hXPer share (per client mount) statistics are available in /proc/fs/cifs/Stats. Additional information is available if CONFIG_CIFS_STATS2 is enabled in the kernel configuration (.config). The statistics returned include counters which represent the number of attempted and failed (ie non-zero return code from the server) SMB3 (or cifs) requests grouped by request type (read, write, close etc.). Also recorded is the total bytes read and bytes written to the server for that share. Note that due to client caching effects this can be less than the number of bytes read and written by the application running on the client. Statistics can be reset to zero by }(hjhhhNhNubj#)}(h ``echo 0 > /proc/fs/cifs/Stats``h]hecho 0 > /proc/fs/cifs/Stats}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubhI which may be useful if comparing performance of two different scenarios.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM%hjhhubh)}(hAlso note that ``cat /proc/fs/cifs/DebugData`` will display information about the active sessions and the shares that are mounted.h](hAlso note that }(hjhhhNhNubj#)}(h``cat /proc/fs/cifs/DebugData``h]hcat /proc/fs/cifs/DebugData}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j"hjubhT will display information about the active sessions and the shares that are mounted.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM0hjhhubh)}(hXEnabling Kerberos (extended security) works but requires version 1.2 or later of the helper program cifs.upcall to be present and to be configured in the /etc/request-key.conf file. The cifs.upcall helper program is from the Samba project(https://www.samba.org). NTLM and NTLMv2 and LANMAN support do not require this helper. Note that NTLMv2 security (which does not require the cifs.upcall helper program), instead of using Kerberos, is sufficient for some use cases.h](hEnabling Kerberos (extended security) works but requires version 1.2 or later of the helper program cifs.upcall to be present and to be configured in the /etc/request-key.conf file. The cifs.upcall helper program is from the Samba project(}(hjhhhNhNubh)}(hhttps://www.samba.orgh]hhttps://www.samba.org}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurijuh1hhjubh). NTLM and NTLMv2 and LANMAN support do not require this helper. Note that NTLMv2 security (which does not require the cifs.upcall helper program), instead of using Kerberos, is sufficient for some use cases.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM3hjhhubh)}(hX6DFS support allows transparent redirection to shares in an MS-DFS name space. In addition, DFS support for target shares which are specified as UNC names which begin with host names (rather than IP addresses) requires a user space helper (such as cifs.upcall) to be present in order to translate host names to ip address, and the user space helper must also be configured in the file /etc/request-key.conf. Samba, Windows servers and many NAS appliances support DFS as a way of constructing a global name space to ease network configuration and improve reliability.h]hX6DFS support allows transparent redirection to shares in an MS-DFS name space. In addition, DFS support for target shares which are specified as UNC names which begin with host names (rather than IP addresses) requires a user space helper (such as cifs.upcall) to be present in order to translate host names to ip address, and the user space helper must also be configured in the file /etc/request-key.conf. Samba, Windows servers and many NAS appliances support DFS as a way of constructing a global name space to ease network configuration and improve reliability.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM;hjhhubh)}(hTo use cifs Kerberos and DFS support, the Linux keyutils package should be installed and something like the following lines should be added to the /etc/request-key.conf file::h]hTo use cifs Kerberos and DFS support, the Linux keyutils package should be installed and something like the following lines should be added to the /etc/request-key.conf file:}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMDhjhhubj)}(hlcreate cifs.spnego * * /usr/local/sbin/cifs.upcall %k create dns_resolver * * /usr/local/sbin/cifs.upcall %kh]hlcreate cifs.spnego * * /usr/local/sbin/cifs.upcall %k create dns_resolver * * /usr/local/sbin/cifs.upcall %k}hjDsbah}(h]h ]h"]h$]h&]jjuh1jhhhMHhjhhubeh}(h]&misc-proc-fs-cifs-flags-and-debug-infoah ]h"]'misc /proc/fs/cifs flags and debug infoah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hCIFS kernel module parametersh]hCIFS kernel module parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhhhhhMLubh)}(hThese module parameters can be specified or modified either during the time of module loading or during the runtime by using the interface::h]hThese module parameters can be specified or modified either during the time of module loading or during the runtime by using the interface:}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMMhjZhhubj)}(h#/sys/module/cifs/parameters/h]h#/sys/module/cifs/parameters/}hjysbah}(h]h ]h"]h$]h&]jjuh1jhhhMPhjZhhubh)}(hi.e.::h]hi.e.:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMRhjZhhubj)}(h2echo "value" > /sys/module/cifs/parameters/h]h2echo "value" > /sys/module/cifs/parameters/}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhMThjZhhubh)}(hdMore detailed descriptions of the available module parameters and their values can be seen by doing:h]hdMore detailed descriptions of the available module parameters and their values can be seen by doing:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMVhjZhhubj)}(hmodinfo cifs (or modinfo smb3) h]h)}(hmodinfo cifs (or modinfo smb3)h]hmodinfo cifs (or modinfo smb3)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMYhjubah}(h]h ]h"]h$]h&]uh1jhhhMYhjZhhubj)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK:uh1jhjubj)}(hhh]j)}(hhh](j)}(hhh]jh)}(hhh]jm)}(henable_oplocks h]h)}(henable_oplocksh]henable_oplocks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM\hjubah}(h]h ]h"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&]jjjhj.uh1jghjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hbEnable or disable oplocks. Oplocks are enabled by default. [Y/y/1]. To disable use any of [N/n/0].h]hbEnable or disable oplocks. Oplocks are enabled by default. [Y/y/1]. To disable use any of [N/n/0].}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjZhhhhhNubeh}(h]cifs-kernel-module-parametersah ]h"]cifs kernel module parametersah$]h&]uh1hhhhhhhhMLubeh}(h]usageah ]h"]usageah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksjfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjverror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jQjNjjjjj@j=jjjFjCj7j4jcj`jjjjjWjTjIjFu nametypes}(jQjjj@jjFj7jcjjjWjIuh}(jNhjjHjj j=jjjCjCjj4jIj`j:jjfjjjTjjFjZu footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]hsystem_message)}(hhh]h)}(h:Enumerated list start value not ordinal-1: "2" (ordinal 2)h]h>Enumerated list start value not ordinal-1: “2” (ordinal 2)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehlineKuh1jhj:hhhhhKubatransform_messages] transformerN include_log] decorationNhhub.