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 -i skel/ skel.dist/
mkdir skel/

create some user for authenticated sessions to work too,

useradd -m storage
passwd storage

create ftp user for anonymous usage,

grep ^ftp: /etc/passwd
useradd -M -s /bin/false ftp

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 # new file

motd all none
portrange all 70000 70999
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 # new file

storage     allow chroot
ftp     allow guest
anonymous   allow guest
*       deny

Ready to go

vi /etc/rc.local

echo -n starting lukem...
/usr/local/libexec/tnftpd -D -4 -ll -V "" && echo done
#`/usr/games/fortune -o | head -1`

ps aux | grep ftpd

Nethence | Doc | Pub | Lab | Pbraun | SNE Russia | xhtml