Permission denied (www dir)

Hi,

I’m trying to sync /www/wwwroot/site.com dir which is a dir which hosts a website via aaPanel.

The issue is that Syncthing gets “permission denied” since the chowner of that dir is “www” user, used by web services.

I cannot of course chown root the dir, as this will be a security issue for the website.

How can I solve this?

Thanks Alex

You can run Syncthing as the www user, or you can run it with elevated privileges and enable ownership syncing.

Thank you for the information. How do I run Syncthing as www user?

Alex

Would “sudo -u www syncthing” work for you?