Answer the question
In order to leave comments, you need to log in
How to set permissions on a directory so that files are created with the owner's group?
There is an installed Apache running from www-data . The /var/www directory has two directories:
drwsrwsr-x user_1:user_1 ./dir1
drwsrwsr-x user_2:user_2 ./dir2
www-data:www-data /var/www/dir_1/cms-file-test # Почему группа www-data а не user_1?
root# > /var/www/dir_1/root-test
root:user_1 /var/www/dir_1/root-test # Группа user_1 как надо
user_2$ > /var/www/dir_1/user_2-test # Доступ запрещён, всё как надо
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question