Scroll to navigation

twoftpd-xfer(1) General Commands Manual twoftpd-xfer(1)

NAME

twoftpd-xfer - TwoFTPD file transfer back-end.

SYNOPSIS

twoftpd-xfer

DESCRIPTION

twoftpd-xfer reads FTP request from the network and executes file transfers based on those requests. Before doing anything, twoftpd-xfer changes directory to the authenticated user's home directory, changes the root directory to that directory, and drops all root priviledges.

ENVIRONMENT

If set (typically by twoftpd-auth after successfully completing authentication), the startup banner will use code 230, indicating that authentication was successful. Otherwise, the startup banner will use code 220, which is the normal initial connection banner.
If set, the contents of this variable will be sent as extra responses when the server starts.
If set, change the root directory to the user's home directory through the OS chroot syscall.
The maximum number of seconds to wait for a data channel connection to complete. If not set, it defaults to the value of $TIMEOUT.
Numerical group ID number to change to at program startup.
Optional comma-seperated list of numerical group IDs to set up as the supplementary group IDs.
Group name to use in long listings for files owned by $GID. If not set, defaults to mygroup.
Directory to switch to on program startup.
If set (and neither CHROOT nor SOFTCHROOT are set), all accesses to files and paths outside of HOME will be forbidden.
If set, all requests from the client will be logged.
If set, all responses to the client (after login) will be logged.
If set, the contents this file will be automatically sent as extra responses to the client whenever the server enters a directory (including at startup).
If set, all listings will exclude all files starting with a period, and it will not be possible to do any file access (including storing or retrieving) to any file starting with a period. This may be useful for anonymous FTP servers.
The maximum number of seconds to allow a single session to last.
If set, and CHROOT is not set, the server emulates the effect of a chroot without actually effecting a chroot. This eliminates the system-enforced barrier provided by the chroot, but allows for things like symlinks outside of the home directory.
The IP to use when creating PASV connections. Normally, this is set by tcpserver.
The source IP to use when creating PORT connections. Normally, this is set by tcpserver.
The maximum number of seconds to wait for command input or connections.
Numerical user ID number to change to at program startup.
Owner name to use in long listings for files owned by $UID.

NOTES

You will need to set the umask to an appropriate value before running this program.

The twoftpd-anon program functions identically to this program, with the exception of having no file modification capabilities. The twoftpd-drop program is a similarly restricted program, that can only create new files (no overwriting, modifying, or listing existing files).