---
name: "twoftpd-switch"
section: "1"
platform: "linux"
package: "twoftpd"
version: "1.42-1.2"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/twoftpd-switch"
---

# twoftpd-switch(1)

TwoFTPD back-end switcher.

## NAME

twoftpd-switch - TwoFTPD back-end switcher.

## SYNOPSIS

**twoftpd-switch**

## DESCRIPTION

**twoftpd-switch** examines the value of **$SHELL** to determine which back-end to execute.  If **$SHELL\_WRITEONLY** is set and matches the value of **$SHELL**, **twoftpd-drop** is executed.  If **$SHELL\_READONLY** is set and matches the value of **$SHELL**, **twoftpd-anon** is executed.  Otherwise, **twoftpd-xfer** is executed.

## NOTES

**twoftpd-switch** prefixes the commands with the path in which the programs were installed.

## SEE ALSO

[twoftpd-xfer(1)](/twoftpd-xfer/1.md)
