Answer the question
In order to leave comments, you need to log in
How to stop doing chmod and start living?
Hello.
I have such a problem. There is a folder on the server where the application (PHP, Laravel) writes logs.
One day - one file of the runtime.DD.MM.YYY.log
.
And every day I have to chmod write permissions to this folder, because file not opened: permission denied.
I already set the owner of the folder, nginx:nginx
but the problem has not disappeared.
I will be grateful for your advice.
Answer the question
In order to leave comments, you need to log in
Try using the umask command, with its help you can set a mask with rights to newly created files and directories.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question