repositorypackage
0.0.0-20241026030511-d799e0141cd6
Repository: https://github.com/jonathantorres/ftr.git
Documentation: pkg.go.dev
# README
ftr
ftr (File Transfer) is an FTP server daemon.
Installing
Install the binary with go get
:
go get -u github.com/jonathantorres/ftr
Build from source
In order to build from source, make sure to use git
to clone the repository, once done you can use the make
utility to compile the source code:
make
Running tests
Use make
to run all of the tests:
make test
Configuration
You can see an example configuration file in ftr.conf
, in here you can customize the users for the server along with their passwords and root directories. Every configuration option is explained below.
server
: Specify an IP address or domain name in which the server will listen to requests from clientsport
: Port in which to run the serverroot
: Root directory in which all of the directories for it's users will be storederror_log
: Location in which log entries related to errors on the server will be storedaccess_log
: Location in which log entries related to normal operations of the server will be storeduser
: This option will allow you to add a user for the serveruser.username
: Specify a username for the useruser.password
: Specify a password for the useruser.root
: Specify a root directory for the user. This directory will be relative to the location of theroot
of the server
Command Line options
You can use the -h
flag to see all of the command line options in which the server can run
ftr -h