The problem with VMWare shared folders is that you can’t specify the owner/group so the default ends up being root for both. This isn’t ideal, for instance, if we’re sharing web files that need to be owned by Apache in order to be served. Piggybacking off a comment from this post, here’s how to specify the owner/group of a shared folder:
What this does is append /etc/fstab to specify how /mnt/hgfs should be mounted in terms of ownership. uid and gid33 is Apache’s www-data user on Debian-based distrobutions. /mnt/hgfs is then re-mounted with new ownership.
Python 2’s glob by itself is limited in its pattern matching capability but when combined with regex it becomes more useful. Surprisingly, I couldn’t find anything concise and practical for selecting files with certain extensions in a case-insensitive manner so I wrote this: