I'm trying to use a shared folder from the host Windows machine as the root directory for lighttpd on the guest Ubuntu virtual machine. When I attempt to change the permissions, nothing happens. The permissions always remain the same (as shown below). lighttpd always returns a 403 error no matter the file type. How can I change the file permissions?
Research suggests adding my user to the vboxsf user group will allow me to change the permissions. When I attempt to add my user to the group using
usermod, it seems to have worked but the changed are immediately overridden and rolled back. Other sources suggest I have to manually mount the disk with permissions I want. Despite my attempts at changing the owner, root still remains owner. This is despite my earlier explanation of attempting to use
usermod to change the owner. Checking the group settings in the /etc/group file, I see my username is listed. However, virtualbox may be interferring.
As an alternative, I'm considering doing a network share from the guest to the host.
/media/sf_Space.io$ ls -l total 10 drwxrwx--- 1 root vboxsf 0 May 12 11:57 css -rwxrwx--- 1 root vboxsf 8 May 12 12:27 index.html drwxrwx--- 1 root vboxsf 0 May 12 11:57 js drwxrwx--- 1 root vboxsf 0 May 12 11:57 PythonCGITest -rwxrwx--- 1 root vboxsf 1181 May 12 11:57 README.md drwxrwx--- 1 root vboxsf 0 May 12 11:57 sprites -rwxrwx--- 1 root vboxsf 587 May 12 11:57 test.html drwxrwx--- 1 root vboxsf 4096 May 12 11:57 'welcome page (sketch)'