个人工具

“沙盒”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第1行: 第1行:
为了分享同一目录的多用户写入权限,把该目录的写入权限授予一个分组是必要的。下面的例子把/var/www/html目录的写入权限授予"webmasters"分组。
 
  
<pre>
+
# Apache2 Documentation contains in depth information on Apache2 configuration directives. Also, see the apache2-doc package for the official Apache2 docs.
sudo chgrp -R webmasters /var/www/html
+
# See the Mod SSL Documentation site for more SSL related information.
sudo find /var/www/html -type d -exec chmod g=rwxs "{}" \;
+
# O'Reilly's Apache Cookbook is a good resource for accomplishing specific Apache2 configurations.
sudo find /var/www/html -type f -exec chmod g=rw "{}" \;
+
# For Ubuntu specific Apache2 questions, ask in the #ubuntu-server IRC channel on freenode.net.
</pre>
+
# Usually integrated with PHP and MySQL the Apache MySQL PHP Ubuntu Wiki page is a good resource.
 
+
这些命令递归地设置组权限到/var/www/html下的所有文件和目录,以保证该组用户对该目录的读写权限。也就是说,该目录下的文件和目录将从它们的父亲继承相应的组权限。很多管理员发现这对多用户编辑同一目录树非常有效。
+
 
+
: <span style="background-color: lightgray">如果必须授权一个目录的访问到多个组,允许访问控制列表(ACLs)。</span>
+

2016年6月8日 (三) 14:51的版本

  1. Apache2 Documentation contains in depth information on Apache2 configuration directives. Also, see the apache2-doc package for the official Apache2 docs.
  2. See the Mod SSL Documentation site for more SSL related information.
  3. O'Reilly's Apache Cookbook is a good resource for accomplishing specific Apache2 configurations.
  4. For Ubuntu specific Apache2 questions, ask in the #ubuntu-server IRC channel on freenode.net.
  5. Usually integrated with PHP and MySQL the Apache MySQL PHP Ubuntu Wiki page is a good resource.