Author: dj
Date: Sat Jun  4 15:30:33 2016
New Revision: 17442

Log:
Add local user support and Linux-PAM configuration for vsftpd.

Modified:
   branches/systemd/general.ent
   branches/systemd/introduction/welcome/changelog.xml
   branches/systemd/server/major/vsftpd.xml

Modified: branches/systemd/general.ent
==============================================================================
--- branches/systemd/general.ent        Sat Jun  4 15:13:50 2016        (r17441)
+++ branches/systemd/general.ent        Sat Jun  4 15:30:33 2016        (r17442)
@@ -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 systemd 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 "systemd">                  <!-- svn|[release #] -->
 <!ENTITY lfs-version  "systemd">          <!-- x.y|development] -->

Modified: branches/systemd/introduction/welcome/changelog.xml
==============================================================================
--- branches/systemd/introduction/welcome/changelog.xml Sat Jun  4 15:13:50 
2016        (r17441)
+++ branches/systemd/introduction/welcome/changelog.xml Sat Jun  4 15:30:33 
2016        (r17442)
@@ -44,6 +44,16 @@
 
 -->
     <listitem>
+      <para>June 4th, 2016</para>
+      <itemizedlist>
+        <listitem>
+          <para>[dj] - Add local user configuration and Linux-PAM for
+          vsftpd.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>June 2nd, 2016</para>
       <itemizedlist>
         <listitem>

Modified: branches/systemd/server/major/vsftpd.xml
==============================================================================
--- branches/systemd/server/major/vsftpd.xml    Sat Jun  4 15:13:50 2016        
(r17441)
+++ branches/systemd/server/major/vsftpd.xml    Sat Jun  4 15:30:33 2016        
(r17442)
@@ -177,6 +177,38 @@
 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">
-- 
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