doupinwan0563 2013-07-15 15:53
浏览 120
已采纳

在Ubuntu / Linux上正确授予所有权/权利

I'm currently facing alot of issues with giving rights/ownership on Zend Server. I always do a

chown user -R path/to/file

and

giving 777 to fodlers and file then end up with lots of 777... with some not needing that 777, If there is a user to zend server, i hope i could just give it ownership to everything .... so i dont have to 777 so many stuff

So far giving rights/ownership is fixing and CREATING issues with zend servers ...which is why i 'm here :(

I'm also having issue debugging, when an error occurs i'm not sure how to check what caused it. I do read forums people doing a -debug behing their command. Sometimes i'm also not sure which file to give permission to. I realise my zend server is a User itself i believe...

any advice or guide would be greatly appreciated.

I have these as users

zend:x:106:112::/usr/local/zend/gui/lighttpd/:/bin/false
root:x:0:0:root:/root:/bin/bash

and many others. I think daemon and zend is related to zend server.

  • 写回答

2条回答 默认 最新

  • dongqiao6730 2013-07-15 16:06
    关注

    Just a note when giving permission for web server.

    Permissions are simple. You just have to remember there is read write and execute permission in *nix. You won't need the execute permission in any of the script files but all folders must have execute permission. That leaves you with the read and write permissions. You will need read permission for all the files and folders. You will only need write permission only to the folders and files which need to be changed by the web server. Basically you will need read write and execute permissions for temp folder, and if you are using file upload then the folder where you store the files. You may need to have write permission only to files which needs to be changed by the web server (for simple sites these may not be there).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?