Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOW-TO GLFTPD 2.01 - Configurations
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
HeXiLeD
l33t
l33t


Joined: 20 Aug 2005
Posts: 946
Location: online

PostPosted: Sun Jul 29, 2007 8:43 pm    Post subject: HOW-TO GLFTPD 2.01 - Configurations Reply with quote

These are simple examples to help setting up glftpd.
glFTPD is a freely available FTP server which runs on Unix, Linux, and BSD operating systems.
It is also an advanced & multi featured and versatil ftp server.

It is strongly recommended that you do not emerge it (for portage system distros or if using another distro; that you install it manually)
The reasons for this are mostly due to security and versatility of the install and use of the ftpd

Official site: http://www.glftpd.com

Official Documentation:http://www.glftpd.com/files/docs/glftpd.docs

note: GLFTPD takes 2 minutes to install and "2 days to setup" (thats what they say)
it is strongly recommended that you read and fully understand the documentation to know how to set it properly

Official help : http://www.glhelp.org
Addons: http://www.grandis.nu/glftpd & http://www.glhelp.org

Official network and #channel: Efnet irc - #glftpd & #glhelp

Examples:

MAIN CONF

Code:
#########################################################################################
#                                      
#                          GLFTPD : www.glftpd.com               
#                                 
#########################################################################################

# If you have rsa cert file
#RSA_CERT_FILE /path/to/glftpd-cert/ftpd-rsa.pem

# If you have dsa cert file
DSA_CERT_FILE /path/to/glftpd-cert/ftpd-dsa.pem

# Note: after changing the default key you may get this error: 530 TLS subsystem failed.
# you need to edit  /etc/xinetd.d/glftpd or  /etc/xinetd.d/xinetd and where you have:
# server_args, you need to add the proper path to the new generated key.
# ie: server_args = -l -o -i -z cert=/glftpd/ftpd-dsa.pem or =/glftpd/path/to/ftpd-dsa.pem
# as of this location is now specified in glftpd.conf only as of 2.0.1 version
#
#########################################################################################
# Ciphers for control connection
# CIPHERS_FOR_CTRL HIGH:MEDIUM:LOW
# (ciphers for control channel connection, HIGH is highly recommended)

CIPHERS_FOR_CTRL HIGH

# ciphers for dirlists
# CIPHERS_FOR_DIR MEDIUM:HIGH:LOW
 
CIPHERS_FOR_DIR HIGH

# ciphers for other data transfers
# CIPHERS_FOR_DATA MEDIUM:HIGH:LOW
# The higher the cypher is the slower the upload is

CIPHERS_FOR_DATA HIGH

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

# timezone ( read the docs for this one)
timezone -0

#########################################################################################
# TLS_FTPS [0/1] (0 is default)
#    if 1 glftpd will run in ftps mode, whole connection from the beginning
#    will be in ssl mode... (except for connections from bouncers, those must
#    supply IDNT command first) (note that data connection is set the ssl mode
#    too, use PROT command to switch back if you want) (check ftp-tls draft for more info)
#    (for normal ftp server you dont want this)

TLS_FTPS 1

#########################################################################################
# master <user> [<user> ...]
#   Here you can specify the master(s) of the site. The master(s) can change
#   anyone's flags, including all siteops.

master <user1?>

#########################################################################################
# String to replace the standard login prompt.
# login_prompt <string>

#########################################################################################
# Server shutdown: 0=server open, 1=deny all but siteops, !*=deny all, -user, =group

shutdown 0

#########################################################################################
 # If you have multiple IP's on your system, enter the ones you want glftpd to listen on

valid_ip <your lan or wan ip>

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

sitename_long   <site name>
sitename_short  <short site name>
email             <some@email.here>

#########################################################################################
# This sets a limit of how many users that can be added to the server

total_users <50 or whatever you want>

#########################################################################################
# The maximum amount of users allowed to login at once. The first number specifies the
# maximum amount of users allowed to connect to the site. The second number specifies how
# many exempt users can connect, if the site is already full.

max_users   <25 2>

#########################################################################################
# This will prevent people from uploading if your free space on current drive is
# equal to or smaller than xxx megs.

free_space  11000

#########################################################################################
# Tells glftpd which interface to bind to when doing active file transfers. Without
# this, glftpd uses the same interface that the user connected to.
# active_addr <ip/hostname> / pasv_addr <ip/hostname>

