[fcc6d60] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[8dfc5c3] | 7 | <!ENTITY cifsutils-download-http "https://www.samba.org/ftp/linux-cifs/cifs-utils/cifs-utils-&cifsutils-version;.tar.bz2">
|
---|
[1c73261] | 8 | <!ENTITY cifsutils-download-ftp " ">
|
---|
[6729290] | 9 | <!ENTITY cifsutils-md5sum "518431bf43f23e6aacd97e80e2060df7">
|
---|
| 10 | <!ENTITY cifsutils-size "412 KB">
|
---|
| 11 | <!ENTITY cifsutils-buildsize "4.2 MB">
|
---|
[3f3f2c8] | 12 | <!ENTITY cifsutils-time "0.1 SBU">
|
---|
[fcc6d60] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="cifsutils" xreflabel="cifs-utils-&cifsutils-version;">
|
---|
| 16 | <?dbhtml filename="cifsutils.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>cifs-utils-&cifsutils-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="cifsutils">
|
---|
[9accaa6] | 22 | <primary sortas="a-cifsutils">cifs-utils</primary>
|
---|
[fcc6d60] | 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to cifs-utils</title>
|
---|
| 27 |
|
---|
[b51fe6e] | 28 | <para>
|
---|
[fb078c8] | 29 | The <application>cifs-utils</application> package provides a means for
|
---|
[b51fe6e] | 30 | mounting SMB/CIFS shares on a Linux system.
|
---|
| 31 | </para>
|
---|
[fcc6d60] | 32 |
|
---|
[15445ab] | 33 | &lfs113_checked;
|
---|
[fcc6d60] | 34 |
|
---|
| 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
[b51fe6e] | 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&cifsutils-download-http;"/>
|
---|
| 40 | </para>
|
---|
[fcc6d60] | 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
[b51fe6e] | 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&cifsutils-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
[fcc6d60] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[b51fe6e] | 48 | <para>
|
---|
| 49 | Download MD5 sum: &cifsutils-md5sum;
|
---|
| 50 | </para>
|
---|
[fcc6d60] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[b51fe6e] | 53 | <para>
|
---|
| 54 | Download size: &cifsutils-size;
|
---|
| 55 | </para>
|
---|
[fcc6d60] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[b51fe6e] | 58 | <para>
|
---|
| 59 | Estimated disk space required: &cifsutils-buildsize;
|
---|
| 60 | </para>
|
---|
[fcc6d60] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[b51fe6e] | 63 | <para>
|
---|
| 64 | Estimated build time: &cifsutils-time;
|
---|
| 65 | </para>
|
---|
[fcc6d60] | 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
| 69 | <bridgehead renderas="sect3">cifs-utils Dependencies</bridgehead>
|
---|
| 70 |
|
---|
[dae3099] | 71 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 72 | <para role="recommended">
|
---|
| 73 | <xref linkend="talloc"/> (required if krb is installed),
|
---|
| 74 | <xref linkend="mitkrb"/>
|
---|
[880a026] | 75 | </para>
|
---|
| 76 |
|
---|
[fcc6d60] | 77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[5e8ab95] | 78 | <para role="optional">
|
---|
[dae3099] | 79 | <xref linkend="docutils"/> (to create the man pages),
|
---|
[c22aa86] | 80 | <xref linkend="keyutils"/> (required to build PAM module),
|
---|
[9c1fbda4] | 81 | <xref linkend="linux-pam"/>,
|
---|
[3e96e6c6] | 82 | <xref linkend="samba"/>, and
|
---|
[b51fe6e] | 83 | <xref linkend="libcap-pam"/> or
|
---|
[c6b192c] | 84 | <ulink url="https://people.redhat.com/sgrubb/libcap-ng/">
|
---|
[b51fe6e] | 85 | libcap-ng
|
---|
| 86 | </ulink>
|
---|
[5e8ab95] | 87 | </para>
|
---|
[fcc6d60] | 88 |
|
---|
| 89 | <para condition="html" role="usernotes">User Notes:
|
---|
| 90 | <ulink url="&blfs-wiki;/cifsutils"/></para>
|
---|
| 91 |
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|
[3e96e6c6] | 94 | <sect2 role="kernel" id="cifsutils-kernel">
|
---|
| 95 | <title>Kernel Configuration</title>
|
---|
| 96 |
|
---|
| 97 | <para>
|
---|
| 98 | Enable the following options in the kernel configuration and recompile the
|
---|
| 99 | kernel if necessary:
|
---|
| 100 | </para>
|
---|
| 101 |
|
---|
| 102 | <screen><literal>File systems --->
|
---|
[a69ca8e] | 103 | [*] Network File Systems ---> [CONFIG_NETWORK_FILESYSTEMS]
|
---|
[3f3f2c8] | 104 | <*/M> SMB3 and CIFS support (advanced network filesystem) [CONFIG_CIFS]</literal></screen>
|
---|
| 105 |
|
---|
| 106 | <para>
|
---|
| 107 | Depending on your server configuration, additional kernel options may be
|
---|
| 108 | required.
|
---|
| 109 | </para>
|
---|
[3e96e6c6] | 110 |
|
---|
| 111 | <indexterm zone="cifsutils cifsutils-kernel">
|
---|
| 112 | <primary sortas="d-cifsutils">cifs-utils</primary>
|
---|
| 113 | </indexterm>
|
---|
[f3429309] | 114 |
|
---|
| 115 | </sect2>
|
---|
[3e96e6c6] | 116 |
|
---|
[fcc6d60] | 117 | <sect2 role="installation">
|
---|
| 118 | <title>Installation of cifs-utils</title>
|
---|
| 119 |
|
---|
[b51fe6e] | 120 | <para>
|
---|
| 121 | Install <application>cifs-utils</application> by running the following
|
---|
| 122 | commands:
|
---|
| 123 | </para>
|
---|
[fcc6d60] | 124 |
|
---|
[5a38f35] | 125 | <screen revision="sysv"><userinput>./configure --prefix=/usr \
|
---|
[b3cc6d3] | 126 | --disable-pam \
|
---|
| 127 | --disable-systemd &&
|
---|
[fcc6d60] | 128 | make</userinput></screen>
|
---|
| 129 |
|
---|
[5a38f35] | 130 | <screen revision="systemd"><userinput>./configure --prefix=/usr \
|
---|
[7b478500] | 131 | --disable-pam &&
|
---|
| 132 | make</userinput></screen>
|
---|
| 133 |
|
---|
[b51fe6e] | 134 | <para>
|
---|
| 135 | This package does not come with a test suite.
|
---|
| 136 | </para>
|
---|
[fcc6d60] | 137 |
|
---|
[b51fe6e] | 138 | <para>
|
---|
| 139 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 140 | </para>
|
---|
[fcc6d60] | 141 |
|
---|
[3f3f2c8] | 142 | <!-- Note to editors: You need to define ROOTSBINDIR and man8dir, like this:
|
---|
| 143 | ROOTSBINDIR=<DESTDIR>/sbin man8dir=<DESTDIR>/usr/share/man/man8
|
---|
| 144 | This is due to a bug in the makefile for cifs-utils-6.10, since it tries
|
---|
| 145 | to install symlinks for mount.smb3 without thinking about DESTDIR
|
---|
| 146 | installations. -->
|
---|
| 147 |
|
---|
[fcc6d60] | 148 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 149 |
|
---|
| 150 | </sect2>
|
---|
| 151 |
|
---|
[b3cc6d3] | 152 | <sect2 role="commands">
|
---|
[b51fe6e] | 153 | <title>Command Explanations</title>
|
---|
[b3cc6d3] | 154 |
|
---|
[b51fe6e] | 155 | <para>
|
---|
| 156 | <parameter>--disable-pam</parameter>: Do not build PAM support.
|
---|
| 157 | Remove it and use <option>--with-pamdir</option> (see below),
|
---|
| 158 | if <xref linkend="linux-pam"/> is installed and you wish
|
---|
| 159 | PAM support.
|
---|
| 160 | </para>
|
---|
[b3cc6d3] | 161 |
|
---|
[b51fe6e] | 162 | <para revision="sysv">
|
---|
| 163 | <parameter>--disable-systemd</parameter>: Disable systemd specific
|
---|
| 164 | behavior for <command>mount.cifs</command>.
|
---|
| 165 | </para>
|
---|
[b3cc6d3] | 166 |
|
---|
[b51fe6e] | 167 | <para>
|
---|
[2081610e] | 168 | <option>--with-pamdir=/usr/lib/security</option>: Install the PAM
|
---|
| 169 | module in <filename class="directory">/usr/lib/security</filename>.
|
---|
[b51fe6e] | 170 | </para>
|
---|
[b3cc6d3] | 171 |
|
---|
| 172 | </sect2>
|
---|
| 173 |
|
---|
[fcc6d60] | 174 | <sect2 role="content">
|
---|
| 175 | <title>Contents</title>
|
---|
| 176 |
|
---|
| 177 | <segmentedlist>
|
---|
| 178 | <segtitle>Installed Programs</segtitle>
|
---|
[9c1fbda4] | 179 | <segtitle>Installed Library</segtitle>
|
---|
[04f3ba30] | 180 | <segtitle>Installed Directory</segtitle>
|
---|
[fcc6d60] | 181 |
|
---|
| 182 | <seglistitem>
|
---|
[8558044] | 183 | <seg> cifs.idmap, cifs.upcall, cifscreds, getcifsacl,
|
---|
[3f3f2c8] | 184 | mount.cifs, mount.smb3, setcifsacl, smb2-quota, and smbinfo</seg>
|
---|
[b3cc6d3] | 185 | <seg>/usr/lib/cifs-utils/idmapwb.so and optionally
|
---|
[2081610e] | 186 | PAM module /usr/lib/security/pam_cifscreds.so</seg>
|
---|
[04f3ba30] | 187 | <seg>/usr/lib/cifs-utils</seg>
|
---|
[fcc6d60] | 188 | </seglistitem>
|
---|
| 189 | </segmentedlist>
|
---|
| 190 |
|
---|
| 191 | <variablelist>
|
---|
| 192 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 193 | <?dbfo list-presentation="list"?>
|
---|
| 194 | <?dbhtml list-presentation="table"?>
|
---|
| 195 |
|
---|
| 196 | <varlistentry id="cifs.idmap">
|
---|
| 197 | <term><command>cifs.idmap</command></term>
|
---|
| 198 | <listitem>
|
---|
[b51fe6e] | 199 | <para>
|
---|
| 200 | is a userspace helper program for the linux CIFS client filesystem.
|
---|
| 201 | There are a number of activities that the kernel cannot easily do
|
---|
| 202 | itself. This program is a callout program that does these
|
---|
| 203 | things for the kernel and then returns the result. It is not
|
---|
[4c24eb0a] | 204 | intended to be run from the command-line
|
---|
[b51fe6e] | 205 | </para>
|
---|
[fcc6d60] | 206 | <indexterm zone="cifsutils cifs.idmap">
|
---|
| 207 | <primary sortas="b-cifs.idmap">cifs.idmap</primary>
|
---|
| 208 | </indexterm>
|
---|
| 209 | </listitem>
|
---|
| 210 | </varlistentry>
|
---|
| 211 |
|
---|
[5e8ab95] | 212 | <varlistentry id="cifs.upcall">
|
---|
| 213 | <term><command>cifs.upcall</command></term>
|
---|
| 214 | <listitem>
|
---|
[b51fe6e] | 215 | <para>
|
---|
| 216 | is a userspace helper program for the linux CIFS client
|
---|
| 217 | filesystem. It is intended to be run when the kernel calls
|
---|
| 218 | request-key for a particular key type. It is not intended to be
|
---|
[4c24eb0a] | 219 | run from the command-line
|
---|
[b51fe6e] | 220 | </para>
|
---|
[5e8ab95] | 221 | <indexterm zone="cifsutils cifs.upcall">
|
---|
| 222 | <primary sortas="b-cifs.upcall">cifs.upcall</primary>
|
---|
| 223 | </indexterm>
|
---|
| 224 | </listitem>
|
---|
| 225 | </varlistentry>
|
---|
| 226 |
|
---|
| 227 | <varlistentry id="cifscreds">
|
---|
| 228 | <term><command>cifscreds</command></term>
|
---|
| 229 | <listitem>
|
---|
[b51fe6e] | 230 | <para>
|
---|
| 231 | is a tool for managing credentials (username and password)
|
---|
[4c24eb0a] | 232 | for the purpose of establishing sessions in multiuser mounts
|
---|
[b51fe6e] | 233 | </para>
|
---|
[5e8ab95] | 234 | <indexterm zone="cifsutils cifscreds">
|
---|
| 235 | <primary sortas="b-cifscreds">cifscreds</primary>
|
---|
| 236 | </indexterm>
|
---|
| 237 | </listitem>
|
---|
| 238 | </varlistentry>
|
---|
| 239 |
|
---|
[fcc6d60] | 240 | <varlistentry id="getcifsacl">
|
---|
| 241 | <term><command>getcifsacl</command></term>
|
---|
| 242 | <listitem>
|
---|
[b51fe6e] | 243 | <para>
|
---|
| 244 | is a userspace helper to display an ACL in a security
|
---|
[4c24eb0a] | 245 | descriptor for Common Internet File System (CIFS)
|
---|
[b51fe6e] | 246 | </para>
|
---|
[fcc6d60] | 247 | <indexterm zone="cifsutils getcifsacl">
|
---|
| 248 | <primary sortas="b-getcifsacl">getcifsacl</primary>
|
---|
| 249 | </indexterm>
|
---|
| 250 | </listitem>
|
---|
| 251 | </varlistentry>
|
---|
| 252 |
|
---|
| 253 | <varlistentry id="mount.cifs">
|
---|
| 254 | <term><command>mount.cifs</command></term>
|
---|
| 255 | <listitem>
|
---|
[b51fe6e] | 256 | <para>
|
---|
| 257 | mounts a Linux CIFS filesystem. It is usually invoked
|
---|
[4c24eb0a] | 258 | indirectly by the mount(8) command when using the "-t cifs" option
|
---|
[fcc6d60] | 259 | </para>
|
---|
| 260 | <indexterm zone="cifsutils mount.cifs">
|
---|
| 261 | <primary sortas="b-mount.cifs">mount.cifs</primary>
|
---|
| 262 | </indexterm>
|
---|
| 263 | </listitem>
|
---|
| 264 | </varlistentry>
|
---|
| 265 |
|
---|
[3f3f2c8] | 266 | <varlistentry id="mount.smb3">
|
---|
| 267 | <term><command>mount.smb3</command></term>
|
---|
| 268 | <listitem>
|
---|
[b51fe6e] | 269 | <para>
|
---|
| 270 | mounts a SMB3-based filesystem. It is usually invoked
|
---|
[4c24eb0a] | 271 | indirectly by the mount(8) command when using the "-t smb3" option
|
---|
[3f3f2c8] | 272 | </para>
|
---|
| 273 | <indexterm zone="cifsutils mount.smb3">
|
---|
| 274 | <primary sortas="b-mount.smb3">mount.smb3</primary>
|
---|
| 275 | </indexterm>
|
---|
| 276 | </listitem>
|
---|
| 277 | </varlistentry>
|
---|
| 278 |
|
---|
[fcc6d60] | 279 | <varlistentry id="setcifsacl">
|
---|
| 280 | <term><command>setcifsacl</command></term>
|
---|
| 281 | <listitem>
|
---|
[b51fe6e] | 282 | <para>
|
---|
| 283 | is intended to alter an ACL of a security descriptor for a file
|
---|
[4c24eb0a] | 284 | system object
|
---|
[b51fe6e] | 285 | </para>
|
---|
[fcc6d60] | 286 | <indexterm zone="cifsutils setcifsacl">
|
---|
| 287 | <primary sortas="b-setcifsacl">setcifsacl</primary>
|
---|
| 288 | </indexterm>
|
---|
| 289 | </listitem>
|
---|
| 290 | </varlistentry>
|
---|
| 291 |
|
---|
[3f3f2c8] | 292 | <varlistentry id="smb2-quota">
|
---|
| 293 | <term><command>smb3-quota</command></term>
|
---|
| 294 | <listitem>
|
---|
[b51fe6e] | 295 | <para>
|
---|
[4c24eb0a] | 296 | displays quota information for a SMB filesystem
|
---|
[b51fe6e] | 297 | </para>
|
---|
[3f3f2c8] | 298 | <indexterm zone="cifsutils smb2-quota">
|
---|
| 299 | <primary sortas="b-smb2-quota">smb2-quota</primary>
|
---|
| 300 | </indexterm>
|
---|
| 301 | </listitem>
|
---|
| 302 | </varlistentry>
|
---|
| 303 |
|
---|
[5c2345ff] | 304 | <varlistentry id="smbinfo">
|
---|
| 305 | <term><command>smbinfo</command></term>
|
---|
| 306 | <listitem>
|
---|
[b51fe6e] | 307 | <para>
|
---|
| 308 | displays SMB-specific file information, such as security
|
---|
[4c24eb0a] | 309 | descriptors and quotas
|
---|
[b51fe6e] | 310 | </para>
|
---|
[5c2345ff] | 311 | <indexterm zone="cifsutils smbinfo">
|
---|
| 312 | <primary sortas="b-smbinfo">smbinfo</primary>
|
---|
| 313 | </indexterm>
|
---|
| 314 | </listitem>
|
---|
| 315 | </varlistentry>
|
---|
| 316 |
|
---|
[fcc6d60] | 317 | </variablelist>
|
---|
| 318 |
|
---|
| 319 | </sect2>
|
---|
| 320 |
|
---|
| 321 | </sect1>
|
---|