Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change permission of vmware's shared folder

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.

like image 213
Jang Avatar asked Oct 22 '25 05:10

Jang


2 Answers

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 ;)

like image 88
gilsoriano Avatar answered Oct 27 '25 01:10

gilsoriano


Resolved. Use allow_other option to grant access.

vmhgfs-fuse -o allow_other .host:/ /mnt/hgfs

see unix.stackexchange.com: vmhgfs-fuse-permission-denied-issue

like image 31
Yorkyer Avatar answered Oct 27 '25 03:10

Yorkyer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!