Ticket #931 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

The mode option mentioned in the user manual is missing from vboxsf

Reported by: paulsiu Owned by:
Priority: major Component: shared folders
Version: VirtualBox 1.5.2 Keywords:
Cc: Guest type: Linux
Host type: other


At the end of section 4.4, the manual states "The generic mount options (documented in the mount manual page) apply also.Especially useful are the options uid, gid and mode, as they allow access by normal users (in read/write mode, depending on the settings) even if root has mounted the filesystem." However, when you attempt to mount using the "mode" option, it tells you that "mode" is not a valid option.

Side effects Without the ability to change mode, a shared directory is always mounted with the permission of rwxr-xr-x. Basically, the owner can read, write and execute, while group and others can only read and execute.

When you mount a vboxsf volume, mount will mounted it as a owner of root and a group of root by default. As a result, no one except root will have write access. On distros like Ubuntu, you are normally not allowed to be root, so no one can write to the drive.

To get around the issue, you can mount it using the uid option so you are the owner of the shared folder, but that means any share folder will only have access by one person.

In addition, the gid option in mount is essentially useless since you cannot change mode. Your group will always only have read-execute access to the shared folder.

I propose that mode be an option of vboxsf as stated in the user manual.

Change History

comment:1 Changed 10 years ago by frank

  • Component changed from other to shared folders
  • Guest type changed from other to Linux

comment:2 Changed 10 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

This option was added with version 1.6.6, closing.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use