Full operating docs


Hardware/OS requirements

HW: 486+ OS: Linux with 2.x.x kernel and libwww-perl


Linux Security Issues

Sometimes its usufull to avoid portsnoopers and any other non-wanted activity. Here's a good progs that should be installed. http://www.psionic.com

Management issues

Never give userlevel above 19 to people that you dont know personally, since it gives user EUID 0 which is root.

group sysops vs. sysops

Group sysops should be used to handle the user management better. Sysops can change information on any account, and gsysops can only affect the users in his group.


Crontab-Scripts, (/etc/crontab)

# GFTPD weektop. runned every 15 mins.
10,25,40,55 * * * * root /.ftp-data/bin/ftpp quiet > /dev/null
# topmedals (top3)to oneliner
58 23 * * 6 root /.ftp-data/bin/topmedals > /dev/null
# keeps the log files intact.
58 12 * * * root /.ftp-data/bin/parser.sh > /dev/null
# generates grouptops every 15 mins.
11,26,41,56 * * * * root /.ftp-data/bin/grouptop > /dev/null
# check for newer version of the daemon once every week
58 4* * 7 root /.ftp-data/bin/client.pl > /dev/null 2>&1
#ghost killing after 60 mins. Removes the hanging/freezed connections.
0,5,10,15,20,25,30,35,40,45,50,55 * * * * root /.ftp-data/bin/ftpghost > /dev/null
#directory moving & removing (uses $datapath/.ftp-data/sitekill.data as config)
3 * * * * root /.ftp-data/bin/sitekill > /dev/null
#empty dir removing
5 * * * * root /.ftp-data/bin/cleardirs.sh > /dev/null
#dupe-file adding. absolete.
#18 1 * * * root /.ftp-data/bin/dupepath /home/ftp/uploads/utils > /dev/null
# 20 1 * * * root /.ftp-data/bin/dupepath /home/ftp/uploads/games > /dev/null


daemons Filepaths (out of date, update coming)

<datapath>/
|- help/
| |- site.help.regular (SITE HELP: Shown to all users)
| |- site.help.nuke (SITE HELP: Shown to users >= level 5)
| |- site.help.sysop (SITE HELP: Shown to users >= level 10)
| |- site.kill (SITE KILL usage - sysop cmd)
| |- site.uadd (SITE UADD usage - sysop cmd)
| |- site.udel (SITE UDEL usage - sysop cmd)
| |- site.readd.top (SITE READD usage - sysop cmd)
| |- site.readd.bottom (SITE READD usage - sysop cmd)
| |- site.sgrp (SITE SGRP usage - sysop cmd)
| |- site.give (SITE GIVE usage)
| |- site.nuke (SITE NUKE usage)
| |- site.locate (SITE LOCATE usage)
| |- site.addip (SITE ADDIP usage - sysop cmd)
| |- site.delip (SITE DELIP usage - sysop cmd)
| |- site.sysop (SITE SYSOP usage - sysop cmd)
| |- site.lgrp (SITE LGRP usage)
| |- site.dupe (SITE DUPE usage)
| |- text/
| |- site.nfo.top (SITE NFO list, the part BEFORE the nfo files are listed)
| |- site.nfo.bottom (SITE NFO list, the part AFTER the nfo files are listed)
| |- site.user.top (SITE USER list, the part BEFORE the users are listed)
| |- site.user.middle (SITE USER list, shown before list of READDable users)
| |- site.user.bottom (SITE USER list, the part AFTER the users are listed)
| |- site.group.top (SITE GROUP, the part BEFORE the groups are listed)
| |- site.group.bottom (SITE GROUP, the part AFTER the groups are listed)
| |- site.new.top (SITE NEW list, the part BEFORE the new files are listed)
| |- site.new.bottom (SITE NEW list, the part AFTER the new files are listed)
| |- site.request.top (SITE REQUEST list, the part BEFORE the progs are listed)
| |- site.request.bottom (SITE REQUESTlist, the part AFTER the progs are listed)
| |- tops.weekly.up.top
| |- tops.weekly.up.bottom
| |- tops.weekly.down.top
| |- tops.weekly.down.bottom
| |- tops.alltime.up.top
| |- tops.alltime.up.bottom
| |- tops.alltime.down.top
| |- tops.alltime.down.bottom
| |- grouptops.alltime.top
| |- grouptops.alltime.bottom
| |- grouptops.weekly.top
| |- grouptops.weekly.bottom
| |- site.who.top
| |- site.who.bottom
| |- nukes.yesterday
| |- nukes.today
| |- nukes.bottom
| |- msg.stats (SITE STAT list)


