Skip to content

Guest FTP

Brett Petch edited this page Jan 3, 2022 · 2 revisions

We have build together a script that will allow you to easily setup FTP Access for your guest users. Bandwidth to this FTP client will be counted against your bandwidth quota.

Installation

You can install this application by doing the following steps. It will create a systemd, and can be controlled via systemctl. The script will output the port number at the end of installation.

curl -sL "https://github.com/brettpetch/hosted-scripts/raw/master/guestftp.sh" -o ~/guestftp.sh
chmod +x ~/guestftp.sh
~/guestftp.sh username password pathtofiles

Controlling the Systemd Service

systemctl (start|stop|restart|reload|enable|disable) --user guest-ftp

Troubleshooting

For application specific issues, consider running the following to check the systemd status.

systemctl status --user guest-ftp

Viewing logs

If it's something to do with the FTP connection itself, you can view a log of all FTP connections at

less -r +G ~/.config/guest-ftp/ftpserver.log

You can exit less by pressing q at any point.

Clone this wiki locally