Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Swaz's avatar
Level 20

Create FTP user and limit access to specific sites

I'm looking to create an FTP user for my server, but I only want them to have access to specific sites. My server has around 10 sites on it. Can anyone point me in the right direction or provide some simple steps for this? I've tried searching online, but every guide is different and not really specific to my use case.

0 likes
6 replies
Swaz's avatar
Level 20

Thanks for the reply, however I have no problem accessing my Forge server with FTP. What I'm trying to do is create an additional FTP user, somehow through the terminal, and limit them to specific directories.

Swaz's avatar
Level 20

Wow thanks! That really helped a lot. I was able to create a user, gain ftp access, and limit them to their home folder.

I'm now wondering if its even possible to do what I'm considering.

My sites were created through forge so they sit in the /home/forge directory on the server. My new user is currently limited to /home/john directory.

I'd like to give "john" access to only specific sites within the forge directory.

/home/forge/site1

/home/forge/site2

/home/forge/site3

I just tried created a symbolic link from /home/forge/site1 to /home/john/site1, but that did not work, I think for obvious reasons.

jlrdw's avatar

Probably mark this one as answered and start a new topic for that.

Please or to participate in this conversation.