Linux下Apache设置上传文件时候的默认权限(umask) (转)

 

LinuxApache设置上传文件时候的默认权限(umask) linux

 

方法一:apache

 

Apache/Php umask determines the permissions for the newly created files. On a VPS / Dedicated server you can change the umask to suit your specific needs by editing:网站

 

 

/usr/local/apache/bin/envvarsui

There you should add:spa

umask 022rest

Right after that restart Apache and Apache/Php's default umask will become 22.server

 

 

 

方法二:htm

 

For CentOS and other Red Hat distros, add the umask setting to /etc/sysconfig/httpd and restart apache.ci

 

[root ~]$ echo "umask 002" >> /etc/sysconfig/httpdit

 

[root ~]$ service httpd restart

 

 

 

本篇文章来源于 Linux公社网站(www.linuxidc.com)  原文连接:http://www.linuxidc.com/Linux/2011-01/31393.htm

相关文章
相关标签/搜索