Setting up Lukemftpd (Tnftpd)

tested on RHEL? and Ubuntu Server artful

Requirements

RHEL,

rpm -q gcc make byacc

Ubuntu,

apt install build-essential byacc

eventually get rid of the skeletons,

cd /etc/
mv skel skel.dist
mkdir skel

create some user for authenticated sessions to work too,

useradd -m storage
passwd storage

and check the homedir of the ftp user,

vipw

Installation

wget ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/tnftpd-20130325.tar.gz
tar xzf tnftpd-20130325.tar.gz 
cd tnftpd-20130325/
./configure
make
make install

cd ~/
ln -s /usr/local/etc/ftpd.conf
ln -s /usr/local/etc/ftpusers

vi ~/ftpd.conf

motd all none
portrange all 50000 50999
umask chroot 022
umask real 022

#in case you want the thing to work publicly while living
#behind a NAT, advertise the public IP,
#advertize all IP_ADDRESS

vi ~/ftpusers 

storage     allow chroot
ftp     allow guest
anonymous   allow guest
* deny

Ready to go

which fortune
ls -lhF /usr/games/fortune

vi /etc/rc.local

#!/bin/bash

echo -n Starting Lukemftpd...
/usr/local/libexec/tnftpd -D -4 -ll -V "`/usr/games/fortune -o | head -1`" && echo Done

chmod +x /etc/rc.local 

/etc/rc.local
ps aux | grep ftpd