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