Permission problems in nginx under linux

logs in to a remote machine with root privileges and creates some static files under / root, something like this:

clipboard.png

nginxnginx.confuserwww-data, root:

clipboard.png

what I am curious about here is that the permissions of my files and folders should be readable to all users ( rLLIX ), nginx users are a little strange, they are www-data , but they should also be readable, so why is there a permission problem?

Mar.10,2021

because www-data does not have the execute permission of / root folder


Brother dei you need to relearn linux. This is because your www-data user group does not have enough privileges. Only the root user group has such high privileges.

Menu