Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is www-data user the same as apache user on Centos system

I'm using Centos system. I see the directories/files owned by www-data user. I'd expect them to be owned by apache process.

Does www-data translate as apache for ownership?

like image 733
cea Avatar asked Oct 21 '22 23:10

cea


1 Answers

Excerpt from :http://www.linuxquestions.org/questions/linux-newbie-8/is-www-data-some-sort-of-generic-user-933894/

On many (not all) distributions, www-data is the user under which the Apache web server runs. This also means that everything done by Apache (especially including PHP scripts) will be done with the permissions of user www-data (and also group www-data) by default.

like image 179
Karina Avatar answered Oct 27 '22 17:10

Karina