I have a virtualbox VM with arch Linux running on my windows PC (which I unfortunately have to use for work). I use this to work on my windows PC with a Linux environment as an alternative to Cygwin.I have set up a Virtualbox shared folder which shares my C:\ drive with my Linux VM but I seem to be unable to change the file permissions within any of the folders. This is a problem as now git thinks all of my files permissions have changed. ll README.txt-rwxrwx--- 1 root vboxsf 4.5K Oct 28 10:42 README.txt chmod 644 README.txt ll README.txt-rwxrwx--- 1 root vboxsf 4.5K Oct 28 10:42 README.txt sudo chmod 644 README.txt ll README.txt-rwxrwx--- 1 root vboxsf 4.5K Oct 28 10:42 README.txt git diff README.txt | catdiff --git a/README.txt b/README.txtold mode 100644new mode 100755How do I fix this?The folder was mounted using Automount from the VirtualBox Manager on windows.
In a Virtualbox VM how do I set the filesystem permissions?
files;permissions;windows;virtualbox;git
This will not work as it unlikely that your hosts mapped in filesystem (i.e. Windows C: drive, so most likely NTFS) supports the full range of permission bits that Linux git expects.In a similar situation I have exported a Linux directory via Samba and used that from Windows and Linux without problems. This however has the disadvantage that you cannot access the data when the VM is not running.