Setting up Lukemftpd (Tnftpd)

tested on RHEL? and Ubuntu Server artful



rpm -q gcc make byacc


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,


NO NEED TO GIVE A SHELL for the anonymous ftp user! Yes guest account works evenso (debian/ubuntu example follows).



tar xzf tnftpd-20130325.tar.gz 
cd tnftpd-20130325/
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

Fortunes (optional)

apt search fortune
apt install fortune fortunes
/usr/games/fortune -a -n 40 -s

and use it below as -V

Ready to go

vi /etc/rc.local

echo -n starting lukem...
/usr/local/libexec/tnftpd -D -4 -ll -V "" && echo done

ps auxww | grep ftpd

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