17488 Posts in 4473 Topics by 1978 members
|Go to End|
12 August 2008 at 12:53pm
I know this is already a widely discussed topic. However, I would just like to find the best solution for it:
The 'assets' folder usually requires write permissions of the web server (e.g. the 'apache' or 'wwwrun' user). It's no problem to set that up. But what is the best setting to both upload files via FTP (e.g. as a user called 'webadmin') AND upload files using the CMS (as the 'apache' user) without changing the permissions of the 'assets' folder?
Currently my asstes folder settings are
drwxr-xr-x 5 apache apache 1024 Aug 8 12:40 assets (755)
With these permissions I can upload with the CMS only.
When I change this to
drwxrwxr-x 5 webadmin apache 1024 Aug 8 12:40 assets (775)
the upload works in both ways. I am not a file permission expert. Is the setting above a security risk?
An installation on another server for some reason works with a chmod 755, but I don't know why:
drwxr-xr-x 5 webadmin psacln 1024 Aug 6 14:12 assets
'psacln' I think is some user for the Plesk control panel. I never changed the file permissions on this server, not even for the Silverstripe installation, and everything works perfectly.
In brief: What is the best chmod/chown/chgrp setting for the assets folder to enable both FTP and web interface uploads?
|Go to Top|