#active_addr <ip or domain>

# cant be used if the box is on LAN or active will not work
# if you want it to work this way then  you need to add this domain do hosts file pointing
# to the local ip

pasv_addr <ip or domain> 1

#(note: due to some weird reason to be able to use active mode from the wan. this needs
#       to set as pasv_addr in the lan. if  i set it as active_addr and test it in the
#       lan, there is no problem but not the other way. i guess this is router related.

#########################################################################################
# Active and passive port/ranges causes glftpd to pick an open port between X and Y when
# making a passive connection, instead of picking a random port. You should have at least
# 10 ports per user. Exmp: active/pasv_ports 10000-11000 20 21 22 23 80 110 1600-1610

pasv_ports     <start-end>
active_ports   <firs port-last port>

#########################################################################################
# Path relative to the ROOTPATH.

rootpath        /path/to/glftp/glftpd/

#########################################################################################
#The path where you keep all data-files (default ftp-data).
# This is relative to your rootpath.

datapath    /ftp-data

#########################################################################################
# The config file used when we recieve a SIGHUP signal

reload_config   /path/to/glftp/glftpd/glftpd.conf

#########################################################################################
# The path to your bot script.
# The botscript will be executed after a directory is created, deleted,
# nuked or unnuked.You can use it to signal your bot to 'announce' the newest directory.

# botscript_path <path>

#########################################################################################
# path/filename> <flags/groups/users>

welcome_msg    /ftp-data/misc/welcome.msg   *
goodbye_msg   /ftp-data/misc/goodbye.msg   *
newsfile   /ftp-data/misc/newsfile      *
banner      /ftp-data/misc/banner           *

#########################################################################################
# TLS enforcements.

userrejectsecure   !*
userrejectinsecure    *
denydiruncrypted    *
denydatauncrypted    *

#########################################################################################
# Specifies masks for files, directories, links, etc that will be skipped during
# directory listing, even if the -a switch is used to show standard hidden files
# (starting with .) Exmp: hidden_files / .message hidden.*

# hidden_files <path> <filemask> [<filemask> ...]

hidden_files /site .*

#########################################################################################
# Setting this to 0 turns it off, so GID will not be incremented, and
# listing will not display the number of times each file was downloaded.

file_dl_count 1

#########################################################################################
# Specifies files that cannot be downloaded. ie: noretrieve <filename> [<filename> ...]

noretrieve ftpd-dsa.pem group group- ld.so.cache ld.so.conf localtime passwd passwd- passwd.bak resolv.conf mike

#############################################################################
##################     THE RIGHTS SECTION BEGINS HERE     ###############################
############################################################################
# (you can use a ! in front of any group/user/flag to negate it)                                                             #
# The default is no, you don't need to add "!*" at the end                                                                   #
#                                                                                                                                                        #
# Function       Path                   =GROUP or -username or X (flag)                                                      #
############################################################################

