Visual Studio更改所编辑文件的所有权

问题描述:

您好我在Ubuntu服务器(16.04)上使用Samba共享Odoo 10。Visual Studio更改所编辑文件的所有权

我的Windows桌面上使用微软的Visual Studio的社区2017年(15.4.0)....

...当我打开文件夹 - 编辑文件 - 保存 - 该文件的所有权发生变化

如 - 编辑

-rwxrwx--- 1 odoo cameron 2 Oct 19 09:05 testfile 

之前VS编辑后

-rwxrwx---+ 1 cameron cameron 2 Oct 19 09:06 testfile 

还要注意此外,ACL(访问控制列表)的 - 不,我明白这一点:(

令我不必编辑权限,每个编辑:(

Samba共享是..

[odoo] 
comment = Odoo 
path = /opt 
valid user = cameron 
guest ok = no 
browseable = yes 
read only = no 
create mask = 2770 
directory mask = 2770 

任何方向非常感谢

卡梅隆

好样的解决它。我不明白所有的解决方案,但它真的有效!

由于怀疑这是桑巴配置文件(smb.conf文件)

改变了份额以下设置。 (我是多人组的成员)

[odoo] 
comment = Odoo 
path = /opt 
valid user = @multzer 
guest ok = no 
browseable = yes 
read only = no 
create mask = 770 
force create mode = 770 
security mask = 770 
force security mode = 770 
directory mask = 2770 
force directory mask = 2770 
directory security mask = 2770 
force directory security mask = 2770 
force user = odoo 
force group = multzer 

似乎有很多的FORCING!