SITE COMMANDS:


USAGE: SITE ADDIP <username> <ident@ip> [ident@ip]...

<username> The username to add.
<ident@ip> The indet@IP address to add.

Globbing is okay, so are alpha names. Note that a user may have a maximum of 10 IP's. Examples:
SITE ADDIP user fooabr@*.coolness.com
SITE ADDIP user foo@205.211.224.* bar@213.245.123.123
SITE ADDIP user *@129.232.212.5


USAGE: SITE DELGNFO <groupname>

This command lists all deleted user's stats in a specified group.


USAGE: SITE DELIP <username> <ip#>

<username> The username to add.
<ip#> The IP NUMBER to add.

Note that the IP NUMBER is needed here, you can get it by using the "SITE USER <username>" command. The IP's are numbered 0-9. Note that a user may have a maximum of 10 IP's.


USAGE: SITE DF

Shows the diskusage statistics of sites harddrives.


USAGE: SITE SDF

Shows the diskusage statistics of current dirs harddrives.


USAGE: SITE DUPE <searchstr>

Dirname dupechecker. Do NOT include wildcard characters, and I don't recommend searching for common words and/or groupnames. Dupe database is realtime now. EXAMPLE: To find duke nukem 3D: SITE DUPE nukem


USAGE: SITE UNDUPE <filename||file(*wilcard)>

Undupe files from dupechecker. *-letter is wildcard, ie. SITE UNDUPE foobar* would undupe all foobar1.zip foobar2.zip etc.


USAGE: SITE GIVE <username> <kbytes> <message>

(NOTE: The message part is optional) This command transfer credits from you to other user. Example: SITE GIVE molo 1000 Here's some credits for ya, pal
(This would give user 'molo' 1 meg of your credits)


USAGE: SITE GNFO <groupname||ALL>

This command lists all user stats in a specified group or with ALL it shows stats of every group combined.


USAGE: SITE GSYSOP <command> <username> <field/value>

<command>The command name
<username> The username to edit.

"SITE GSYSOP HELP" will list all valid commands. ****************************************************************
This is a privileged command only for management of groups. Some guidelines: Delete inactive users. Always use ident@ip when adding hostmask. NO TRIAL USERS!!! Only add users that ranked in some top places.

To view group stats: SITE GSYSOP GNFO
To view user's stat: SITE GSYSOP USER <username>
To add user: SITE GSYSOP UADD <username> <passwd>
- and the ip SITE GSYSOP ADDIP <username> <ident@ip>
- and tagline SITE GSYSOP SET_TAGLINE <username> <tagline>
To del user: SITE GSYSOP UDEL <username>
To readd user: SITE GSYSOP READD >username>
To del ip: SITE GSYSOP DELIP username <*number>
To change leech: SITE GSYSOP SET_LEECH <username> <ON>/<OFF>
to change passwd: SITE GSYSOP PASSWD <username> <passwd>

<*number> can be found with SITE GSYSOP USER username
All added users will have default ratio & credits to start with.


USAGE: SITE UNFO <your tagline>

Change your tagline


USAGE: SITE TRAFIC [ALL|GROUPNAME]

For seeing the week, month and alltime trafic statistics for all users or for spesific groupname. level_trafic 10 is default level for access this command.


USAGE: SITE EMAIL [Your@email]

For setting your email-address so sysop can contact you if needed.


USAGE: SITE WKUP

Show top 15 weekly uploaders on normal section and [1-3] on section1,2,3.


USAGE: SITE WKDN

Show top 15 weekly downloaders on normal section and [1-3] on section1,2,3.


USAGE: SITE MUP

Show top 15 montly uploaders on normal section and [1-3] on section1,2,3.


USAGE: SITE MDN

Show top 15 montly downloaders on normal section and [1-3] on section1,2,3.


USAGE: SITE ALUP

Show top 15 all-time uploaders on normal section and [1-3] on section1,2,3.


USAGE: SITE ALDN

Show top 15 all-time downloaders on normal section and [1-3] on section1,2,3.


USAGE: SITE WELC

Show the welcome message (/.ftp-data/welcome.msg)


USAGE: SITE RULE || SITE RULES

Show the site rules (/.ftp-data/site.rules)


USAGE: SITE STAT

Show your statistics.


USAGE: SITE SEEN <username>

Show when users last logged on.


USAGE: SITE VERS || SITE VERSION

Report on daemon version.


USAGE: SITE WHO

List users currently online.


USAGE: SITE MSG <username>

Send message to another user, use with no args to read msgs. (multiple consecutive MSG commands send multiline messages)


USAGE: SITE TIME

Gives out the local time.


USAGE: SITE INVITE <nick>

Invites nick to site channel if the channel is defined.


USAGE: SITE COLOR

Toggles between color ascii and plaint text mode.


USAGE: SITE NFO <nfofile>

View NFO files, use with no args for a list.


USAGE: SITE VIEW <filename>

View any txt/nfo/diz files.


USAGE: SITE DUPE <regexp>

Scan dupe check database, use with no args for help. (/.ftp-data/dupe.database)


USAGE: SITE NEW <xx>

Display the xx most recent uploads. With no arg display the five most recent uploads.


USAGE: SITE NEWDIR <xx>

Display the xx most recent dirs make. With no arg display the five most recent dirs.


USAGE: SITE NUKES

View nukelog file.


USAGE: SITE GROUP <groupname>

Join/leave group affils. No args for a list and help.


USAGE: SITE GPAL

Display alltime group tops lists on normal section and [1-3] on section1,2,3.


USAGE: SITE GPM

Display montly group tops lists on normal section and [1-3] on section1,2,3.


USAGE: SITE GPWK

Display weekly group tops lists on normal section and [1-3] on section1,2,3.


USAGE: SITE ONEL <Your oneliner>

Add oneliners, use with no args to display oneliners.


USAGE: SITE ONEL_SYSOP <Your sysop oneliner>

Add sysop oneliners, use with no args to display sysop oneliners. (level_sysop)


USAGE: SITE REQUEST <Your request>

Add requests, use with no args to display requests.


USAGE: SITE REQFILLED <number>

To fill/remove the request after filling. Will inform the requester about the filling with msg.


USAGE: SITE LASTWKUP

Show lastweeks top uploaders on normal section and [1-3] on section1,2,3.


USAGE: SITE LASTWKDN

Show lastweeks top downloaders on normal section and [1-3] on section1,2,3.


USAGE: SITE LASTGPWK

Show Lastweeks grouptop on normal section and [1-3] on section1,2,3.


USAGE: SITE PASSWD <newpassword>

Change users password.


USAGE: SITE USER [username]

List of all users on the site, or show info on a single user.


USAGE: SITE SCHK

Does an informative "lint"-like scan of the userbase. See also SITE CLEANUP.


USAGE: SITE SLOG [number]

View sysop activity log. With number added to command, it shows the last [number] lines os sysop.log


USAGE: SITE SPDLOG [number]

View speed fuckups log. With number added to command, it shows the last [number] lines os sysop.log


USAGE: SITE LLOG [number]

View login security activity log. With number added to command, it shows the last [number] lines os sysop.log


USAGE: SITE UREMOVE <username> || SITE PURGE <username>

Uremove/purge removes users totally so it cant be readded.


USAGE: SITE PRE <dirname> <aliasdir||relativepath>

Pre moves dirname from private groupdir to public area, such as pointed by aliasdir-variable. SITE PRE Softwarename utils would move Sofwarename to /daemon/utils if aliasdir /daemon/utils is defined.


USAGE: SITE SWHO

List extra information about users currently online.


USAGE: SITE READD <name of deleted user>

Re-add deleted user.


USAGE: SITE SGRP <groupname>

Change group affils for an individual user.


USAGE: SITE CLEANUP

Togle the cleanup mode for the SITE SGRP command. When ON it will do SITE UDEL for users with KILL-line in SITE SCHK.


USAGE: SITE QUIET

Toggles the quiet-mode ON/OFF. When In quiet-mode daemon wont show the file_id.diz or mpgpath's.


USAGE: SITE BDWK

Shows weektop of restarters/badfiles.


USAGE: SITE BDALL

Shows alltop of restarters/badfiles.


USAGE: SITE BAN <filename> <message>

Ban a filemask, ? = wild letter. SITE BAN .fxp no thanks would ban all *.fxp files with message 'no thanks' then trying to upload.


USAGE: SITE UNBAN <filename>

Unban a filemask by number in banlist.


USAGE: SITE BANLISTS

hows the list of banned filemasks.


USAGE: SITE LASTLOGGED

Shows the XX last logged persons.


USAGE: SITE KICK <name> <username>

The user to kick/kill. To list userss, use the SITE WHO command.


USAGE: SITE KILL <pid> <pid>

The PID to kill. To list PIDs, use the SITE SWHO command.


USAGE: SITE ADDGROUP <groupname> <description>

Adds group to group.user file with group description.


USAGE: SITE DELGROUP <groupname> <description>

Dels from from group.user file with group description.


USAGE: SITE ADDGROUPRATIO <groupname> <ratio> <credits> [ratio1 credits1 ratio2 credits2...]

Add groupratio so members of the group shares the credits they earn between all of the members of the group. SITE ADDGROUPRATIO eleet 3 10000 2 20000 would add groupratio for eleet group with 1:3 ratio witn 10megs beginnin on normal section and ratio 1:3 with 20megs on section1.


USAGE: SITE DELGROUPRATIO <groupname>

Del groupratio of groupname.


USAGE: SITE LISTGROUPRATIO <groupname>

Print the groupratio list


USAGE: SITE LGRP <groupname>

This command lists all users in a specified group. Use the "SITE GROUP" command without args to list available groups.


USAGE: SITE LOCATE <string>

<string> The string to search for.

The SITE LOCATE command searches the entire site contents for directory names that contain the specified <string>. The search is case-insensitive.


USAGE: SITE CHECK <filename[.zip|rar|mp3]>

Checks the file against CRC-error, and removes the file if check fails. Usufull for deleting partitial files in order to upload the full working one.


USAGE: SITE ZIPLIST <filename.zip>

List files inside of zipfile.


USAGE: SITE NOTSINCE <#days>

List users who havent logged in xx days..


USAGE: SITE NUKE <directory> <multiply> <message>

<directory> The directory to nuke.
<multiply> The nuke multiplier value. i.e. "5" would nuke 5x the filesize from the offenders credits.
<message> The message to put in the nukelog, max 12 chars.

NOTE: You must enter the ENTIRE directory name. It IS case-sensitive. The nuke command is a privelige, please use it with discretion.


USAGE: SITE READD <username>

<username> The username to re-add.

Note that in order for a user to be readded, they must have been deleted with the SITE UDEL command.


USAGE: SITE SGRP <username> <group> <username>

The username to edit. <group> The group to toggle for this user. SITE SGRP <username> by itself will list a users affils.


USAGE: SITE SYSOP <username> <field> <value>

<username> The username to edit.
<field> The field to edit.
<value> The value to set to <field>.

"SITE SYSOP HELP" will list all valid fields.
"SITE SYSOP <username> <field>" will show help on a particular field.
"SITE SYSOP <username>" will list valid fields and values for a user.

Valid fields & descriptions:
ratio [0-9] The user's ratio (0=Leech access)
ratio1 [0-9] The user's ratio on section1 (0=Leech access)
ratio2 [0-9] The user's ratio on section2 (0=Leech access)
ratio3 [0-9] The user's ratio on section3 (0=Leech access)
tagline [Str] The user's tagline
num_logins [0-9] # of sim. logins this user can have (0=unlimited)
exempt_from_limit [0,1] 1=User can log in even if site is full, 0 otherwise
credits [0-x] # of credits a user has (use SITE GIVE to ADD)
credits1 [0-x] # of credits a user has on section1
credits2 [0-x] # of credits a user has on section2
credits3 [0-x] # of credits a user has on section3
weeklimit [0-x] # of credits a user can download per week if he is leech
level [1-19] The user's level
friend [0,1] Is user a friend?
speed_fuckups [0-x] # of time user have fucked the speedlimit
group_sysop [Group] [#MaxAccounts] [#MaxLeeches] For adding gsysop rights
comment [Str] Commentline that sysop can only see
passwd [Str] The user's new password


USAGE: SITE UADD <username> <password> [ident@ip] [ident@ip]...

<username> The username to add.
<password> The password to set for this user.
[ident@ip] Optional field for adding ident@ip on the same line.

After you add a user, you will probably want to use "SITE ADDIP" to add IP's to the new account.


USAGE: SITE UDEL <username>

<username> The username to remove.

After you delete a user with "SITE UDEL", you may later reinstate their account by using "SITE READD".


USAGE: SITE UNNUKE <directory> <message>

<directory> The directory to nuke.
<message> The message to put in the nukelog, max 12 chars.

NOTE: You must enter the ENTIRE directory name. It IS case-sensitive. The unnuke command is a privelige, please use it with discretion.


/etc/gftpd.sysconfig

Variables:

#
# sample 'gftpd.sysconfig' file for gftpd.
#
# This file should ALWAYS be called '/etc/gftpd.sysconfig'
# Taking out all these comments could conceivably improve performance
#
#
# This is the name of your site :)
sitename GFTPD

# This is the location where your datapath is, by default it is /.ftp-data
# NOTE: Do NOT put a trailing '/'!
datapath /.ftp-data

# The maximum number of users that can be connected to the site at once:
max_users 7

# This file will be stuffed into all ZIP files uploaded if this line is here:
# tag_file /.ftp-data/site.nfo

# This message will be displayed whenever a user logs in. See COOKIES for
# information on magic cookies supported in this file:
welcome_msg /.ftp-data/welcome.msg

# If "show_diz" is set to 1, any files matching "FILE_ID.DIZ" will be
# displayed whenever a user enters a directory:
show_diz 1

# This is the default ratio for all new users. 0 = No Ratio = leech
default_ratio 3

# The max nuke multiplier X
multiplier_max 3

# The max oneliners. default = 10
max_oneliners 10

# The max requests. default = 10
max_requests 10

# The max sysop oneliners. default = 10 (SITE ONEL_SYSOP)
max_sysoneliners 10

# This is the number of bytes a user can download before the ratio begins
# to take effect. In other words, this is like free credits: (Ex: 50Mb)
free_ratio_amount 10000

# This is the number of days back to check for dupes. You can set this as
# high as you like, but remember that each day you check takes a teeny bit
# more time. Set this to 0 to disable the dupe check (bad idea!)
dupe_check_days 14

# This is the default restrict path for all users:
# NOTE: Do NOT put a trailing '/'!
default_restrict /home/ftp

# This is the default tagline for all users: default_tagline Set your tag
# Force tagline change before can do anything [0/1] [disable/enable]
force_tagline 1

# If caps_first_letter is set to 1, whenever a user mkdir's it will
# capitalize the first letter of the dir name, like it or not -- this is
# good to keep things alphabetized in a sane way:
caps_first_letter 1

# Place the E-Mail address of the siteop here:
email gftpd@writeme.com

# Define a "banner" file, which (if it exists) will be displayed before
# The user logs in. banner /.ftp-data/banner
# This will be used often as a "divider" line, keep it about 75 chars or so
# to be safe...
dividerline [----------------------------------------------------------------------]

# these are the paths that no ul.bytes are given from
#
nobytespath1 /home/ftp/uploads/REQUESTS-FILLED
nobytespath2 empty
nobytespath3 empty
nobytespath4 empty

# these are the paths where the nuke command is allowed
#
allownukepath1 /home/ftp/uploads/utils
allownukepath2 /home/ftp/uploads/games
allownukepath3 /home/ftp/uploads/REQUE
allownukepath4 /home/ftp/music_and_mp3s/Inc

# allow=1 / disable=0 unnuke command
#
allow_unnuke 1

# Max userfiles
#
max_userfiles 85

# SITE SCHK defaults:
#
# bitch if user still has ratio level is higher. default = 10
schk_ratio_level 11
#
# bitch if level is lower and user has exempt. default = 10
schk_exempt_from_limit 5
#
# bitch if level is lower and user has multiple logins. default = 2
schk_num_logins 2
#
# birch if higher ratio than this. default = 3
schk_ratio 3
#
# 0=disable and 1=enable bithing to leechaccs. default = 1
schk_bitch_leechers 0
#
# kill after x days. default = 30
schk_killdays 21
# limit days for first login after account creation. KILL if exceeded.
schk_first_login_days 7
# limit the number of breaking the DL speedlimit. KILL if exceeded.
# Also disables DL possibilites for user after exceeding.
schk_speed_fuckups 5
# END of SITE SCHK defaults.


# SITE commands access levels
#
# min level for rename command
level_kill 2
# min level for SITE KILL
level_kill 16
# min level for SITE UADD
level_uadd 15
# min level for SITE NOTSINCE
level_notsince 10
# min level for SITE UDEL
level_udel 15
# min level for SITE READD
level_readd 15
# min level for SITE SGRP
level_sgrp 15
# min level for SITE LLOG
level_llog 17 # min level for
SITE SLOG level_slog 17
# min level for SITE SWHO
level_swho 11
# min level for SITE IWHO
level_iwho 11
# min level for SITE NUKE (access for every 6 hour)
level_nuke 5
# min level for SITE NUKE (full access)
level_fullnuke 6
# min level for SITE ADDIP
level_addip 10
# min level for SITE DELIP
level_delip 10
# min level for SITE SYSOP
level_sysop 16
# min level for SITE SCHK
level_schk 16
# min level for SITE CLEANU
P level_cleanup 20
# min level for SITE GNFO
level_gnfo 11
# min level for SITE GROUP
level_gnfo 2
# min level for SITE STAT
level_stat 20
# min level for SITE USER
level_user 7
# min level for SITE UNDUPE
level_undupe 10
# min level for SITE BAN
level_ban 10
# min level for SITE OPEN and CLOSE
level_close 20
# END of access levels

# FTP shutdown # 0 = online, 1 = offline (disable logins)
shutdown 0

# Min Transfer Speed in kb/s
# (0=disabled, xx=kb/s limit)
min_transfer_speed 5

# RAR chec
# (0=disabled, 1=non-solid rars, 2=crc32-check [default], 3=sfv32-check)
check_rar 3

# Mkdir auto convert space to "_" # (0=disabled, 1=enabled(default))
mkdir_auto_convert_space 1

# extract nfo's from zip
s # (0=disabled, 1=enabled) default=0
extract_nfo 0

#
experimental storecode 1

#
# Section Module
#
#section name (empty=default=doesnt show up). non-empty=shows.
sectionname1 MP3
sectionname2 foobar
sectionname3 empty

#section path (beginning full path), default=empty
#ie. /home/ftp/uploads means path regexpression uploads*
sectionpath1 /home/ftp/music_and_mp3s
sectionpath2 empty
sectionpath3 empty

# beginnig bytes for sections
free_ratio_amount1 10000
free_ratio_amount2 10000
free_ratio_amount3 10000

# default ratios for sections
default_ratio1 3
default_ratio2 3
default_ratio3 1

#
# End of Section Module
#
#
# Number of lines in lastlogged file
#
max_lastlogged 10

#
# Nodupepaths
#
nodupepath1 empty
nodupepath2 empty
nodupepath3 empty
nodupepath4 empty

#
# delete nuke if reason regexp = big [0/1]
#
delete_nuke_if_big 0

#
# XFERLOG [0/1]
# /var/log prints the log to /var/log/xferlog
#
xferlog_on 1
xferlogpath /var/log

#
# Autoconvert spaces to _ in filenames [0/1]
#
file_auto_convert_space 1

#
# Require crc/sfv file to be uploaded to dir
# before .r* && .0* files are approved to system.
# 0==disabled, 1==enabled, 2==enabled with diroutput
require_sfv 2

#
# joint_credits [0/1] - if someone wants to enable users
# to use credits on all sections. [feature untested but should work]
#
joint_credits 0

#
# mp3_check [0/1] to add .m*-mask to sfv32checker.
#
mp3_check 1

# Mkdir auto convert "." to "_"
# (0=disabled, 1=enabled(default))
mkdir_auto_convert_point 1

#
# Detect pftp stealth mode and change comment and tagline if detected.
# (0=disabled, 1=enabled)
detect_pftp_stealth_mode 0

# fake_welcome (default=0, no) (1 is recomended for fake response on poer 21)
# 1=wu-ftpd %hostname FTP server (Version wu-2.4.2-academ[BETA-11]...
# 2=war-ftpd %sitename WarFTPd 1.70.b01.04 (Aug 18 1998) Ready (C)...
fake_welcome 0

#
# Add bouncer support
#
#
#bounce_host bouncehostname.com

#
# enable parsing /.ftp-data/timehostsallow [0/1]
#
# timehostsallow 0

#
# enable automatic mp3idtag -> FILE_ID.DIZ convertor
# (requires check_rar 3)
mp3fileid 1

#
# restart time limit in seconds befero allow uploading the same
# filename again
#
restart_time_limit 0

#
# Restarter stats. Counts tops to badfiles/restarters.
# Counter increases only when same user makes same 'put samifile.zip'
# 2 times in a row.
# (0=disabled, 1=all puts (default), 2=don't count permission denies)
#
restart_log 1

# 0 = secure bounce disabled (bouncer also need to have security:0)
# 1 = secure bounce enabled (bouncer needs to have security:1)
# 2 = secure bounce enabled with showing /.ftp-data/refusebouncepage
securebounce 1

#
# dir aliases for cd and pre commands
# full absolute path
#
alias_dir utils=/home/ftp/uploads/utils
alias_dir games=/home/ftp/uploads/games
alias_dir games=/home/ftp/music_and_mp3s/Incoming_music

# uploadpath variables to /etc/gftpd.sysconfig, to allow uploads to
# only subdirs. Will allow ten uploadpath lines to sysconfig. ie: uploadpath
# /home/ftp/uploads will give deny when someone does put zoo.zip to /home/ftp/uploads,
# but will allow the put zoo.zip to /home/ftp/uploads/zoodir
#
uploadpath /home/ftp/uploads

#
# remove_null_files [0/1]
# remove file if the filesize is 0 after the upload
# 0=disabled, 1=enabled
remove_null_files 1

# require_del_before_remove [0/1]
# require user to be delete with site udel before
# you can do site uremove. 0=disbled, 1=enabled
require_del_before_remove 0

# Use /.ftp-data/logs/wtmp instead of /var/log/wtmp
# 0=/var/log 1=/.ftp-data/logs
# remember to do: touch /.ftp-data/logs/wtmp
use_gftpdwtmp 0

# sfv_excemption_for_privdir [0/1], when 1 then
# priv group users dont have to upload .sfv
# when they are preing a release or such to their group dir.
sfv_excemption_for_privdir 0

#
# For the people who are trying to connect behind firewalls and have
# the ident requests blocked out.
#
#noidenthost 123.123.123.12
#noidenthost 123.123.233.

# Use /.ftp-data/dupe.database instead of /.ftp-data/newdir.log [0|1]
# so people can use their own dupelog binaries for generating
# log files for the site dupe command usedupedatabase 0
# mkdirwarninglevel [0|1|2|3] (searches are mkdirs that are > 5 letters)
# 0 = disabled (no check on mkdir)
# 1 = warn only if match on newdir.log
# 2 = deny mkdir if dirname matched newdir.log AND dir exists on the system
# 3 = deny mkdir on any match agains newdir.log
# Suggested level is 2 since that way it denies mkdir if there is dir ie on
# yesterdays dir. Or 3 if you wanna deny any match against newdir.log.
#
mkdirwarninglevel 2

#
# End of /etc/gftpd.sysconfig
#