VirtualBox

17 年 前 建立

16 年 前 結束

#931 closed defect (fixed)

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

回報者: Paul Siu 負責人:
元件: shared folders 版本: VirtualBox 1.5.2
關鍵字: 副本:
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.

更動歷史 (2)

comment:1 16 年 前Frank Mehnert 編輯

Guest type: otherLinux
元件: othershared folders

comment:2 16 年 前Frank Mehnert 編輯

狀態: newclosed
處理結果: fixed

This option was added with version 1.6.6, closing.

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette