[Resolved] Shared folder on iMAC

Discussions about using Linux guests in VirtualBox.

[Resolved] Shared folder on iMAC

Postby Sy » 31. May 2019, 17:01

I've created a shared folder on my iMAC, the folder appears in the Ubuntu VM as sf_Shared.

How to I grant permission to the VM to access the shared folder as currently when I try to access the shared folder I get:
This location could not be displayed.
You do not have permissions necessary to view the contents of "sf_Shared".
Last edited by socratis on 31. May 2019, 18:33, edited 1 time in total.
Reason: Marked as [Resolved].
Kind Regards,
Sy
Sy
 
Posts: 33
Joined: 30. Oct 2017, 22:29
Location: United Kingdom
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Windows 7

Re: Shared folder on iMAC

Postby socratis » 31. May 2019, 17:28

Sy wrote:How to I grant permission to the VM to access the shared folder

Start by reading the User Manual? From ch. 4.3.2 Automatic Mounting:
Access to an automatically mounted shared folder is granted to everyone in a Windows guest, including the guest user. For Linux and Oracle Solaris guests, access is restricted to members of the group vboxsf and the root user.

You need to add your VM user to the 'vboxsf' group...

Moving to "Linux Guests" from "OSX Hosts".
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
socratis
Site Moderator
 
Posts: 26935
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Shared folder on iMAC

Postby Sy » 31. May 2019, 17:30

I've solved this now:

Code: Select all   Expand viewCollapse view
sudo usermod -a -G vboxsf $(whoami)


Then logout or restart virtual machine.
Kind Regards,
Sy
Sy
 
Posts: 33
Joined: 30. Oct 2017, 22:29
Location: United Kingdom
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Windows 7

Re: Shared folder on iMAC

Postby socratis » 31. May 2019, 18:33

Good job Sy, marking this as [Resolved].
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
socratis
Site Moderator
 
Posts: 26935
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5


Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 10 guests