execute bit when editing in Visual Studio / Samba share

I’ve started using Visual Studio 2017 community edition to load up a project stored in a ubuntu 16.04 server running as a hyperV virtual machine. The project files are accessed via a samba share and I find the visual studio sets the execute bit when I edit and save a file even though my /etc/samba/smb.conf has the following settings in the global section:

map archive = no
map system = no
map hidden = no
force create mode = 0660

It wasn’t until I added nt acl support = no that I was able to stop the execute bit getting set editing a file in visual studio.

note : restarting samba on ubuntu 16.04 doesn’t use usual service smbd restart call. Do this : sudo systemctl restart smbd.service nmbd.service


Leave a Reply

Your email address will not be published. Required fields are marked *