You are not logged in.

#1 2013-11-22 23:04:49

mmmcurry
Member
Registered: 2013-10-04
Posts: 5

[SOLVED] Can't access Virtualbox shared folder as user

Hi,
I enabled auto mounting through Virtualbox on windows host and it seems to work fine when accessed as root.

[david@david-pc ~]$ sudo ls -l /media
total 0
drwxrwx--- 1 root vboxsf 0 Nov 15 10:35 sf_progs
[david@david-pc ~]$ sudo ls -l /media/sf_progs
total 4
drwxrwx--- 1 root vboxsf 4096 Nov 16 15:56 java

But not when accessed as user

 [david@david-pc ~]$ ls -l /media
ls: cannot access /media/sf_progs: Permission denied
total 0
d????????? ? ? ? ?            ? sf_progs
[david@david-pc ~]$ ls /media
ls: cannot access /media/sf_progs: Permission denied
sf_progs
[david@david-pc ~]

I have added myself to the vboxsf group, and tried accessing after rebooting aswell

[david@david-pc ~]$ id david
uid=1000(david) gid=100(users) groups=100(users),10(wheel),109(vboxsf)

Thanks

Last edited by mmmcurry (2013-11-23 21:54:18)

Offline

#2 2013-11-23 05:19:35

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: [SOLVED] Can't access Virtualbox shared folder as user

Do you have permission to access /media?

Offline

#3 2013-11-23 06:08:01

mmmcurry
Member
Registered: 2013-10-04
Posts: 5

Re: [SOLVED] Can't access Virtualbox shared folder as user

yes

[david@david-pc ~]$ ls -l /
total 20
lrwxrwxrwx   1 root root    7 Jun  1 04:40 bin -> usr/bin
drwxr-xr-x   4 root root 4096 Nov 22 13:24 boot
drwxr-xr-x  17 root root 2880 Nov 23 17:01 dev
drwxr-xr-x   1 root root 2006 Nov 23 09:37 etc
drwxr-xr-x   1 root root   10 Nov 22 13:42 home
lrwxrwxrwx   1 root root    7 Jun  1 04:40 lib -> usr/lib
lrwxrwxrwx   1 root root    7 Jun  1 04:40 lib64 -> usr/lib
drwxrwxrw-   1 root root   16 Nov 23 09:10 media

Offline

#4 2013-11-23 16:01:43

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: [SOLVED] Can't access Virtualbox shared folder as user

No. You need "x" to access a directory and you don't have that for non-root. Just chmod /media with 775.

Offline

#5 2013-11-23 21:53:37

mmmcurry
Member
Registered: 2013-10-04
Posts: 5

Re: [SOLVED] Can't access Virtualbox shared folder as user

Ahh, that's embarrassing. I just assumed that you only needed r to access a directory and x was for scripts and stuff.

But it works now, Thanks! smile

Offline

#6 2018-03-13 14:15:10

bobquino
Member
Registered: 2018-03-08
Posts: 1

Re: [SOLVED] Can't access Virtualbox shared folder as user

Sorry for the silly question but how did you add permission to media folder?

Offline

#7 2018-03-13 14:16:56

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: [SOLVED] Can't access Virtualbox shared folder as user

bobquino wrote:

Sorry for the silly question but how did you add permission to media folder?

I am pretty sure they used chmod


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB