User:Stefanwilkens/Glftpd

From ArchWiki
< User:Stefanwilkens
Revision as of 11:21, 27 February 2009 by Stefanwilkens (Talk | contribs) (Created page with '== Introduction == glFTPd stands for GreyLine File Transfer Protocol Demon. It was named after the initial developer GreyLine. The first public release of glFTPd dates back to th...')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Introduction

glFTPd stands for GreyLine File Transfer Protocol Demon. It was named after the initial developer GreyLine. The first public release of glFTPd dates back to the beginning 1998. glFTPd is well known for its detailed user permissions, extensive scripting features and for securely and efficiently transferring files between other sites using FXP. glFTPd has often been used on topsites for distribution of warez.

Developement was stopped, the latest stable version of glFTPd dates 2005-12-25. glFTPd is still widely respected and used.

Installation

glFTPd comes with a well thought through installation script that will automatically create the required groups, configure the most basic options and set-up /jail if you want to.

Preperation

Installing the requirements:

pacman -S xinetd zip unzip openssl tcp_wrappers

Find a dir to work from, /tmp is generally ok:

cd /tmp

Downloading the latest version:

wget http://www.glftpd.com/files/glftpd-LNX_2.01.tgz

Unpacking and entering the dir:

gunzip -c glftpd-LNX_2.01.tgz | tar -xvf -
cd glftpd-LNX_2.01

installgl.sh

Let's start the installation:

sudo sh installgl.sh

You will now be prompted with several questions, below is an example of a jailed set-up, aswers are listed in bold. This is NOT a complete instalaltion log, but close enough:

     ###  #     ##### ##### ####  ####        ###
   #   # #     #       #   #   # #   #      #   #
  #     #     ###     #   #   # #   #         #
 #  ## #     #       #   ####  #   #        # 
#   # #     #       #   #     #   #       # 
###  ##### #       #   #     ####       ##### 
--== WE MAKE FILES TRANSFER ==--
-----------------------------------------------------------
GLFTPD INSTALLER v2.0.1 (linux)
Originally done by jehsom and dn.
Made ready for the new era by turranius and psxc.  
-----------------------------------------------------------
Before we begin: If this installer fails on your system, please
let the devs know. You find us on irc (efnet) in #glftpd. Thank you.
Also, any bugs found in glftpd itself should be reported either to
the board @ http://www.glftpd.com, in the irc channel, or both.

Press <enter> to continue.
TCPD SETUP
Do you wish to use tcpd? If you are not sure then you should not
use it. If you decided to change this at a later time, please
search for tcpd in glftpd.docs for the required changes.
Use tcpd? [Y]es [N]o: Y

JAIL SETUP:
Do you want to run glftpd in a "Jailed" environment?  In this
environment a private directory will be created and glftpd will
be installed inside.  Regular shell users will not be able to get
inside this private directory.  The glftpd.conf is also moved
inside for added security and a new group will be created so
you and other users you specify can access glftpd through the shell.
Use a jailed environment? [Y]es [N]o: Y

Creating the jailed environment.

Please enter the private directory to install glftpd inside [/jail]: /jail

Do you want to create a private group?  If you say no then only root will
be able to access glftpd.  Otherwise you can add other shell users to the
group so they can access glftpd from the shell.
Use a private group? [Y]es [No]: Y

Setting permissions on /jail . . . 

GLFTPD BASE SETUP:
Please enter the directory inside /jail to install glftpd to [/glftpd]: /glftpd

Copying glftpd files to /jail/glftpd . . . 
Copying required binaries to /jail/glftpd/bin . . .
All binaries successfully copied.
Making glftpd's /dev/null , /dev/zero & /dev/urandom . . . 

SERVICE SETUP & MULTI-INSTALL:
Enter a service name for glftpd. This name will be used as the
service name mapped to the port in /etc/services, the name
used in your (x)inetd settings, and the name of your config-file.
NOTE: If you (wish to) have multiple instances of glftpd on the
same box, you *must* to change this.
Press <enter> for the default (glftpd)> glftpd

COMPILING SOURCES & COPYING LIBS:
modifying source (bin/sources/glconf.h) ...
#define GLCONF  "/jail/glftpd.conf"
OK
Compiling source files in /jail/glftpd/bin/sources to /jail/glftpd/bin...
OK

PORT AND SYSTEM SETUP:
Enter the port you would like glftpd to listen on [1337]: 21
Setting userfile permissions . . .
Adding glftpd service to /etc/services (as glftpd) . . 
Copying glftpd.conf to /jail/glftpd.conf . . .

Do you wish to use European weeks? European weeks starts with a Monday.
This is for glftpd's reset binary (see docs for more info) [Y/N]: Y

SSL/TLS SETUP:
We will now create a certificate for SSL/TLS support. This step is
required.

Please specify a generic name for this certificate.
This can be any name but should say something about the ftp server
like the name for it perhaps (press enter for glftpd): glftpd
Please wait while creating certificate... (will take time!)

FINISH:
Congratulations, glFtpD has been installed. Scroll up and note any errors
that needs fixing. ./installgl.debug contains a log of the installation process.
To get your site running, you must edit \033[1m/jail/glftpd.conf\033[0m according to
the instructions in /jail/glftpd/docs/glftpd.docs.
For help, visit #glftpd on EFnet after you've read (not skimmed) the docs/faq.

After configuring glftpd, visit the following websites for additional
scripts to give your site some style!:
Turranius - http://www.grandis.nu/glftpd
Jehsoms - http://runslinux.net/
http://www.chimera-coding.com
D-ViBEs collection - http://www.glftpd.at

The official glftpd homepage is located at http://www.glftpd.com

Thanks for your support!
the glFtpD team

Configuration

TODO