How to install glFTPd v2.02RC1 for Linux (ARM)

 

Things you need to know about this tutorial –

I’m always root user.

I will add a user in glFTPd named “scully” with password “yllucs” and she is in the group “x-files” with no ident or ip.

Default user in glFTPd is “glftpd” with password “glftpd”

####################################################################

Prerequisites

apt-get install libcurl4-openssl-dev libssl-dev
apt-get install pkg-config build-essential intltool
apt-get install checkinstall libncurses5-dev
apt-get install zip unzip ftp
apt-get install openssl tcpd inetutils-inetd

 

Download glFTPd

cd /tmp
wget http://www.glftpd.eu/files/glftpd-LNX-ARM_2.02RC1.tgz
tar -zxvf glftpd-LNX-ARM_2.02RC1.tgz
cd glftpd-LNX-ARM_2.02RC1

 

Use the installgl.sh script that comes with glFTPd, it’s not that tricky. Just follow the instructions and install glFTPd in a jailed enviroment.

./installgl.sh

 

Installation is done and you need to make some changes.

mkdir -p /jail/glftpd/site/incoming
chmod -R 755 /jail/glftpd/{bin,lib}
chmod 777 /jail/glftpd/site/incoming
chmod 770 /jail

 

Lets start glFTPd

/etc/init.d/inetutils-inetd start

or

cd /etc/init.d/
./inetutils-inetd start

 

Login to your glftpd with default user glftpd and add a user named scully

ftp 127.0.0.1 1337
<user: glftpd>
<password: glftpd>
site adduser scully yllucs *@* | site adduser <user> <password> <ident>@<ip>
site change scully flags +147ABCDEFGHI
site change scully ratio 0
site change scully num_logins 10
site change scully max_sim_down 10
site grpadd x-files
site grpchange x-files slots 10
site chgrp scully X-files

 

Now we need to add some lines

#add GLFTPD: ALL in hosts.allow

nano /etc/hosts.allow

GLFTPD: ALL

#add two lines in glftpd.conf

nano /jail/glftpd.conf

pasv_ports 1250-1337
pasv_addr <your ip>

#If you have a router you need to forward port 1250 to 1337

######################################################################

This will get your glFTPd server up and running. Now it is time for you to edit glftpd.conf like you want it.

This site is a good help http://mewbies.com/how_to_install_glftpd_tutorial.htm

 

2 thoughts on “How to install glFTPd v2.02RC1 for Linux (ARM)

  1. Hi i have used your guide to install glftpd on my rpi, i do get one error when i try to install it.

    Copying your system’s run-time library linker(s):
    (NOTE: Searches can take a couple of minutes, please be patient.)
    ld-linux.so.2: Searching . . . Failed!
    You must install and copy the missing libraries to /jail/glftpd/lib manually.

    Also i cant connect to the server it wont start up.

Leave a Comment