twoftpd-switch(1)

πŸ“¦ version 1.42, in ubuntu jammy

πŸ’– twoftpd-switch β€” the TwoFTPD back-end switcher πŸ’–

ok so real talk bestie, this one lives in the General Commands Manual, section 1, and it's literally the little bouncer at the door of TwoFTPD who decides which back-end gets to come in. no cap. πŸšͺ✨


✨ SYNOPSIS ✨

twoftpd-switch

that's it. that's the whole vibe. no flags, no args, she just knows. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea, and it's actually so simple:

twoftpd-switch looks at the value of $SHELL to figure out which back-end it should run. and then it's giving ✨choices✨:

  • if $SHELL_WRITEONLY is set and it matches the value of $SHELL β†’ she runs twoftpd-drop
  • if $SHELL_READONLY is set and it matches the value of $SHELL β†’ she runs twoftpd-anon
  • otherwise? default behaviour, main character energy β†’ she runs twoftpd-xfer

so basically $SHELL is the vibe check, and $SHELL_WRITEONLY / $SHELL_READONLY are the two besties she's comparing it against. if neither of them matches up, twoftpd-xfer is the fallback and honestly she ate. πŸ“


🌸 NOTES 🌸

before she runs any of these, twoftpd-switch prefixes the commands with the path in which the programs were installed. so she's not just yelling a bare name into the void, she knows exactly where her girls live. πŸ“πŸ«Ά


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, babe. this icon was written up as twoftpd-switch(1) in the General Commands Manual β€” go forth and switch those back-ends responsibly. mwah. πŸ’–πŸŽ€πŸŒˆ

πŸ“¦ where this page comes from