【问题标题】:Nginx configuration permissions and ownership [closed]Nginx 配置权限和所有权
【发布时间】:2017-06-03 19:46:51
【问题描述】:

我的 Nginx.conf 使用 www-data 作为用户。对于单个 Nginx 配置文件(/etc/nginx/conf.d/),我应该如何设置权限和所有权。

root & 744 ?

【问题讨论】:

    标签: php mysql linux apache nginx


    【解决方案1】:

    只要守护进程可以读取权限,Nginx 的权限就无关紧要了,所以root:744 可能是理想的。

    请注意,通常/etc/ 中的所有文件都应以root:root 和通常744 拥有,除非对安全至关重要,以防止用户或被利用的服务进行危险篡改(其中权限应该更加严格,例如@ 987654326@600)。

    【讨论】:

      猜你喜欢
      • 2015-01-20
      • 2017-03-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-02
      • 1970-01-01
      • 2017-03-04
      • 2011-04-13
      相关资源
      最近更新 更多