Failed to open directory on Kali Linux Virtualbox

I added E:\Kali_Shared to my Kali Linux Virtualbox image and then tried to open it within Kali Linux. Received an Failed to open directory error. This seems to be a common problem with different versions of Linux running in Virtualbox where you get Virtualbox shared folder permissions denied error message.

Failed to open directory on Kali Linux Virtualbox - blackMORE Ops -1

The fix is rather easy and there’s two different ways to do it.

Solution 1

Add yourself to the vboxsf group within the guest VM.

Run from terminal: (in Kali Linux, Ubuntu, Debian derivatives)

sudo adduser $USER vboxsf

On Suse it’s

sudo usermod --append --groups vboxsf $USER

Failed to open directory on Kali Linux Virtualbox - blackMORE Ops - 2

To take effect you should log out and then log in, or you may need to reboot.

Solution 2

Edit the file, you will need root privileges: /etc/group

Look for the line vboxsf:x:999 and add at the end :yourusername — use this solution if you don’t have sudo.

To take effect you should log out and then log in, or you may need to reboot.

That’s it.

 

Check Also

Enabling AMD GPU for Hashcat on Kali Linux: A Quick Guide

Enabling AMD GPU for Hashcat on Kali Linux: A Quick Guide

If you’ve encountered an issue where Hashcat initially only recognizes your CPU and not the …

Boot Ubuntu Server 22.04 LTS from USB SSD on Raspberry Pi 4

Boot Ubuntu Server 22.04 LTS from USB SSD on Raspberry Pi 4

This is a guide for configuring Raspberry Pi4 to boot Ubuntu from external USB SSD …

Leave your solution or comment to help others.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from blackMORE Ops

Subscribe now to keep reading and get access to the full archive.

Continue reading