Mount shared folder (vbox) as another user
- by jlcd
I'm trying to mount my vbox shared folder every time my ubuntu starts.
So, I added an entry on /etc/init with this:
description "mount vboxsf Desktop"
start on startup
task
exec mount -t vboxsf Desktop /var/www/shared
Seems to work, except by the fact that all the files are owned by "root", and I don't have permission to write on the folder (neither chmod nor chown seems to be working).
So, how can I make all the files under this shared folder to be owned by www-data user/group?
Thanks
ps.: The main reason for me to have an automatic shared folder, is so I can create/edit files from the HOST on the GUEST www folder.
If you have a better idea for that, instead of sharing the folder, fell free to say.