Good day all,
On centos 6 I installed some CMS. For some specific actions, it looks like "apache" or "nobody" permissions are required. How do you set them up properly ? I get ride of my 0777 but is there some tutorials or best practices to follow ? Should I make use of lsadm ?
Here is my current settings:
My group now looks like (summary from /etc/group):
My main repositories now look like (summary)
The files I'm manipulating inside html (upload, publish, etc... ) become
Thank you for your help / feedback
On centos 6 I installed some CMS. For some specific actions, it looks like "apache" or "nobody" permissions are required. How do you set them up properly ? I get ride of my 0777 but is there some tutorials or best practices to follow ? Should I make use of lsadm ?
Here is my current settings:
My group now looks like (summary from /etc/group):
Code:
wheel:x:10:peter
nobody:x:99:lsadm,peter
peter:x:500:
mysql:x:499:
lsadm:x:498:lsadm
apache:x:501:peter,nobody
Code:
drwxr-xr-x 3 peter apache 4096 2月 15 01:21 2015 cgi-bin
drwxrwxr-x 16 peter apache 4096 2月 18 00:02 2015 html
Code:
-rw-rw-rw- 1 nobody nobody foo.jpg
-rw-rw-rw- 1 nobody nobody hoge.html
-rw-rw-rw- 1 peter apache bar.php