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