git clone在不同的服务器上产生不同的权限 [英] git clone produces different permissions on different servers
问题描述
在一台服务器上执行git clone git://github.com/blasto333/PHP-Point-Of-Sale.git时,文件权限为(我正在显示一个文件,但所有文件都这样) :
When doing a git clone git://github.com/blasto333/PHP-Point-Of-Sale.git on one server the files permissions are (I am showing one file but it is like this for all of them):
-rw-r--r-- 1 chrism chrism 3297 Apr 1 19:12 index.php
在第二台服务器上是:
-rw-rw-r-- 1 rrdiaper rrdiaper 3297 Apr 1 19:14 index.php
在第三台服务器上是:
-rw-r--r--@ 1 cmuench cmuench 3297 Sep 17 2010 index.php
第二台服务器在抱怨,因为该文件是组可写的(php suExec).我知道我可以使用chmod -R644进行修复,但是我更愿意理解权限为何不同.
The 2nd server is complaining because the file is group writable (php suExec). I know I can fix it with a chmod -R 644, but I would rather understand why permissions are different.
推荐答案
检查您的umask. http://www.cyberciti.biz/tips/understanding -linux-unix-umask-value-usage.html
Check your umask. http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html
这篇关于git clone在不同的服务器上产生不同的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!