Mount shared folder (vbox) as another user

Posted by jlcd on Server Fault See other posts from Server Fault or by jlcd
Published on 2012-05-31T00:53:49Z Indexed on 2012/06/19 3:18 UTC
Read the original article Hit count: 425

Filed under:
|
|

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.

© Server Fault or respective owner

Related posts about ubuntu

Related posts about virtualbox