You are not logged in.

#1 2018-06-02 08:22:41

jimmi61
Member
Registered: 2018-06-02
Posts: 3

[SOLVED] User cannot access VirtualBox shares of Win10 host

I am using VirtualBox 5.2.12. I installed ArchLinux in a VM on a Win10 host and created a share of the folder C:\Users\USER\Documents with the option AutoMount enabled.

When I start the VM I have the share regularly mounted on /media/sf_Documents but accessible only by root.

The user jimmi is in the group vboxsf

$ groups jimmi
power wheel storage vboxsf users

The directory seems to have the proper permits:

sudo ls -ll /media/
totale 96
drwxrwx--- 1 root vboxsf 65536  1 giu 10.31 sf_Documents

root may see the share:

$ sudo df
File system    1K-blocchi     Usati Disponib. Uso% Montato su
dev               2015896         0   2015896   0% /dev
run               2021624       428   2021196   1% /run
/dev/sda1        10255636   3646276   6068688  38% /
tmpfs             2021624     13160   2008464   1% /dev/shm
tmpfs             2021624         0   2021624   0% /sys/fs/cgroup
tmpfs             2021624         8   2021616   1% /tmp
/dev/sda3        10254612     83256   9630736   1% /home
Documents       249576220 155982596  93593624  63% /media/sf_Documents
tmpfs              404324       4    404320   1% /run/user/1000
$ sudo ls -ll /media/sf_Documents
totale 480439
-rwxrwx--- 1 root vboxsf    394937 30 mar  2015  1-1.pdf
...

but the user cannot

$ df
File system    1K-blocchi   Usati Disponib. Uso% Montato su
dev               2015896       0   2015896   0% /dev
run               2021624     428   2021196   1% /run
/dev/sda1        10255636 3646276   6068688  38% /
tmpfs             2021624   24344   1997280   2% /dev/shm
tmpfs             2021624       0   2021624   0% /sys/fs/cgroup
tmpfs             2021624       8   2021616   1% /tmp
/dev/sda3        10254612   83344   9630648   1% /home
tmpfs              404324       4    404320   1% /run/user/1000
$ ls -ll /media/sf_Documents
ls: impossibile accedere a '/media/sf_Documents': Permesso negato

I know that something is wrong with the permits but I cannot figure out what. I read pages and pages of howtos, forums and bug report but did not found anything.

Anybody has a clue of what my problem is?

Thanks in advance smile
Jimmi

Last edited by jimmi61 (2018-06-04 03:22:58)

Offline

#2 2018-06-02 13:59:42

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,721

Re: [SOLVED] User cannot access VirtualBox shares of Win10 host

How are you mounting that volume in the guest?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2018-06-03 00:01:35

jimmi61
Member
Registered: 2018-06-02
Posts: 3

Re: [SOLVED] User cannot access VirtualBox shares of Win10 host

ewaller wrote:

How are you mounting that volume in the guest?

I'm not mounting it, I enabled the option AutoMount and it comes mounted by the system on startup.

BTW there are problems mounting shares with the actual kernel as you may read here, but I guess has nothing to do with permits. I downgraded the system to the kernel 4.14 LTS but did not had any effect on my issue.

Last edited by jimmi61 (2018-06-04 02:18:27)

Offline

#4 2018-06-04 03:30:37

jimmi61
Member
Registered: 2018-06-02
Posts: 3

Re: [SOLVED] User cannot access VirtualBox shares of Win10 host

As I thought the solution was trivial: for some reason the /media directory had permits drwxr-x---, is this standard for Archlinux?

After chmod 755 everything is working like a charm smile

Offline

Board footer

Powered by FluxBB