2008-11-04

VMware Fusion incorrectly assigns user ids for hgfs shares

Because VMware is aimed at CentOS, by default the hgfs shares are set up to be owned by the user with id 501; you'll need to change this so that it's owned by your user. To do this, first run `id`:

$ id
uid=1000(user) gid=1000(user)

Then edit `/etc/fstab` and change the line:

# Beginning of the block added by the VMware software
.host:/ /mnt/hgfs vmhgfs defaults,ttl=5 0 0
# End of the block added by the VMware software

to

# Beginning of the block added by the VMware software
.host:/ /mnt/hgfs vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0
# End of the block added by the VMware software

Where the values for `uid` and `gid` come from the output of the `id` command as above.

Remount `/mnt/hgfs`:

$ sudo umount /mnt/hgfs
$ sudo mount /mnt/hgfs

Note that you'll have to do this EVERY TIME you upgrade VMware tools.

No comments: