E
E
Erix Rolex2018-03-06 15:19:16
SSH
Erix Rolex, 2018-03-06 15:19:16

How to give the user www-data permission to write to the X folder and the folders created in it in the future?

Let's assume that there is a folder X with sites.
If we use chmod 777 -RX
Then we will give permissions only for existing folders and files, and if another user creates a folder there in the future, then the www-data user will not be able to write files to it.
And you will have to do chmod 777 -RX again
How to give the www-data user all rights to internal folders and files that will be created in the future by another user?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2018-03-06
@ky0

A common question.
https://unix.stackexchange.com/questions/12842/mak...

F
fdroid, 2018-03-06
@fdroid

ACL

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question