I'm in a recent incursion to PHP development under Linux environment so I'll ask to take it easy with commands or general guidelines.
Because of some reason I can't explain I can't install any distro in my computer, be it dual boot or after a full format so I'm using VMWare Player for that. I created the VM, installed the OS (Linux Mint 17 64bits) and after setting up the basic environment for PHP development I ran into an issue with permissions of the Shared Folder I configured, a secondary partition in my physical hard drive where I keep separate all my stuff (pictures, movies and development files) while in Windows environment.
I do understand at least the basics of Linux permissions but I couldn't understand why I couldn't edit any file of this partition, located in /mnt/hgfs/<PartitionName>/<somefolder>. I know there is a command I could run to change the permissions, owner and group but unless I'm wrong I think this is stupidity, I mean, repeat such procedure over and over again for every file I wish to create.
Anyway... After a lot of researching I've found this old blog post and, although a little confusing to me (and not very polite with VMWare products I dare to say), I managed to "fix" this permissions issue by editing the /etc/vmware-tools/services.sh file and changing one line accordingly to Rob Kreisel's comment in the same page.
After reboot, if I check the file properties, I can see that the files in the Shared Folder belong to root and have full access, read and write. However, seems I can't reflect such permissions in the editor I want to use, in this case, Sublime Text 3. Every time I change the contents of any file and try to save I receive two errors referring to permission denied. I can't post the exact error messages right now because the following reason.
If I open ANY PHP file with ANY other text editor, like GEdit, even without elevate the permissions, the whole issue is fixed and all files subsequently opened in Sublime produce no error.
I know this might sound a Sublime issue, but this do not happen to regular files in other Linux folders. It's only with files within the Shared Folder.