How to change permission of vmware's shared folder

Jang picture Jang · Jun 17, 2016 · Viewed 11.1k times · Source

I'm using ubuntu 16.04 on vmware player. The shared folder is enabled and is visible on /mnt/fghs. But, the owner(root) can't be changed by chown. How to change it? Please, advice me.

Additionally, some person said the owner could be changed after modifying /etc/fstab. But, I couldn't find any information in /etc/fstab like .host :/ /mnt/hgfs vmhgfs defaults 0 0. When I add the line into /etc/fstab file, wmware can't be start up.

Answer

gilsoriano picture gilsoriano · Dec 23, 2016

probably a little bit late, but anyway.

Firstly, unmount your shared folder:

sudo umount /mnt/hgfs

then run:

vmhgfs-fuse .host:/ /mnt/hgfs -o uid=1000 -o gid=1000 -o umask=0033

where you should consider change uid and gid to yours. Remember that:

id -u
id -g

will return your current user and group ID.

Take a look to vmhgfs-fuse --help for more options ;)