Opened 13 months ago
Last modified 13 months ago
#21816 closed defect
Shared folders group owner set to root instead of vboxsf — at Version 1
| Reported by: | domp | Owned by: | |
|---|---|---|---|
| Component: | shared folders | Version: | VirtualBox-7.0.10 |
| Keywords: | vboxsf group owner | Cc: | |
| Guest type: | Linux | Host type: | Linux |
Description (last modified by )
Mounting a shared folders in a Linux guest VM, the owner group is set to root instead of root, this forbid the users to fully access to the folder. Furthermore the permission set to files are quite strange, on the first level files have 664 (or 774), in deeper levels have 660 (or 770). My VB host is Linux Mint 20.3, and guests where I observed the issue are MXLinux 23 and Linux Mint 21.2.
Step to reproduce the issue:
- Create a Shared Folder (I shared: Downloads)
- Add current VM Guest user to vboxsf group
sudo usermod -aG vboxsf $(whoami) - Create mountpoint
- Check mountpoint owners are
<myuser>:<myuser> - Manually mount shared folder:
sudo mount -t vboxsf <sf_name> <sf_mountpoint>
- Check mountpoint owners, you'll find
root:root - User cannot fully access to data even he's member of
vboxsf.
As workaround you have mount the shared folder passing the gid parameter to force the ownership to vboxsf.
sudo mount -o gid=<vboxsf gid> -t vboxsf <sf_name> <sf_mountpoint>
Change History (5)
by , 13 months ago
by , 13 months ago
| Attachment: | VBox.log.1 added |
|---|
by , 13 months ago
| Attachment: | VBox.log.2 added |
|---|
by , 13 months ago
| Attachment: | VBox.log.3 added |
|---|
comment:1 by , 13 months ago
| Description: | modified (diff) |
|---|