rename      *         <-user1>
filemove                 *         <-user1>
delete                   *                                        <-user1>
dirlog                    /site/*                                 *
download                /site/*           *

nuke       /site/nfos/uploads*                    =nfo

renameown       /site/pictures/uploads*                 =pictures
renameown       /site/uploads*                             =uploads
renameown       /site/nfos/uploads*                   =nfo
renameown       /site/subtitles/uploads*     =subs

deleteown       /site/picutres/uploads*                  =pictures
deleteown       /site/uploads*                              =uploads
deleteown       /site/nfos/uploads*                  =nfo
deleteown   /site/subtitles/uploads*           =subs

resume          /site/uploads*                               =uploads
resume          /site/nfos/uploads*                        =nfo
resume         /site/subtitles/uploads*                   =subs

makedir         /site/uploads*                                =pictures
makedir         /site/nfos/uploads*                   =nfo
makedir         /site/subtitles/uploads*                   =subs

upload         /site/uploads*                                 =uploads
upload         /site/nfos/uploads*                   =nfo
upload         /site/subtitles/uploads*                    =subs

# User1 Private dir
rename          /site/user1*                <-user1>
filemove          /site/user1*                            <-user1>
delete            /site/user1*                            <-user1>
dirlog             /site/user1*                            <-user1>
download        /site/user1*                            <-user1>
nuke              /site/user1*                            <-user1>
renameown    /site/user1*                            <-user1>
deleteown      /site/user1*                            <-user1>
resume         /site/user1*                            <-user1>
makedir        /site/user1*                            <-user1>
upload          /site/user1*                              <-user1>

# User2 Private Dir

rename      /site/user2*                 <=user2>
filemove                /site/user2*                            <=user2>
delete                  /site/user2*                            <=user2>
dirlog                   /site/user2*                            <=user2>
download             /site/user2*                            <=user2>
nuke                   /site/user2*                            <=user2>
renameown         /site/user2*                            <=user2>
deleteown           /site/user2*                            <=user2>
resume              /site/user2*                            <=user2>
makedir             /site/user2*                            <=user2>
upload               /site/user2*                            <=user2>

###################     THE RIGHTS SECTION ENDS HERE     ################################
#############################################################################

#############################################################################
# secure_pass Ab1... *" will only allow passwords 6 characters or longer that
# contain at least one capital letter, one lowercase letter, and one number

# secure_pass   mask      users to whom this rule applies              #

secure_pass      a.......   =nfo
secure_pass      a1......           =files
secure_pass      a.......            =uploads
secure_pass      Ab1.....          =private
secure_pass      Ab1.....          =pictures
secure_pas       a.......   =subs
secure_pass      Ab1.....   =docs
secure_pass      Ab1.....   =videos


#########################################################################################
# secure_ip   min. fields   allow hostnames?   need ident?   users to whom this applies

secure_ip     2        1         0      *

#########################################################################################
# path-filter    group        path/msgfile         filters

#path-filter        *  /ftp-data/misc/pathmsg   ^[-A-Za-z0-9_.()[:space:]]*$  ^\.  ^- -= =-


#########################################################################################
# allow_fxp <yes/no> <yes/no> <yes/no> [flag|-user|=group]
#         downloads   uploads  logging  permissions

allow_fxp   yes    yes   no   1 

#don't allow anonymous users
allow_fxp   no    no   no   8

#allow upload but not download for everyone else
allow_fxp   no    yes   yes   *   

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

show_totals   *      *
show_diz   .message   *

#########################################################################################
# The amount of days back to check for dupes. Set this to 0 to disable dupe-checking

# dupecheck   how many days?   ignore file case like Windows?

dupe_check    5      yes

xdupe *.txt *.nfo *.nfos
#*.zip *.rar *.tar *.[Rr][0-9][0-9] *.[Rr][Aa][Rr] *.[mM][pP][3]

#########################################################################################
# Whether or not to allow users to download a file before it is completely uploaded.
# 0 = yes / 1 = no

dl_incomplete 1

########################################################################################
# It can be a number from 1 to 50.  It represents the size (in MB's) of files being
# downloaded to keep in memory (a little faster download).
# The default is 4 (files smaller than 4 megs are kept in memory during download)

mmap_amount 5

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

noretrieve   passwd   passwd-   group   group-

########################################################################################
#      <cap 1st letter 0/1>  <lower/upper/none>  <character conversions>

file_names   0         none         [:space:].
dir_names   0         none         [:space:].

########################################################################################
tagline      FREE[:space:]YOUR[:space:]MIND

ignore_type  *.[tT][xX][tT] *.[nN][fF][oO] [rR][eE][aA][dD][mM][eE] .message
ignore_type  *.[sS][fF][vV] *.[cC][rR][cC] *.[dD][iI][zZ]

########################################################################################
#pre_check      /bin/dupescript | removed  in favour of /bin/tur-precheck.sh

pre_dir_check   /bin/dirscript

#pre_check       /bin/tur-precheck.sh
post_check   /bin/zipscript


########################################################################################
# Tells glftpd where to look for the request display file and how many lines to store.
#                     Location                  Max number of lines in Display

requests    /ftp-data/misc/requests                   25

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

# This tells the number of oneliners to show on the site onel command.
# If this is set to 0 or this line does not exist glftpd will consider the   
# oneliners to be disabled.

oneliners   25

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

lastonline   0 15

#######################################################################################
# This option determines whether colors are present in directory listing         #
# when a user has the color flag.                        #
# color_mode 0|1                              #

color_mode 0

#######################################################################################
# Nukedir_Style:            
# 1st. Option   [Format: %N = DIR]
# 2nd. Option   0 = Delete ALL, 1 = Save main dir.,  2 = Save ALL (UNNUKE)
# 3rd. Option   [Byte Size] for nuker to discount.

nukedir_style    NUKED-%N   2   50000

empty_nuke   25000
multiplier_max   20

#######################################################################################
# Allows you to hide users from being displayed in site who, added to
# the last-users-online file, or listed with "site users".
# Hideuser <-user/=group/flag>

hideuser <-user1>

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

# which users will be hidden from 'site who' while they are in which paths
hideinwho   /site*      <-user1>

#######################################################################################
# Directory where the site will be served

min_homedir     /site

#######################################################################################
# This will allow everyone to download for free from /site/freestuff/ * =somegroup
# creditloss 0 yes /site/* <-user1>

creditloss 0 yes /site/README/ * *

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

# who can download which files for free
freefile   *.txt         *

#######################################################################################
# SECTION #     KEYWORD                 DIRECTORY       SEPARATE CREDITS              #
#######################################################################################
stat_section    DEFAULT                 *                       no

#######################################################################################
# Private Groups:   privgroup GROUPNAME   GROUPDESC                                   #
#######################################################################################
#privgroup     STAFF       My[:space:]Private[:space:]Group

privgroup        nfo       Readme.files
privgroup        files       opensource
privgroup        uploads         uploads.folder
privgroup        private         classifed
privgroup    pictures    pictures
privgroup    user1       user1
privgroup    docs       word.documents
privgroup    videos       youtube
privgroup    subs       subtitles
privgroup    user2       user2

#######################################################################################
# PRIVPATHS:  Directories should be uniquely named (no wildcards)                     #
#######################################################################################

privpath /site/files             =files   
privpath /site/nfos               =nfo
privpath /site/uploads            =uploads      
privpath /site/private        =private
privpath /site/docs        =docs
privpath /site/videos        =videos
privpath /site/pictures        =pictures
privpath /site/user1        =user1
privpath /site/subtitles     =subs
privpath /site/user2        =user2

#######################################################################################
# SPEED LIMIT: speed_limit <path> <dl_limit> <up_limit> [flags/=groups/-usernames]    #
#######################################################################################
# (0 = unlimited)
# Option      <path>         <dl_limit>   <up_limit>    [flags/=groups/-user]

speed_limit     /site/files*             60000          0               *
speed_limit    /site/nfos*          15000      0       =nfo
speed_limit     /files/uploads*          20000          0               *
speed_limit   /site/private*       50000      0      =private
speed_limit   /site/pictures*       65000      0      =pictures
speed_limit   /site/subtitles*    15000      0      =subs
speed_limit     /site/docs*       50000      0      =docs
speed_limit     /site/videos*       30000          0      =videos

speed_limit     /site/user1*                 0          0               <-user1>
speed_limit     /site*                       0          0               <-user1>


#######################################################################################
# Display a file when a user goes into the specified directory.
# exmp: msgpath /site/incoming/ /ftp-data/misc/incoming.txt *

# msgpath <path>       <filename>       <flag/=group/-user>

msgpath   /site/files/      /ftp-data/msgpath/files      *
msgpath   /site/nfos/      /ftp-data/msgpath/nfos      *
msgpath   /site/uploads/        /ftp-data/msgpath/upload        *
msgpath   /site/private/   /ftp-data/msgpath/private   *
msgpath   /site/pictures/     /ftp-data/msgpath/pictures   *
msgpath   /site/README/      /ftp-data/msgpath/readme   *
msgpath     /site/subtitles/   /ftp-data/msgpath/subtitles   *

msgpath   /glftpd/site/files/unix/           /ftp-data/msgpath/bigfiles     *
msgpath   /glftpd/site/files/linux/distros/        /ftp-data/msgpath/bigfiles     *
msgpath   /glftpd/site/files/video.shows/           /ftp-data/msgpath/bigfiles     *      

#######################################################################################
# On list command display in : k = kilobytes, b = bytes, m = megs                     #
#######################################################################################

#<use_dir_size>        < k - b - m >      <path>

use_dir_size          m       /site/files
use_dir_size          k      /site/nfos
use_dir_size          m       /site/uploads
use_dir_size          m       /site/private
use_dir_size          m       /site/pictures
use_dir_size          k       /site/README
use_dir_size         k      /site/user1
use_dir_size         k      /site/subtitles
use_dir_size         m      /site/docs
use_dir_size         m      /site/videos

#######################################################################################
# Defines an alias for a directory. This would allow a user to issue the command
# 'cd util' anywhere, and it would take him to 'homedir/incoming/utils' where homedir
# is his home directory like /site (in which case it'd be /site/incoming/utils).

#      <alias>      <path>

alias      files      /site/files
alias       nfos      /site/nfos
alias       uploads      /site/uploads
alias       pictures   /site/pictures
alias       rules       /site/README
alias      mike      /site/user1
alias       subs      /site/subtitles
alias      docs      /site/docs
alias      videos      /site/videos

#######################################################################################
# Global control for  maximum simultaneous downloads and uploads. -1 means unlimited.
# sim_xfers    max_downloads    [max_uploads]

sim_xfers         15              -1

#######################################################################################
# To ban users (prevent accounts with their usernames from being created)
# banned_users <user> [<user> ...]

banned_users root admin master god bush

#######################################################################################
# CUSTOM SITE COMMANDS                                                                #
# site_cmd [CMD NAME] [EXEC/TEXT] [PATH TO FILE]                         #
#######################################################################################   

site_cmd RULES       TEXT   /ftp-data/misc/site.rules
site_cmd LOCATE      EXEC   /bin/locate.sh

# Some aliases for group stats commands
site_cmd GRPWKUP   IS   GPWK
site_cmd GRPWKDN   IS   GPWD
site_cmd GRPMONTHUP   IS   GPMONTHUP
site_cmd GRPMONTHDN   IS   GPMONTHDN
site_cmd GRPALUP   IS   GPAL
site_cmd GRPALDN   IS   GPAD
custom-grpwkup      !8 *
custom-grpwkdn      !8 *
custom-grpmonthup   !8 *
custom-grpmonthdn   !8 *
custom-grpalup      !8 *
custom-grpaldn      !8 *

custom-rules   !8 *

#locate allows users to search priv dirs !!!!, do not use it
custom-locate   1


#######################################################################################
# flags

-addip       1 2 7
-adduser         1 2 7
-change          1 7
-changeallot    1 2 7
-changeflags     1
-changeratio     1 2 7
-changesratio    1 7
-changehomedir   1
-chmod           1
-chgadmin    1 7
-chgrp           1 7
-chgrp-priv      1
-chpass          1
-delip           1 2 7
-delownip   !8 *
-deluser         1 2 7
-dirs      !8 *
-errlog       1
-flags          !8 *
-gadduser        1 2 7
-ginfo           2 H
-give            G
-group          !3 *
-groups         !8 *
-grp      !8 *
-groupcomment    1
-grpadd          1
-grpchange    1
-grpdel          1
-grplog          1
-grpnfo          1 2
-grpren          1
-grpstats    *
-help      !8 *
-info      !8 *
-kick            D
-kill            E
-logins          1
-misc      !8 *
-msg            !8 *
-msg*            1
-msg=            1
-msg{           !8 *
-nuke            A
-onel      !8 *
-oneladd   !8 *
-passwd      !8 *
-predupe    C
-purge           1
-readd           1 2 7
-renuser         1 7
-reqlog          1 A B 7
-request   !8 *
-requestadd   !8 *
-show            1
-showhiddenusers 1
-stat      !8 *
-stats      !8 *
-swho            1 E
-take            F
-syslog          1
-undupe          C
-unnuke          B
-update          1
-user      !8 *
-users           H
-usercomment     1 7
-userextra       1 2 7
-who            !8 *
-wipe       1
-seen            1
-laston          1
-userothers      1
-traffic         1 7


# Custom flags

# user cant change passwd
-passwd     !8 !J *

#######################################################################################
# EOF;


USER TEMPLATE

Code:
Default.user Template example
#This template must be created by manually editing the conf and not by site command option!!


# Userfile for default.user
# homedir is the directory 'cage', users are unable to see or do anything outside of it
HOMEDIR /site
 
# GENERAL: WKLY_ALLOTMENT | IDLE_TIME | MAX_DLSPEED | MAX_ULSPEED
GENERAL         0,0            3000           0             0
 
# max logins per account | max logins from the same IP |  max simult. downloads | max simult.
uploads
LOGINS    2                            2                            1                      -1
 
FLAGS 3
TAGLINE default.template
 
# DIR is the start-up dir for this user
DIR /
 
# Xfer information: FILES | KILOBYTES | SECONDS
RATIO      2
CREDITS    2

ALLUP                 0         0         0
ALLDN                 0         0         0
WKUP                  0         0         0
WKDN                  0         0         0
DAYUP                 0         0         0
DAYDN                 0         0         0
MONTHUP               0         0         0
MONTHDN               0         0         0
 
# TIME: Login Times | Last_On | Time Limit | Time on Today
TIME         0           0          0             0
 
# NUKE: Last Nuked | Times Nuked | Total MBytes Nuked
NUKE        0             0                0



USER OUTPUT


Code:
#The default.user template will result in something like this on 'site command'.
#'site user defaul.user'

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



 | Username: default.user             Created: UNKNOWN                   |
200- | Added by:                          Expires: Never                     |
200- | Time On Today: 00:00               Last seen: Wed Dec 31 19:00:00 1969|
200- | Flags: 3                           Idle time: 3000                    |
200- | Ratio: 1:2                         Credits:       0.0 MB              |
200- | Total Logins: 0                    Current Logins: 0                  |
200- | Max Logins: 2                      From same IP: 2                    |
200- | Max Sim Uploads: Unlimited         Max Sim Downloads: 1               |
200- | Max Upload Speed:     0.0 K/s      Max Download Speed:     0.0 K/s    |
200- | Times Nuked: 0                     Bytes Nuked:      0 MB             |
200- | Weekly Allotment:     0 MB         Messages Waiting: N                |
200- | Time Limit:    0 minutes.          (0 = Unlimited)                    |
200- | Tagline: default.template                                             |
200- | Groups:                                                               |
200- | Priv Groups:                                                          |
200- +-----------------------------------------------------------------------+
200- | IP0:                               IP1:                               |
200- | IP2:                               IP3:                               |
200- | IP4:                               IP5:                               |
200- | IP6:                               IP7:                               |
200- | IP8:                               IP9:                               |
200- +=======================================================================+



USER SETTINGS

Code:
# note
# Changing  user settings by 'site change user <name>
# you will get a similar output like the one below

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


ftp> site CHANGE <name>
200- Valid fields & descriptions:
200-
200- ratio             [0-9] The user's ratio
200- sratio            [Str] [0-9] User's section ratio
200- max_dlspeed       [Str] User's max download speed in KiloBytes/sec
200- max_ulspeed       [Str] User's max upload speed in KiloBytes/sec
200- max_sim_down      [Num] User's max simultaneous downloads
200- max_sim_up        [Num] User's max simultaneous uploads
200- wkly_allotment    [Num,Num] Section,Weekly credit allotment
200- idle_time         [Str] The user's default idle time
200- tagline           [Str] The user's tagline
200- comment           [Str] The user's comment
200- num_logins        [Num] [Num] Max concurrent connections [ from same IP ] (0=unlimited)
200- time_limit        [Str] User's time limit
200- timeframe         [0-23 0-23] The hours between which the user can log in
200- credits           [Kb]  User's Credits (use SITE GIVE to ADD)
200- flags             [Str] User's Flags
200- homedir           [Str] User's Home Directory
200- startup_dir       [Str] User's Start-up Directory
200- expires           [Date] Date after which a user expires (yyyy-mm-dd}
200 Command Successful.



GROUPS

Code:
# note
# on site command: Site groups
# you will get a similar output like the one below

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

ftp> site groups
200- #users  Group Abbr.   Group Description
200   
200    mp3         tones of mp3
200    pr0n                filthy porn
200    wallpapers          backgrounds
200- -------------------------------------------------------
200-
200-   nfo             Readme.files
200-   files           opensource
200-   uploads         uploads.folder
200-   private         classifed
200-   pictures        pictures
200-   user1           user1
200    docs            word.documents
200-   videos          youtube
200-   subs            subtitles
200-   user2           user2
200-
200- A '*' denotes a private group.  Type SITE CHGRP to add
200- or remove users from these groups.
200-
200 0 user groups, 4 privileged groups.



GLFTPD COMMANDS

Code:

#Here you can see some basic info about glftpd commands and options
#the rest its on www.glftpd.com . always READ the glftpd docs.

# note
# on site command: Site help
# you will get a similar output like the one below

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

200- --=--------------------- Available SITE commands ---------------------=--
200-    TAGLINE: Change Your Tagline
200-       WKUP: Show Weektop Uploaders
200-       WKDN: Show Weektop Downloaders
200-       ALUP: Show Alltime Uploaders
200-       ALDN: Show Alltime Downloaders
200-       GPWK: Show Weektop Groups
200-  GPMONTHUP: Show Month Top Groups
200-       GPAL: Show Alltime Top Groups
200-       GPWD: Show Weektop Group Downloaders
200-  GPMONTHDN: Show Month Top Group Downloaders
200-       GPAD: Show Alltime Top Group Downloaders
200-      DAYUP: Today's Top Uploaders
200-      DAYDN: Today's Top Downloaders
200-    MONTHUP: Show MonthTop Uploaders
200-    MONTHDN: Show MonthTop Downloaders
200-    TRAFFIC: Show Site Traffic
200-    REQUEST: Make a Request
200-  REQFILLED: Mark a Request as Filled
200-    WELCOME: Show Welcome Message
200-      RULES: Show Site Rules
200-       USER: Show Users On Site (Type username to see users stats)
200-      NUKES: Show Nukes
200-    UNNUKES: Show UnNukes
200-       DUPE: Search Dupe Database
200-       TIME: Show Local Time
200-        NEW: Show Recent Dirs
200-      GROUP: Join/Leave Groups
200-       ONEL: Add/View Onliners
200-        MSG: Send a Message
200-        WHO: See who's online
200-      COLOR: Toggle Color
200-       SEEN: See when a user was last on
200-     LASTON: Display stats of last users online
200-     SEARCH: Locate a DIR on the site.
200-     PASSWD: Change Password
200-       VERS: Show Daemon Version
200-       STAT: Show Statline
200-       IDLE: Show Minimum and Maximum Idle Timeout
200-      GINFO: Detailed nfo of Groups
200-      USERS: List Users on Site
200-      DELIP: SITE DELIP <yourownusername> # (delete your own IP's)
200-       NUKE: Nuke Program (site nuke <dir> <rate> <reason>)
200-     UNNUKE: UnNuke Program (site unnuke <dir> <Opt: reason>)
200-     UNDUPE: Delete Dupe (site undupe <filename>)
200-      ADDIP: Add IP To a User
200-      DELIP: Delete an IP From a User
200-    ADDUSER: Add User
200-    DELUSER: Delete User
200-      READD: Readd Deleted User
200-     CHANGE: Change Field For a User
200-   GADDUSER: Add User and put him in a group
200-    RENUSER: Rename User
200-     CHPASS: Change Another User's Password
200-       KICK: Kick a user
200-       KILL: Kill a pid
200-       SWHO: Alternative who
200-     GRPADD: Add group
200-     GRPDEL: Delete group
200-     GRPNFO: Change Group nfo
200-     GRPREN: Rename group
200-        GRP: Show extended group info
200-      CHGRP: Change a user's group
200-  GRPCHANGE: Change group settings
200-   CHGADMIN: Change the gadmin(s) for a group
200-     LOGINS: Login Log
200-     SYSLOG: Syslog Log of User Changes
200-     UPDATE: Update DirLog Database
200-      PURGE: Purge Deleted Users
200 Use "SITE HELP <command>" for syntax help.


The latest examples; (if any) can be found here
_________________
443640, Questioning, Unsolved, Configs, BinHost


Last edited by HeXiLeD on Sat Oct 11, 2008 5:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
HeXiLeD
l33t
l33t


Joined: 20 Aug 2005
Posts: 946
Location: online

PostPosted: Sun May 09, 2010 11:12 am    Post subject: Reply with quote

I have created an HOWTO INSTALL GLFTPD 2.01 & Update to 2.01.1 (psxc-beta) as well as i have updated glftpd.conf and also a few wiki pages specifically for glftpd:

Update 30/04/2012 http://nixbits.net/wiki/Setting_up_glftpd_from_scratch
_________________
443640, Questioning, Unsolved, Configs, BinHost
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum