This file is indexed.

/usr/share/doc/muddleftpd/examples/ratios.conf is in muddleftpd 1.3.13.1-4.3ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#----------------------------------------------------------
# This is the main server configuration. This configuration
# shows the use of ratios and bandwith limiters.

[section] main

# allow connections from port 21
ftpport 21

# set maximum users to 200
maxusers 200

# log everything execpt debugging logs
logstrength 63

# set logfile
logfile /var/log/muddleftpd.log

# set default timeout to 300 seconds
timeout 300

# set the file displayed on login
logindump /etc/issue.ftp

# allow anyhost to connect
ipacl A:*

# set admin email address
email user@hostname

# set groups to run through. one group is to catch invalid usernames
# like root and uucp. The next catches anyone else and sees if they
# are a person that has a ratio.
group badusers
group ratiogroup

# set scratchfile for inetd operation
scratchfile /var/lock/muddleftpd.scratch 

# set hostname to something reasonable
hostname testserver

# set the greeting
greeting Welcome to the ratio Test server.

#----------------------------------------------------------
# This configures badusers. It catches any bad usernames that
# should not be logged into

[section] badusers

	# tell it to accept the usernames root, uucp and news
	nameacl A:root
	nameacl A:uucp
	nameacl A:news
	
	# accept these usernames from any host.
	ipacl A:*

	# tell the server these usernames are disabled
	authmethod disabled

	# set the maxuser count of this group to 0 so it isn't
	# added to the stats
	maxusers 0

#----------------------------------------------------------
# This configures the users that will use ratios.

[section] ratiogroup

	# tell the group that it can accept any host that the last group
	# didn't get
	ipacl A:*

	# tell the server to accept any username for this group
	nameacl A:*

	# tell the server to use chroot to the user's rootdir. Also
	# drop root privledges.
	chroot 1
	droproot 1
	
	# set the root directory to /home/mp3s
	rootdir /home/mp3s
	
	# set the users homedir to /, so he ends up in his own homedir
	homedir /

	# tell the server to use the unix authenticator, useful against
	# normal password files
	authmethod unix
	uid mp3
	gid mp3

	# only allow users to list and change directories.
	access /:LC

	# the first option only lets users upload mp3's to the upload
	# directory. The second allows downloads of mp3 from anywhere else.
	fnaccess /upload/*.mp3:A
	fnaccess *.mp3:R

	# now set ratios up. Give no credits to start off with. Setup 
	# so user gets 5 files for 1 upload and 10 bytes for every byte
	# uploaded

	ratios 1
	ratiofile /etc/ratios
	fileratios 5:1
	byteratios 10:1
	initalbytes 0
	initalfiles 0

	# now set up file download/upload limits to 16K per second per
	# connection.

	maxspeed 16384

	# now specify a line showing ratios whenever a user chdir's

	cddumpdata You have %A file credits/nYou have %a byte credits
	quitdumpdata You have downloaded %f file for %b bytes/nYou have uploaded %F files for %B bytes./nYou have %A file credits./nYou have %a byte credits./n/nThank you for using this archive./n