You can install ProFTPD package. Then create user with home directory that you want, in your example AwesomeWebsite/storage/Sam Broadcaster and in /etc/proftpd.conf write
DefaultRoot ~
I think it should work.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I use Sam Broadcaster to play radio over my website. This software can tell my website which title is currently playing. After each song, it uploads automatically a JSON (or XML or whatever format you want) containing current playing title and history, and some other info (you can add your own). I use PHP (a webservice pulled by ajax) to read and parse the file. Yeah, it's a great software.
Anyway, it can only upload via FTP. And yes, I really need this feature.
Is there a way to allow FTP for a custom directory only?
- AwesomeWebsite
- app
- ...
- storage
- app
- Sam Broadcaster
I want to enable FTP for the directory AwesomeWebsite/storage/Sam Broadcaster ONLY.
What do I mean? I just want Sam Broadcaster to upload the file there and that's all. No commands (like cd or such thing) allowed.
Can anyone help me? Thanks.
I solved my problem.
This tutorial really helped me http://www.ostechnix.com/install-vsftpd-server-ubuntu-16-04-lts/
The trick was to run
sudo ufw allow ftp
Please or to participate in this conversation.