Author: dj
Date: Sat Jun  4 15:13:50 2016
New Revision: 17441

Log:
Add local user and Linux-PAM configuration to vsfptd.

Modified:
   trunk/BOOK/book/bookinfo.xml
   trunk/BOOK/general.ent
   trunk/BOOK/introduction/welcome/changelog.xml
   trunk/BOOK/server/major/vsftpd.xml

Modified: trunk/BOOK/book/bookinfo.xml
==============================================================================
--- trunk/BOOK/book/bookinfo.xml        Fri Jun  3 23:15:58 2016        (r17440)
+++ trunk/BOOK/book/bookinfo.xml        Sat Jun  4 15:13:50 2016        (r17441)
@@ -10,7 +10,7 @@
   <othername>$LastChangedBy$</othername>
   <date>$Date$</date>
 
-  <title>Beyond Linux<superscript>&reg;</superscript> From Scratch</title>
+  <title>Beyond Linux<superscript>&reg;</superscript> From Scratch<phrase 
revision="systemd"> (systemd edition)</phrase></title>
   <subtitle>Version &version;</subtitle>
 
   <authorgroup>

Modified: trunk/BOOK/general.ent
==============================================================================
--- trunk/BOOK/general.ent      Fri Jun  3 23:15:58 2016        (r17440)
+++ trunk/BOOK/general.ent      Sat Jun  4 15:13:50 2016        (r17441)
@@ -1,12 +1,12 @@
 <!-- $LastChangedBy$ $Date$ -->
 
-<!ENTITY day          "02">                   <!-- Always 2 digits -->
+<!ENTITY day          "04">                   <!-- Always 2 digits -->
 <!ENTITY month        "06">                   <!-- Always 2 digits -->
 <!ENTITY year         "2016">
 <!ENTITY copyrightdate "2001-&year;">
 <!ENTITY copyholder   "The BLFS Development Team">
 <!ENTITY version      "&year;-&month;-&day;">
-<!ENTITY releasedate  "June 2nd &year;">
+<!ENTITY releasedate  "June 4th &year;">
 <!ENTITY pubdate      "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
 <!ENTITY blfs-version "svn">                  <!-- svn|[release #] -->
 <!ENTITY lfs-version  "development">          <!-- x.y|development] -->

Modified: trunk/BOOK/introduction/welcome/changelog.xml
==============================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml       Fri Jun  3 23:15:58 
2016        (r17440)
+++ trunk/BOOK/introduction/welcome/changelog.xml       Sat Jun  4 15:13:50 
2016        (r17441)
@@ -43,10 +43,20 @@
     </listitem>
 
 -->
+    <listitem>
+      <para>June 4th, 2016</para>
+      <itemizedlist>
+        <listitem>
+          <para>[dj] - Add local user and Linux-PAM configuration to vsftpd.
+          Fixes <ulink url="&blfs-ticket-root;7896">#7896</ulink>.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
     <listitem revision="systemd">
       <para>June 2nd, 2016</para>
       <itemizedlist>
-        <listitem revision="systemd">
+        <listitem>
           <para>[dj] - Update to blfs-systemd-units-20160602.tar.xz.</para>
         </listitem>
       </itemizedlist>

Modified: trunk/BOOK/server/major/vsftpd.xml
==============================================================================
--- trunk/BOOK/server/major/vsftpd.xml  Fri Jun  3 23:15:58 2016        (r17440)
+++ trunk/BOOK/server/major/vsftpd.xml  Sat Jun  4 15:13:50 2016        (r17441)
@@ -177,14 +177,50 @@
 secure_chroot_dir=&vsftpd-empty;</literal>
 EOF</userinput></screen>
 
+      <para>To enable local logins, append the following to the
+      <filename>/etc/vsftpd.conf</filename> file (as the
+      <systemitem class="username">root</systemitem> user):</para>
+
+<screen><userinput role="root">cat &gt;&gt; /etc/vsftpd.conf &lt;&lt; "EOF"
+<literal>local_enable=YES</literal>
+EOF</userinput></screen>
+
+      <para>In additon, if using <application>Linux-PAM</application> and
+      <application>vsftpd</application> with local user logins, you will need
+      a <application>Linux-PAM</application> configuration file. As the
+      <systemitem class="username">root</systemitem> user, create the
+      <filename>/etc/pam.d/vsftpd</filename> file, and add the needed
+      configuration changes for <application>Linux-PAM</application> session
+      support using the following commands:</para>
+
+<screen><userinput role="root">cat &gt; /etc/pam.d/vsftpd &lt;&lt; "EOF" 
&amp;&amp;
+<literal># Begin /etc/pam.d/vsftpd
+auth       required     /lib/security/pam_listfile.so item=user sense=deny \
+                                                      file=/etc/ftpusers \
+                                                      onerr=succeed
+auth       required     pam_shells.so
+auth       include      system-auth
+account    include      system-account
+session    include      system-session</literal>
+EOF
+
+cat &gt;&gt; /etc/vsftpd.conf &lt;&lt; "EOF"
+<literal>session_support=YES
+pam_service_name=vsftpd</literal>
+EOF</userinput></screen>
+
     </sect3>
 
     <sect3  id="vsftpd-init">
-      <title>Boot Script</title>
+      <title><phrase revision="sysv">Boot Script</phrase>
+             <phrase revision="systemd">Systemd Unit</phrase></title>
+
+      <para revision="sysv">Install the
+      <filename>/etc/rc.d/init.d/vsftpd</filename> init script included in the
+      <xref linkend="bootscripts" revision="sysv"/> package.</para>
 
-      <para>Install the <filename>/etc/rc.d/init.d/vsftpd</filename>
-      init script included in the
-      <xref linkend="bootscripts" revision="sysv"/>
+      <para revision="systemd">Install the <filename>vsftpd.service</filename>
+      unit included in the
       <xref linkend="systemd-units" revision="systemd"/> package.</para>
 
 <screen role="root"><userinput>make install-vsftpd</userinput></screen>
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to