Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » file permissions for assets folder (chmod, chown, chgrp)

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1982 Views
  • Anatol
    Avatar
    126 Posts

    file permissions for assets folder (chmod, chown, chgrp) Link to this post

    Hi all,

    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?

    Cheers!
    Anatol

    1982 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.