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

stuartcusack's avatar

Granting access to forge site folder to additional sFTP user

I followed this guide to create a new sFTP user with password login:

https://murze.be/let-your-clients-use-sftp-on-a-forge-provisioned-server

I'm just wondering how would I go about giving my new user 'bob' full sFTP access to a forge site folder, for example '/home/forge/mysite/' without affecting the default forge user.

I tried chrooting bob to the folder: sudo chown root:bob /home/forge/site1/

This didn't work and it's probably not a good idea either. Error message: "Network error: Software caused connection abort"

So I reverted bob to his own home folder sudo chown root:bob /home/bob/

So how would I go about giving bob full ftp access to the '/home/forge/site1/'?

Thank you.

0 likes
4 replies
ejdelmonico's avatar
Level 53

Well you definitely don't want to run chown because forge needs to be the owner. You can however add bob to the group and give him adequate privileges. If you change owner to bob, you will have to change everything to bob or you will get many errors.

stuartcusack's avatar

Thank you. I thought groups might be the way to go alright.

Any thoughts on what would happen if I simply added bob to the forge group? Wouldn't this mean that bob would have access to everything that forge has access to?

Ideally I'd like to limit bob to one specific site folder.

ejdelmonico's avatar

Yes, that is the way groups are usually used but I have never tried to add a user to the forge group and I don't know for sure how the permissions were setup during provisioning. I just know that instead of a www or www-data user for nginx, php, node ,etc...forge user takes over those privileges. A forge user for the DB is created as well and I know you can add more in the UI if you don't feel comfortable doing it in the terminal.

1 like
stuartcusack's avatar

In retrospect what I was trying to achieve is probably not a good idea with the forge configuration, but thanks for the advice!

Please or to participate in this conversation.