Tuesday, November 18, 2025

Error opening directory '/media/sf_C_DRIVE': Permission denied

I tried to share a folder from Windows 10 host to Kali 2020.1 Linux guest using VirtualBox but I am getting the following error message:

Error opening directory '/media/sf_C_DRIVE': Permission denied

To fix, do:
$: sudo adduser $USER vboxsf
Then log-off then log back in. If this does not work, reboot the VM

Getting similar issue using Fedora 33(tested up to Fedora 40) on VirtualBox 7.0.12, below is the error message
This location could not be displayed You do not have the permissions necessary to view the contents of "sf_D_DRIVE"
To fix do the following and reboot the VM.
$: sudo usermod -a -G vboxsf $USER
Refs:
https://stackoverflow.com/questions/26740113/virtualbox-shared-folder-permissions

No comments:

Error opening directory '/media/sf_C_DRIVE': Permission denied

I tried to share a folder from Windows 10 host to Kali 2020.1 Linux guest using VirtualBox but I am getting the following error message: ...