Vmware shared folder not showing in Ubuntu

Describe the bug

TL;DR I don't appear to have write access to the root of a shared folder, only to files and subfolders in the shared folder.
I don't know if this is expected behaviour?

VMware Worksation 16 Pro, Win10 host, Ubuntu 22.04 LTS guest.
Installed versions of open-vm-tools/-desktop:

open-vm-tools-desktop/jammy,now 2:11.3.5-1ubuntu4 amd64 [installed]
open-vm-tools/jammy,now 2:11.3.5-1ubuntu4 amd64 [installed]

Shared folders automounted by fstab entry:

.host:/ /mnt/hgfs fuse.vmhgfs-fuse auto,allow_other 0 0

If I open a shared folder in Files, then in the root of the shared folder I can't carry out operations such as Delete, New Folder, Cut, Move to, Rename. All operations work within subfolders.

Looking at the permissions in the terminal, write access is not given to the shared folder (Z in this case), but files/folders within the shared folder are 777:

moo@moo-virtual-machine:/mnt/hgfs$ ls -al
total 29
dr-xr-xr-x 1 root root  4192 Jul 13  2022 .
drwxr-xr-x 3 root root  4096 Jul 13 10:53 ..
dr-xr-xr-x 1 root root 20480 Jul 13 11:26 Z

moo@moo-virtual-machine:/mnt/hgfs/Z$ ls -al
ls: cannot access 'System Volume Information': Permission denied
total 1148
dr-xr-xr-x 1 root root      0 Jun  4 17:17 '$RECYCLE.BIN'
drwxrwxrwx 1 root root      0 Jul 13 11:38  apps
drwxrwxrwx 1 root root 303104 Jun  7 13:40  iplayer
drwxrwxrwx 1 root root   4096 Jul 13 11:37  media
drwxrwxrwx 1 root root      0 Jun 23 14:47  sab
drwxrwxrwx 1 root root   4096 Jul 13 11:38  switch
d????????? ? ?    ?         ?            ? 'System Volume Information'
-rwxrwxrwx 1 root root 863437 Jun 24 13:16  unencrypted.pdf

Reproduction steps

  1. Make a Ubuntu 22.04 LTS VM in VMware Workstation 16 Pro.
  2. Mount your shared folders.
  3. Using Files, try and create a new folder, or delete a file, in the root of a shared folder.

Expected behavior

Full permissions in the shared folder.

Additional context

No response

Hi,

I already add shared folders to vm(ubuntu 18.04.4), and it works.
But the shared folder disappear after I reboot vm.

My settings:
Win10 1909
vmware workstation 15 pro 15.5.6
settings - options - Shared Folders - Always enabled

lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.4 LTS
Release:	18.04
Codename:	bionic

sudo apt show open-vm-tools-desktop 
[sudo] password for ubuntu: 
Package: open-vm-tools-desktop
Version: 2:11.0.5-4ubuntu0.18.04.1
Priority: extra
Section: universe/admin
Source: open-vm-tools
Origin: Ubuntu
Maintainer: Ubuntu Developers <>
Original-Maintainer: Bernd Zeimetz <>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 509 kB
Depends: libatkmm-1.6-1v5 (>= 2.24.0), libc6 (>= 2.14), libcairomm-1.0-1v5 (>= 1.12.0), libdrm2 (>= 2.4.3), libgcc1 (>= 1:3.0), libglib2.0-0 (>= 2.16.0), libglibmm-2.4-1v5 (>= 2.54.0), libgtk-3-0 (>= 3.9.10), libgtkmm-3.0-1v5 (>= 3.22.0), libice6 (>= 1:1.0.0), libsigc++-2.0-0v5 (>= 2.8.0), libsm6, libstdc++6 (>= 5.2), libudev1 (>= 183), libx11-6 (>= 2:1.4.99.1), libxext6, libxi6, libxinerama1, libxrandr2 (>= 2:1.2.0), libxtst6, open-vm-tools (= 2:11.0.5-4ubuntu0.18.04.1), fuse, kmod
Recommends: xauth, xserver-xorg-input-vmmouse, xserver-xorg-video-vmware
Suggests: xdg-utils
Breaks: open-vm-tools (<< 2:10.3.5-2~)
Replaces: open-vm-tools (<< 2:10.3.5-2~)
Homepage: https://github.com/vmware/open-vm-tools
Modaliases: vmwgfx(pci:v000015ADd00000405sv*sd*bc*sc*i*)
Download-Size: 137 kB
APT-Manual-Installed: yes
APT-Sources: http://tw.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
Description: Open VMware Tools for virtual machines hosted on VMware (GUI)
 The Open Virtual Machine Tools (open-vm-tools) project is an open source
 implementation of VMware Tools. It is a suite of virtualization utilities and
 drivers to improve the functionality, user experience and administration of
 VMware virtual machines.
 .
 This package contains the user-space programs and libraries that are essential
 for improved user experience of VMware virtual machines.


I would appreciate your help.

Problem:

I have shared an directory from windows host to ubuntu which is running on vmware workstation 15. But shared directory is not visible to mount path /mnt/hgfs.

Vmware shared folder not showing in Ubuntu

Solution:

I can see the share directory in listed by running command vmware-hgfsclient *

So directory is shared but not mounted. Run below command to get it mounted to /mnt/hgfs

sudo /usr/bin/vmhgfs-fuse .host:/ /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other

Reference: https://github.com/vmware/open-vm-tools/issues/199#issuecomment-335525133

Post navigation

How to find shared folder in Ubuntu VMware?

Here are steps:.
Ensure configured shared folder in VMWare Player..
Install open-vm0dkms: sudo apt-get install open-vm-dkms..
Hit the "Enter" all the way to allow default value..
Mount Windows shared folder to Ubuntu VM: sudo mount -t vmhgfs .host:/ /mnt/hgfs..
check if mounting is successful df -kh..

Where is my shared folder in VMware?

View Shared Folders in a Windows Guest by Mapping Them as a Drive.
Start Windows Explorer..
Navigate to My Computer or Computer..
Run the command to map a network drive. Option. Description. ... .
Select a drive to map..
In the Folder field, type \\vmware-host\Shared Folders\ ..
Click Finish..

How to install VM tools in Ubuntu?

To install VMware Tools in Ubuntu follow the steps below:.
Open a Terminal window. ... .
In the Terminal, run this command to navigate to the vmware-tools-distrib folder: ... .
Run this command to install VMware Tools: ... .
Enter your Ubuntu password..
Restart the Ubuntu virtual machine after the VMware Tools installation completes..