3

I have a shared folder between Xubuntu 16.04 (host) and Xubuntu 17.10 (guest). I have given write permission via virtualbox, but still I don't have permissions to edit the files on the guest system.

That is, because the folder is mounted to the guest system by

sudo mount -t vboxsf folder share

In the host system the folder is owned by the normal user and writable. But when mounted in guest, its owned by root and not writable for others. And when I try to change it via sudo chmod or sudo chown there is no effect.

In another Question it was answered, that you should give chmod 777 to all files on the host system. But thats not something I want to do because I don't see why this should be necessary to do. Giving all permissions to all users on my host system cant be the best way.

I already added my guest user to the vboxsf group but that didn't change anything. I guess, I would need to mount the shared folder somehow not by root.

Jeno
  • 375
  • 3
  • 14
  • 28

1 Answers1

2

The solution is easy, just mount the shared folder for the standard user:

sudo mount -t vboxsf folder share -o uid=1000,gid=1000

1000 is the default ID of the default user. This can be checked by id username

Jeno
  • 375
  • 3
  • 14
  • 28