open-vm-tools icon indicating copy to clipboard operation
open-vm-tools copied to clipboard

Enhancement: add dmask and fmask support to vmhgfs-fuse

Open jmooring opened this issue 4 years ago • 9 comments

Host: Windows 10 Guest: Ubuntu 20.04

I would like directories to have permissions 711, and files to have permissions 600. This is not possible using the umask option.

My current /etc/fstab (not what I want):

.host:/Shared  /home/jmooring/Shared  fuse.vmhgfs-fuse  allow_other,uid=1000,gid=1000,umask=177  0  0

What I would like:

.host:/Shared  /home/jmooring/Shared  fuse.vmhgfs-fuse  allow_other,uid=1000,gid=1000,dmask=066,fmask=177  0  0

Related: https://github.com/vmware/open-vm-tools/issues/223

jmooring avatar Jan 10 '21 17:01 jmooring

Hello

Thanks for reporting. In the past I had looked into adding support for these options but other items took priority before I could do the work. I will file a bug with a link to this thread so the current engineers can respond here as well with any updates.

Thanks Steve

steve-goddard-brcm avatar Jan 11 '21 16:01 steve-goddard-brcm

Is there any link to that filed bug? Not having dmask/fmask is a major regession compared to the old kernel-vmhgfs as it forces you to either have all files marked as executable or have non-executable directories with all kinds of problems.

lje avatar Jul 31 '21 09:07 lje

What is the status of this issue? Arrived here trying to figure out the same issue as exposed by original poster.

LuisRojas-LetsWarp avatar Dec 13 '21 09:12 LuisRojas-LetsWarp

Sorry, this is still in the pending queue. I will try and get the PR priority raised and see if we can this done soon.

steve-goddard-brcm avatar Jan 04 '22 18:01 steve-goddard-brcm

FYI: VirtualBox allows mounts with fmask and dmask (see http://manpages.ubuntu.com/manpages/trusty/man8/mount.vboxsf.8.html) as does WSL (see https://docs.microsoft.com/en-us/windows/wsl/wsl-config#automount-options).

kuta42 avatar Jun 01 '22 00:06 kuta42

A year passed since I asked, so I'll ask again. Is there any progress on this issue? @lousybrit please link the PR.

lje avatar Aug 04 '22 14:08 lje

+1

warej avatar Jun 30 '23 06:06 warej

The feature request is still in progress. The initial work was under going testing with Linux releases based on Fuse 2. With more and more Linux releases movng to Fuse 3, the feature changes need to be revised and retested.

VMware internal PRs are not accessible by the public.

johnwvmw avatar Jul 03 '23 18:07 johnwvmw

More than another year passed. Is there any progress?

lje avatar Oct 10 '23 09:10 lje