• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Folder rights via ACL (Apache)

Avast

👽 Chevereto Freak
Hey guys,

some of you are using Apache for delivering data.

Sometimes it's important to restrict the folder-rights for the user www-data (Apache), but Chevereto 3.x requires rwx (read, write, execute) for /images and /content.

Now you could just make www-data the owner of these folders or set chmod to 777....


But i want to show you a different way of granting rights to Apache with ACL.

First of all you have to install acl on your server.


After it, we set an ACL for /images and /content.

Code:
setfacl -R -m u:www-data:rwx PATH/TO/IMAGES
setfacl -R -m u:www-data:rwx PATH/TO/CONTENT

That's it, www-data is now allowed to read, write and execute files in these folders and their subfolders.


If you want to check your ACL, just type:
Code:
getfacl /PATH/TO/FOLDER/WITH/ACL



Hope it'll help you.
 
Back
Top