Sharing Folder Question - Windows 7 Host - CentOS 6.3 Guest
Posted: 12. Aug 2012, 18:49
I am running the latest version of VirtualBox on a Windows 7 Pro Host with CentOS 6.3 as the guest. I have installed the Guest Addons and I am able to share a folder between the Host and Guest, but there is a problem.
The files on the shared folder are protected and given a usergroup of vboxsf and I am unable to edit them. Further, I am actually trying to symlink my shared folder to my /opt/lampp/htdocs folder so I can view it as a web page, but the permissions won't allow me to view the files in a web browser.
How can I make the files in my shared folder have Read/Write access across my GuesOS (at least the root account and whatever account is used to see web pages)?
Here is my end goal:
1- Create a virtual linux web server with VirtualBox + CentOS
2- On my Host PC, edit my PHP & HTML files with eclipse in a workspace directory that is shared with my Guest OS
3- Symlink that shared folder to a spot in my /opt/lampp/htdocs folder
4- Be able to view my progress on any computer in my LAN with http://192.168.1.X/MyPage
I have done #1 and #4, partial #2 and #3. I just can't set the permissions right.
Oh, and chmod doesn't do anything. Even tried 777. It doesn't edit the files or folders at all... It stays at 755 (I believe its 755) As an aside, at my work computer where I use VMWare Player, each file has 777 on them. Appreciate any help!
EDIT:
Here is what the ll of the the file looks like:
The files on the shared folder are protected and given a usergroup of vboxsf and I am unable to edit them. Further, I am actually trying to symlink my shared folder to my /opt/lampp/htdocs folder so I can view it as a web page, but the permissions won't allow me to view the files in a web browser.
How can I make the files in my shared folder have Read/Write access across my GuesOS (at least the root account and whatever account is used to see web pages)?
Here is my end goal:
1- Create a virtual linux web server with VirtualBox + CentOS
2- On my Host PC, edit my PHP & HTML files with eclipse in a workspace directory that is shared with my Guest OS
3- Symlink that shared folder to a spot in my /opt/lampp/htdocs folder
4- Be able to view my progress on any computer in my LAN with http://192.168.1.X/MyPage
I have done #1 and #4, partial #2 and #3. I just can't set the permissions right.
Oh, and chmod doesn't do anything. Even tried 777. It doesn't edit the files or folders at all... It stays at 755 (I believe its 755) As an aside, at my work computer where I use VMWare Player, each file has 777 on them. Appreciate any help!
EDIT:
Here is what the ll of the the file looks like:
-rwxrwx---. 1 root vboxsf 9 Aug 12 00:22 index.htmlAnd here is the error I get when trying to view that in the browser:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
192.168.1.107
Mon 13 Aug 2012 07:02:33 PM PDT
Apache/2.2.21 (Unix) DAV/2 mod_ssl/2.2.21 OpenSSL/1.0.0c PHP/5.3.8 mod_apreq2-20090110/2.7.1 mod_perl/2.0.5 Perl/v5.10.1