Page 1 of 1

Shared filesystem permission fixed to 770

Posted: 12. Feb 2018, 17:32
by bupthebroker
Hi,
i am using VirtualBox Version 5.1.30 r118389 (Qt5.6.2). with matching Guest additions. The problem is that all the files and directories in my sf_Shared directory have permission 770. Chmod command does not work. I configured the shared folder from my Windows 7 host from "Shared folders" with Auto-mount and Full access.

Some have suggested that i should add myself to vboxsf group. There does not seem to be a group named like this in the shadow file. But when i try to add, the following is displayed:
bup@bup-VirtualBox /media/sf_Shared $ sudo adduser bup vboxsf
The user `bup' is already a member of `vboxsf'.

There is however a vboxadd group in the shadow file.

How to resolve the issue? Some build scripts of mine fail due to this issue.

Thanks!

Re: Shared filesystem permission fixed to 770

Posted: 12. Feb 2018, 18:59
by mpack
It's a shared folder, not a disk drive. You can't set permissions on files in someone else's disk drive. There's no guarantee that the host drive even supports such a concept.

Re: Shared filesystem permission fixed to 770

Posted: 12. Feb 2018, 20:21
by socratis
bupthebroker wrote:Chmod command does not work
Chmod does not work on a filesystem that doesn't understand permissions. And shared folders are such a filesystem.

VirtualBox's shared folders present a very simplified file system implementation, just enough to read/write files from/to the guest. Many applications can error when using shared folders, because they expect advanced features, like file locking or access controls, which don't exist for shared folders.