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

Visual Studio changing ownership of edited file

您好,我在 Ubuntu 服务器 (16.04) 上安装了 Odoo 10,并使用 Samba 共享。

在我的 windows 桌面上使用 MS Visual Studio Community 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

非常感谢任何方向

卡梅隆

很好地解决了它。我不明白所有的解决方案,但它确实有效!

怀疑是 Samba 配置文件 (smb.conf)

将共享更改为以下设置。 (我是multzer组的成员)

[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

似乎有很多强迫!