Ignore:
Timestamp:
06/04/2016 10:13:50 PM (8 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
87f9b815
Parents:
92963e5b
Message:

Add local user and Linux-PAM configuration to vsfptd.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17441 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/major/vsftpd.xml

    r92963e5b ree92087f  
    178178EOF</userinput></screen>
    179179
     180      <para>To enable local logins, append the following to the
     181      <filename>/etc/vsftpd.conf</filename> file (as the
     182      <systemitem class="username">root</systemitem> user):</para>
     183
     184<screen><userinput role="root">cat &gt;&gt; /etc/vsftpd.conf &lt;&lt; "EOF"
     185<literal>local_enable=YES</literal>
     186EOF</userinput></screen>
     187
     188      <para>In additon, if using <application>Linux-PAM</application> and
     189      <application>vsftpd</application> with local user logins, you will need
     190      a <application>Linux-PAM</application> configuration file. As the
     191      <systemitem class="username">root</systemitem> user, create the
     192      <filename>/etc/pam.d/vsftpd</filename> file, and add the needed
     193      configuration changes for <application>Linux-PAM</application> session
     194      support using the following commands:</para>
     195
     196<screen><userinput role="root">cat &gt; /etc/pam.d/vsftpd &lt;&lt; "EOF" &amp;&amp;
     197<literal># Begin /etc/pam.d/vsftpd
     198auth       required     /lib/security/pam_listfile.so item=user sense=deny \
     199                                                      file=/etc/ftpusers \
     200                                                      onerr=succeed
     201auth       required     pam_shells.so
     202auth       include      system-auth
     203account    include      system-account
     204session    include      system-session</literal>
     205EOF
     206
     207cat &gt;&gt; /etc/vsftpd.conf &lt;&lt; "EOF"
     208<literal>session_support=YES
     209pam_service_name=vsftpd</literal>
     210EOF</userinput></screen>
     211
    180212    </sect3>
    181213
    182214    <sect3  id="vsftpd-init">
    183       <title>Boot Script</title>
    184 
    185       <para>Install the <filename>/etc/rc.d/init.d/vsftpd</filename>
    186       init script included in the
    187       <xref linkend="bootscripts" revision="sysv"/>
     215      <title><phrase revision="sysv">Boot Script</phrase>
     216             <phrase revision="systemd">Systemd Unit</phrase></title>
     217
     218      <para revision="sysv">Install the
     219      <filename>/etc/rc.d/init.d/vsftpd</filename> init script included in the
     220      <xref linkend="bootscripts" revision="sysv"/> package.</para>
     221
     222      <para revision="systemd">Install the <filename>vsftpd.service</filename>
     223      unit included in the
    188224      <xref linkend="systemd-units" revision="systemd"/> package.</para>
    189225
Note: See TracChangeset for help on using the changeset viewer.