Shared Folder problem in VirtualBox

Shared Folder problem in VirtualBox

I have come across it several times and I forget it every time, so rather a note for me. If you share a folder from a host to a VM in VirtualBox and do not use a root account directly inside the VM, you will encounter a permissions issue.

All you have to do is add user to the right group and after that, problem solved:

sudo usermod -aG vboxsf <userlogin>