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