简体   繁体   English

Web应用程序在centos中的x和r许可

[英]x and r permission of web application in centos

question2:as to the filefolders, wordpress know their structure. 问题2:对于文件文件夹,wordpress知道它们的结构。 so, we need not set r permission to any filefolder? 因此,我们不需要为任何文件文件夹设置r权限吗?

Its been a while since I have had anything to do with wordpress but since your a nice girl I will try to help you out: 自从我与wordpress有任何关系以来,已经有一段时间了,但是由于您是个好女孩,我会尽力帮助您:

  1. generally Execute is required for executing scripts such as php or perl, to review your wordpress permissions have a look at 通常,执行是执行php或perl之类的脚本所必需的,以查看您的wordpress权限。

Wordpress Linux file permissions and group Wordpress Linux文件权限和组

this has a tidy shell script to define correct permissions. 它有一个简洁的shell脚本来定义正确的权限。

  1. generally everything WWW has to have read permission otherwise its not readable. 通常,WWW的所有内容都必须具有读取权限,否则将无法读取。

  2. Again apache should be fine since the underlying process running the virtual site for a user should be apache - unless you are running some form of strange apache config where the apache user becomes real user for a virtual host (never seen nothing like it - unless we are talking IBM http server or something). 再次说apache应该很好,因为为用户运行虚拟站点的基础进程应该是apache-除非您正在运行某种形式的奇怪的apache config,在该配置中apache用户成为虚拟主机的真实用户(从来没有看到过类似的东西-除非我们在谈论IBM http服务器之类的东西。 So by giving apache user the correct permisions should work. 因此,通过为apache用户提供正确的权限即可。

    suppose i am a website viewer,how can i write a file in those folder with file owner is nobody? 假设我是网站查看者,我该如何在文件所有者为没人的那些文件夹中写入文件?

This would be actually apache user, me visiting your site hitting your page would trigger apache to server that page and the unerlying user serving that page would be that apache user if it happens to be nobody:nogroup then thats who needs the relevant permissions to write to the folder. 这实际上是apache用户,如果我访问您的网站并访问您的页面,则会触发apache服务器到该页面,而服务该页面的下层用户将是该apache用户(如果碰巧是没人):nogroup,那么那是需要相关权限才能写的到文件夹。

so if you have /var/www/html and it is owned by root and your apache process is running as nobody then nobody can not write into root owned folder. 因此,如果您拥有/ var / www / html并且它是root拥有的,并且您的apache进程以无人运行,则没有人无法写入root拥有的文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM