This is an old revision of the document!
uFTP Server configuration uFTP server can be configured with the “uftpd.cfg” configuration file, the location of the file can be on the same path of the binary application or under “/etc/uftpd.cfg”.
Here below there is a sample “uftpd.cfg” configuration file.
#FTP CONFIGURATION SAMPLE /etc/uftpd.cfg" ####################################################### # UFTP SERVER SETTINGS # ####################################################### MAXIMUM_ALLOWED_FTP_CONNECTION = 30 #MAXIMUM ALLOWED CONNECTIONS ON THE SERVER FTP_PORT = 21 #TCP/IP PORT SETTINGS (DEFAULT 21) SINGLE_INSTANCE = true #Allow only one server instance (true or false) DAEMON_MODE = true #Run in background as a service, daemon mode IDLE_MAX_TIMEOUT = 3600 # Idle timeout in seconds, client are disconnected for inactivity after the # specified amount of time in seconds, set to 0 to disable MAX_CONNECTION_NUMBER_PER_IP = 2 #MAX CONNECTIONS PER IP #LIMIT THE MAXIMUM NUMBER OF CONNECTION FOR EACH IP ADDRESS # 0 TO DISABLE MAX_CONNECTION_TRY_PER_IP = 3 #MAX LOGIN TRY PER IP #THE IP ADDRESS WILL BE BLOCKED FOR 5 MINUTES AFTER WRONG LOGIN USERNAME AND PASSWORD #0 TO DISABLE #USERS #START FROM USER 0 TO XXX USER_0 = username PASSWORD_0 = password HOME_0 = / GROUP_NAME_OWNER_0 = usergroup USER_NAME_OWNER_0 = user USER_1 = apache PASSWORD_1 = apachePassword HOME_1 = /var/www/html/ GROUP_NAME_OWNER_1 = www-data USER_NAME_OWNER_1 = www-data USER_2 = anotherUsername PASSWORD_2 = anotherPassowrd HOME_2 = /
Parameters explained.
MAXIMUM_ALLOWED_FTP_CONNECTION = 30
Define the number of maximum client allowed connections on the FTP server, to reduce server memory usage this number can be reduced.
FTP_PORT = 21
FTP server TCP/IP port, 21 is the standard FTP service port.
SINGLE_INSTANCE = true
If enabled the single instance check will allow only one server instance to run.
DAEMON_MODE = true
When the daemon mode is activated uFTP server runs as a service in background, this option can be deactivated to run the server from the console for debug purpose.
IDLE_MAX_TIMEOUT = 3600
Ftp clients will be automatically closed if there is no activity for more than the specified number of seconds.