You are not logged in.

#1 2017-08-02 22:23:53

saif
Member
Registered: 2010-05-21
Posts: 59

Virtualbox guest shared folder. User in vboxsf still permission denied

Hi,

I am trying to access my shared folder as user, I know it is properly mounted, it says it belongs to vboxsf, and my user is there, still I cant access it.

Help?

[saif@saif ~]$ groups saif
wheel vboxsf autologin users
sudo usermod -aG vboxsf saif
sudo gpasswd -a saif vboxsf
reboot
[saif@saif ~]$ sudo ls -l /media
[sudo] password for saif: 
total 4
drwxrwx--- 1 root vboxsf 4096 Aug  1 00:56 sf_linux_shared
[saif@saif ~]$ cd /media
bash: cd: /media: Permission denied

Thanks
Saif

Last edited by saif (2017-08-02 22:24:47)

Offline

#2 2017-08-03 06:35:27

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: Virtualbox guest shared folder. User in vboxsf still permission denied

Hi, please paste the output of this when the shared folder is mounted:

ls -ld /media
findmnt
saif wrote:

I know it is properly mounted

Still, would you mind showing us the command you used to mount it? Or if you use an entry in your fstab, please paste that file.


pkgshackscfgblag

Offline

#3 2017-08-03 15:53:21

saif
Member
Registered: 2010-05-21
Posts: 59

Re: Virtualbox guest shared folder. User in vboxsf still permission denied

ayekat wrote:

Hi, please paste the output of this when the shared folder is mounted:

ls -ld /media
findmnt
saif wrote:

I know it is properly mounted

Still, would you mind showing us the command you used to mount it? Or if you use an entry in your fstab, please paste that file.

Hi, I dont, I have a Windows 10 HOST, and using Virtualbox configuration to mount shared folder automatically. For other distros it worked fine out of the box.

I looked into the FSTAB and Virtualbox definetly does not change it there, so I am not sure where it tries to do it. The folder is definetely mounted I can access it with root

Saif

Last edited by saif (2017-08-03 15:59:30)

Offline

#4 2017-08-03 16:02:50

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: Virtualbox guest shared folder. User in vboxsf still permission denied

saif wrote:

I know it is properly mounted

I looked into the FSTAB and Virtualbox definetly does not change it there

You need help with something, which means that you have not understood something.
Withholding information from us and instead only giving us your own conclusions in such a situation won't get anyone anywhere.

That being said, I did assume that Arch Linux is the guest, and this is still a valid request:

ayekat wrote:

Hi, please paste the output of this when the shared folder is mounted:

ls -ld /media
findmnt

pkgshackscfgblag

Offline

#5 2017-08-03 16:20:19

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

Re: Virtualbox guest shared folder. User in vboxsf still permission denied

For an Arch Linux guest, you must modprobe the vboxsf module and you must mount the volume; it is not enough to merely have a shared folder in the VBox machine. .  Other distributions may do those steps for you.


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

#6 2017-10-04 12:28:32

ots
Member
Registered: 2013-09-11
Posts: 29

Re: Virtualbox guest shared folder. User in vboxsf still permission denied

As far as I can tell I had the exact same symptoms and the problem was that I had forgot to chown the mounted folder.

 $ chown yourusername /media 

I realise this thread is a few months old and inactive, but I hope I actually provide one solution to the described problem, which the thread currently doesn't do.

Offline

#7 2018-11-07 22:14:08

citizen99
Member
Registered: 2018-11-07
Posts: 1

Re: Virtualbox guest shared folder. User in vboxsf still permission denied

ots wrote:

As far as I can tell I had the exact same symptoms and the problem was that I had forgot to chown the mounted folder.

 $ chown yourusername /media 

I realise this thread is a few months old and inactive, but I hope I actually provide one solution to the described problem, which the thread currently doesn't do.

Just to confirm, this helped me (Newbie to Arch), thanks.

Offline

#8 2018-11-07 22:57:49

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,636
Website

Re: Virtualbox guest shared folder. User in vboxsf still permission denied

I'm glad you found a solution to your problem, but please don't necrobump or empty post.

https://wiki.archlinux.org/index.php/Co … bumping.22
https://wiki.archlinux.org/index.php/Co … mpty_posts

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB