2010-07-30 44 views
2

我有一堆SVN託管文件,權限爲664.這些文件不一定由我擁有,但它們在我的主要組中。 (我只能寫信給他們,因爲他們在我的組)。當我「svn更新」該文件夾時,它將所有已更改文件的所有者更改爲我(好,誰在乎),並刪除文件的組寫權限,將權限保留爲644,而不是664.什麼是交易?爲什麼SVN會破壞我的權限設置?

我知道有一個屬性,我可以設想說:「嘿,確保這個文件是可執行的,當你檢查出/導出它」,但不,我只想讓該死的東西退出比爾我的權限時我svn更新現有的文件。

這是svn的正常行爲嗎?我可以配置它以「原樣」保留我的權限嗎?

回答

1

嘗試的umask:

umask 002 

從umask的(2):

 
    The umask() routine sets the process's file mode creation mask to numask 
    and returns the previous value of the mask. The 9 low-order access per- 
    mission bits of numask are used by system calls, including open(2), 
    mkdir(2), mkfifo(2) and mknod(2) to turn off corresponding bits requested 
    in file mode. (See chmod(2)). This clearing allows each user to 
    restrict the default access to his files. 
相關問題