From 620b04aae11389a2d309542a9b3b7e3459afaca7 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sat, 1 Mar 2014 21:47:07 +0000 Subject: [PATCH] Change vsftpd 'empty' directory to FHS compatible location. git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@12805 af4574ff-66df-0310-9fd7-8a98e5e911e0 --- introduction/welcome/changelog.xml | 5 +++++ server/major/vsftpd.xml | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/introduction/welcome/changelog.xml b/introduction/welcome/changelog.xml index 2c10ddae75..7812474c89 100644 --- a/introduction/welcome/changelog.xml +++ b/introduction/welcome/changelog.xml @@ -47,6 +47,11 @@ March 1st, 2014 + + [bdubbs] - Move vsftpd 'empty' directory to FHS + compliant location. Fixes + #4721. + [bdubbs] - Add a patch to remove ifconfig and hostname when installing net-tools. Fixes diff --git a/server/major/vsftpd.xml b/server/major/vsftpd.xml index ce0c808492..d72cb4945e 100644 --- a/server/major/vsftpd.xml +++ b/server/major/vsftpd.xml @@ -10,6 +10,7 @@ + ]> @@ -80,10 +81,10 @@ class="username">root user, create the needed directories, users, and groups with the following commands: -install -v -d -m 0755 /var/ftp/empty && -install -v -d -m 0755 /home/ftp && -groupadd -g 47 vsftpd && -groupadd -g 45 ftp && +install -v -d -m 0755 &vsftpd-empty; && +install -v -d -m 0755 /home/ftp && +groupadd -g 47 vsftpd && +groupadd -g 45 ftp && useradd -c "vsftpd User" -d /dev/null -g vsftpd -s /bin/false -u 47 vsftpd && useradd -c anonymous_user -d /home/ftp -g ftp -s /bin/false -u 45 ftp @@ -118,7 +119,7 @@ install -v -m 644 vsftpd.conf /etc directory that anonymous users will use (/home/ftp) and the directory the daemon will chroot into - (/var/ftp/empty). + (&vsftpd-empty;). /home/ftp should not be @@ -173,7 +174,7 @@ install -v -m 644 vsftpd.conf /etc background=YES listen=YES nopriv_user=vsftpd -secure_chroot_dir=/var/ftp/empty +secure_chroot_dir=&vsftpd-empty; EOF @@ -202,7 +203,7 @@ EOF vsftpd None - /var/ftp, /var/ftp/empty, /home/ftp + //usr/share/vsftpd, /home/ftp