当前位置: 技术问答>linux和unix
daemon用户权限设置问题
来源: 互联网 发布时间:2017-05-16
本文导语: 想给apache运行时设置文件写权限,运行了下面几条命 chown -R daemon:daemon /xx/xx/xx find -type d -exec chmod 750 {} ; find -not -type d -exec chmod 640 {} ; 结果访问网站时报 Forbidden You don't have permission to access / on ...
想给apache运行时设置文件写权限,运行了下面几条命
chown -R daemon:daemon /xx/xx/xx
find -type d -exec chmod 750 {} ;
find -not -type d -exec chmod 640 {} ;
结果访问网站时报
Forbidden
You don't have permission to access / on this server.
运行
/usr/local/web/apache/bin/apachectl stop
报
-bash: /usr/local/web/apache/bin/apachectl: Permission denied
现在要怎么办啊?
chown -R daemon:daemon /xx/xx/xx
find -type d -exec chmod 750 {} ;
find -not -type d -exec chmod 640 {} ;
结果访问网站时报
Forbidden
You don't have permission to access / on this server.
运行
/usr/local/web/apache/bin/apachectl stop
报
-bash: /usr/local/web/apache/bin/apachectl: Permission denied
现在要怎么办啊?
|
apache用户是daemon么?
SELinux关了没? setenforce 0
SELinux关了没? setenforce 0
|
把权限设置成777试试