[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[fcc6d60] | 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 |
|
---|
[57791dd] | 33 | &lfs122_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">
|
---|
[c592b920] | 73 | <xref linkend="mitkrb"/> and
|
---|
| 74 | <xref linkend="talloc"/> (required if
|
---|
| 75 | <xref linkend="mitkrb" role="nodep"/> is installed)
|
---|
[880a026] | 76 | </para>
|
---|
| 77 |
|
---|
[fcc6d60] | 78 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[5e8ab95] | 79 | <para role="optional">
|
---|
[dae3099] | 80 | <xref linkend="docutils"/> (to create the man pages),
|
---|
[c22aa86] | 81 | <xref linkend="keyutils"/> (required to build PAM module),
|
---|
[9c1fbda4] | 82 | <xref linkend="linux-pam"/>,
|
---|
[3e96e6c6] | 83 | <xref linkend="samba"/>, and
|
---|
[b51fe6e] | 84 | <xref linkend="libcap-pam"/> or
|
---|
[c6b192c] | 85 | <ulink url="https://people.redhat.com/sgrubb/libcap-ng/">
|
---|
[b51fe6e] | 86 | libcap-ng
|
---|
| 87 | </ulink>
|
---|
[5e8ab95] | 88 | </para>
|
---|
[fcc6d60] | 89 |
|
---|
| 90 |
|
---|
| 91 | </sect2>
|
---|
| 92 |
|
---|
[3e96e6c6] | 93 | <sect2 role="kernel" id="cifsutils-kernel">
|
---|
| 94 | <title>Kernel Configuration</title>
|
---|
| 95 |
|
---|
| 96 | <para>
|
---|
| 97 | Enable the following options in the kernel configuration and recompile the
|
---|
| 98 | kernel if necessary:
|
---|
| 99 | </para>
|
---|
| 100 |
|
---|
[0add366] | 101 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 102 | href="cifsutils-kernel.xml"/>
|
---|
[3f3f2c8] | 103 |
|
---|
| 104 | <para>
|
---|
| 105 | Depending on your server configuration, additional kernel options may be
|
---|
| 106 | required.
|
---|
| 107 | </para>
|
---|
[3e96e6c6] | 108 |
|
---|
| 109 | <indexterm zone="cifsutils cifsutils-kernel">
|
---|
| 110 | <primary sortas="d-cifsutils">cifs-utils</primary>
|
---|
| 111 | </indexterm>
|
---|
[f3429309] | 112 |
|
---|
| 113 | </sect2>
|
---|
[3e96e6c6] | 114 |
|
---|
[fcc6d60] | 115 | <sect2 role="installation">
|
---|
| 116 | <title>Installation of cifs-utils</title>
|
---|
| 117 |
|
---|
[b51fe6e] | 118 | <para>
|
---|
| 119 | Install <application>cifs-utils</application> by running the following
|
---|
| 120 | commands:
|
---|
| 121 | </para>
|
---|
[fcc6d60] | 122 |
|
---|
[5a38f35] | 123 | <screen revision="sysv"><userinput>./configure --prefix=/usr \
|
---|
[b3cc6d3] | 124 | --disable-pam \
|
---|
| 125 | --disable-systemd &&
|
---|
[fcc6d60] | 126 | make</userinput></screen>
|
---|
| 127 |
|
---|
[5a38f35] | 128 | <screen revision="systemd"><userinput>./configure --prefix=/usr \
|
---|
[7b478500] | 129 | --disable-pam &&
|
---|
| 130 | make</userinput></screen>
|
---|
| 131 |
|
---|
[b51fe6e] | 132 | <para>
|
---|
| 133 | This package does not come with a test suite.
|
---|
| 134 | </para>
|
---|
[fcc6d60] | 135 |
|
---|
[b51fe6e] | 136 | <para>
|
---|
| 137 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 138 | </para>
|
---|
[fcc6d60] | 139 |
|
---|
[3f3f2c8] | 140 | <!-- Note to editors: You need to define ROOTSBINDIR and man8dir, like this:
|
---|
| 141 | ROOTSBINDIR=<DESTDIR>/sbin man8dir=<DESTDIR>/usr/share/man/man8
|
---|
| 142 | This is due to a bug in the makefile for cifs-utils-6.10, since it tries
|
---|
| 143 | to install symlinks for mount.smb3 without thinking about DESTDIR
|
---|
| 144 | installations. -->
|
---|
| 145 |
|
---|
[fcc6d60] | 146 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 147 |
|
---|
| 148 | </sect2>
|
---|
| 149 |
|
---|
[b3cc6d3] | 150 | <sect2 role="commands">
|
---|
[b51fe6e] | 151 | <title>Command Explanations</title>
|
---|
[b3cc6d3] | 152 |
|
---|
[b51fe6e] | 153 | <para>
|
---|
| 154 | <parameter>--disable-pam</parameter>: Do not build PAM support.
|
---|
| 155 | Remove it and use <option>--with-pamdir</option> (see below),
|
---|
| 156 | if <xref linkend="linux-pam"/> is installed and you wish
|
---|
| 157 | PAM support.
|
---|
| 158 | </para>
|
---|
[b3cc6d3] | 159 |
|
---|
[b51fe6e] | 160 | <para revision="sysv">
|
---|
| 161 | <parameter>--disable-systemd</parameter>: Disable systemd specific
|
---|
| 162 | behavior for <command>mount.cifs</command>.
|
---|
| 163 | </para>
|
---|
[b3cc6d3] | 164 |
|
---|
[b51fe6e] | 165 | <para>
|
---|
[2081610e] | 166 | <option>--with-pamdir=/usr/lib/security</option>: Install the PAM
|
---|
| 167 | module in <filename class="directory">/usr/lib/security</filename>.
|
---|
[b51fe6e] | 168 | </para>
|
---|
[b3cc6d3] | 169 |
|
---|
| 170 | </sect2>
|
---|
| 171 |
|
---|
[fcc6d60] | 172 | <sect2 role="content">
|
---|
| 173 | <title>Contents</title>
|
---|
| 174 |
|
---|
| 175 | <segmentedlist>
|
---|
| 176 | <segtitle>Installed Programs</segtitle>
|
---|
[9c1fbda4] | 177 | <segtitle>Installed Library</segtitle>
|
---|
[04f3ba30] | 178 | <segtitle>Installed Directory</segtitle>
|
---|
[fcc6d60] | 179 |
|
---|
| 180 | <seglistitem>
|
---|
[8558044] | 181 | <seg> cifs.idmap, cifs.upcall, cifscreds, getcifsacl,
|
---|
[3f3f2c8] | 182 | mount.cifs, mount.smb3, setcifsacl, smb2-quota, and smbinfo</seg>
|
---|
[b3cc6d3] | 183 | <seg>/usr/lib/cifs-utils/idmapwb.so and optionally
|
---|
[2081610e] | 184 | PAM module /usr/lib/security/pam_cifscreds.so</seg>
|
---|
[04f3ba30] | 185 | <seg>/usr/lib/cifs-utils</seg>
|
---|
[fcc6d60] | 186 | </seglistitem>
|
---|
| 187 | </segmentedlist>
|
---|
| 188 |
|
---|
| 189 | <variablelist>
|
---|
| 190 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 191 | <?dbfo list-presentation="list"?>
|
---|
| 192 | <?dbhtml list-presentation="table"?>
|
---|
| 193 |
|
---|
| 194 | <varlistentry id="cifs.idmap">
|
---|
| 195 | <term><command>cifs.idmap</command></term>
|
---|
| 196 | <listitem>
|
---|
[b51fe6e] | 197 | <para>
|
---|
| 198 | is a userspace helper program for the linux CIFS client filesystem.
|
---|
| 199 | There are a number of activities that the kernel cannot easily do
|
---|
| 200 | itself. This program is a callout program that does these
|
---|
| 201 | things for the kernel and then returns the result. It is not
|
---|
[4c24eb0a] | 202 | intended to be run from the command-line
|
---|
[b51fe6e] | 203 | </para>
|
---|
[fcc6d60] | 204 | <indexterm zone="cifsutils cifs.idmap">
|
---|
| 205 | <primary sortas="b-cifs.idmap">cifs.idmap</primary>
|
---|
| 206 | </indexterm>
|
---|
| 207 | </listitem>
|
---|
| 208 | </varlistentry>
|
---|
| 209 |
|
---|
[5e8ab95] | 210 | <varlistentry id="cifs.upcall">
|
---|
| 211 | <term><command>cifs.upcall</command></term>
|
---|
| 212 | <listitem>
|
---|
[b51fe6e] | 213 | <para>
|
---|
| 214 | is a userspace helper program for the linux CIFS client
|
---|
| 215 | filesystem. It is intended to be run when the kernel calls
|
---|
| 216 | request-key for a particular key type. It is not intended to be
|
---|
[4c24eb0a] | 217 | run from the command-line
|
---|
[b51fe6e] | 218 | </para>
|
---|
[5e8ab95] | 219 | <indexterm zone="cifsutils cifs.upcall">
|
---|
| 220 | <primary sortas="b-cifs.upcall">cifs.upcall</primary>
|
---|
| 221 | </indexterm>
|
---|
| 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 |
|
---|
| 225 | <varlistentry id="cifscreds">
|
---|
| 226 | <term><command>cifscreds</command></term>
|
---|
| 227 | <listitem>
|
---|
[b51fe6e] | 228 | <para>
|
---|
| 229 | is a tool for managing credentials (username and password)
|
---|
[4c24eb0a] | 230 | for the purpose of establishing sessions in multiuser mounts
|
---|
[b51fe6e] | 231 | </para>
|
---|
[5e8ab95] | 232 | <indexterm zone="cifsutils cifscreds">
|
---|
| 233 | <primary sortas="b-cifscreds">cifscreds</primary>
|
---|
| 234 | </indexterm>
|
---|
| 235 | </listitem>
|
---|
| 236 | </varlistentry>
|
---|
| 237 |
|
---|
[fcc6d60] | 238 | <varlistentry id="getcifsacl">
|
---|
| 239 | <term><command>getcifsacl</command></term>
|
---|
| 240 | <listitem>
|
---|
[b51fe6e] | 241 | <para>
|
---|
| 242 | is a userspace helper to display an ACL in a security
|
---|
[4c24eb0a] | 243 | descriptor for Common Internet File System (CIFS)
|
---|
[b51fe6e] | 244 | </para>
|
---|
[fcc6d60] | 245 | <indexterm zone="cifsutils getcifsacl">
|
---|
| 246 | <primary sortas="b-getcifsacl">getcifsacl</primary>
|
---|
| 247 | </indexterm>
|
---|
| 248 | </listitem>
|
---|
| 249 | </varlistentry>
|
---|
| 250 |
|
---|
| 251 | <varlistentry id="mount.cifs">
|
---|
| 252 | <term><command>mount.cifs</command></term>
|
---|
| 253 | <listitem>
|
---|
[b51fe6e] | 254 | <para>
|
---|
| 255 | mounts a Linux CIFS filesystem. It is usually invoked
|
---|
[23b54336] | 256 | indirectly by the <ulink role='man'
|
---|
| 257 | url='&man;mount.8'>mount(8)</ulink> command when using the
|
---|
| 258 | <option>-t cifs</option> 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
|
---|
[23b54336] | 271 | indirectly by the <ulink role='man'
|
---|
| 272 | url='&man;mount.8'>mount(8)</ulink> command when using the
|
---|
| 273 | <option>-t smb3</option> option
|
---|
[3f3f2c8] | 274 | </para>
|
---|
| 275 | <indexterm zone="cifsutils mount.smb3">
|
---|
| 276 | <primary sortas="b-mount.smb3">mount.smb3</primary>
|
---|
| 277 | </indexterm>
|
---|
| 278 | </listitem>
|
---|
| 279 | </varlistentry>
|
---|
| 280 |
|
---|
[fcc6d60] | 281 | <varlistentry id="setcifsacl">
|
---|
| 282 | <term><command>setcifsacl</command></term>
|
---|
| 283 | <listitem>
|
---|
[b51fe6e] | 284 | <para>
|
---|
| 285 | is intended to alter an ACL of a security descriptor for a file
|
---|
[4c24eb0a] | 286 | system object
|
---|
[b51fe6e] | 287 | </para>
|
---|
[fcc6d60] | 288 | <indexterm zone="cifsutils setcifsacl">
|
---|
| 289 | <primary sortas="b-setcifsacl">setcifsacl</primary>
|
---|
| 290 | </indexterm>
|
---|
| 291 | </listitem>
|
---|
| 292 | </varlistentry>
|
---|
| 293 |
|
---|
[3f3f2c8] | 294 | <varlistentry id="smb2-quota">
|
---|
| 295 | <term><command>smb3-quota</command></term>
|
---|
| 296 | <listitem>
|
---|
[b51fe6e] | 297 | <para>
|
---|
[4c24eb0a] | 298 | displays quota information for a SMB filesystem
|
---|
[b51fe6e] | 299 | </para>
|
---|
[3f3f2c8] | 300 | <indexterm zone="cifsutils smb2-quota">
|
---|
| 301 | <primary sortas="b-smb2-quota">smb2-quota</primary>
|
---|
| 302 | </indexterm>
|
---|
| 303 | </listitem>
|
---|
| 304 | </varlistentry>
|
---|
| 305 |
|
---|
[5c2345ff] | 306 | <varlistentry id="smbinfo">
|
---|
| 307 | <term><command>smbinfo</command></term>
|
---|
| 308 | <listitem>
|
---|
[b51fe6e] | 309 | <para>
|
---|
| 310 | displays SMB-specific file information, such as security
|
---|
[4c24eb0a] | 311 | descriptors and quotas
|
---|
[b51fe6e] | 312 | </para>
|
---|
[5c2345ff] | 313 | <indexterm zone="cifsutils smbinfo">
|
---|
| 314 | <primary sortas="b-smbinfo">smbinfo</primary>
|
---|
| 315 | </indexterm>
|
---|
| 316 | </listitem>
|
---|
| 317 | </varlistentry>
|
---|
| 318 |
|
---|
[fcc6d60] | 319 | </variablelist>
|
---|
| 320 |
|
---|
| 321 | </sect2>
|
---|
| 322 |
|
---|
| 323 | </sect1>
|
---|