VMware HGFS permissions

I’ve had a really annoying issue with a linux (Centos) VMWare image in Fusion on Mac OSX, where the permissions on files created by the VM on the HGFS shared folder meant that it couldn’t write to those files (or directories) subsequently. The way to solve this is to set the uid in /etc/fstab on the host. For example, to set the user to match apache (which I needed in this case) I added ‘uid=48′ to the comma separated options at the end:

.host:/                 /mnt/hgfs               vmhgfs  defaults,ttl=5,uid=48     0 0

I don’t know why this didn’t occur to me before, but after a umount /mnt/hgfs; mount /mnt/hgfs it worked perfectly!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>