Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: iraqiboy90 on February 22, 2022, 03:59:31 PM

Title: /var/lib/nginx wrong permission by default
Post by: iraqiboy90 on February 22, 2022, 03:59:31 PM
Hello

I was having permission issues uploading files to a website, then I tested another website and it had the same problem.
After some searching and testing, I found out that it's because of this folder not having the ownership set as nobody:root since nginx uses the user called "nobody"

The /var/lib/nginx folder had permission nginx:root <-- Not ok
All subfolders had nobody:root <-- ok

I checked my test server and it had the same values.

I did this:
Code: [Select]
chown nobody -R /var/lib/nginx/ and then restarted nginx and then uploads works fine again.

At what point does the ownership of /var/lib/nginx/ change?

If you are running nginx->varninsh->apache->php setup, can you please post here the value of
Code: [Select]
ls -all /var/lib/nginx/