How to change permission of vmware's shared folder
Solution 1
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 ;)
Solution 2
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
Jang
Updated on June 27, 2022Comments
-
Jang almost 2 years
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.
-
etech over 7 years
vmhgfs-fuse .host:/vmware-share-folder-name /myMountLocation -o uid=1000 -o gid=1000
worked for me. Without umask, it just sets everything to 777 it seems. -
Alex over 4 yearsas mentioned by @etech - parameter umask=0033 defines access-permissions (in octal mode), mask specifies what is not permitted.