VirtualBox

16 年 前 建立

15 年 前 結束

#2264 closed defect (fixed)

Shared My Documents folder not writable by non-root Linux guest

回報者: srackham 負責人:
元件: shared folders 版本: VirtualBox 2.0.2
關鍵字: 副本:
Guest type: Linux Host type: Windows

描述 (由 Frank Mehnert 作最後更新)

Host: Windows XP Pro SP2, Guest: Xubuntu 8.04

Non-root users can't write to a shared Windows 'My Documents' folder regardless of the 'uid' and 'gid'. Here's a transcript that illustrates the problem (the shared folder named mydocs shares the C:\Documents and Settings\srackham\My Documents folder and the logged on Xubuntu user is 'srackham'):


$ ls -ld shared/
drwxr-xr-x 2 srackham srackham 4096 2008-09-18 07:59 shared/

$ sudo mount -t vboxsf -o uid=srackham,gid=srackham mydocs shared

$ ls -ld shared/
dr-xr-xr-x 1 srackham srackham 0 2008-09-18 10:15 shared/

$ touch shared/t
touch: cannot touch `shared/t': Permission denied

$ sudo touch shared/t

$ ls shared/t
shared/t


Note how the user write bit on the mounted directory has been turned off so the user can't write but root can.

The problem seems to be related to the special properties imbued in the 'My Documents' folder by Windows. Same applies to the Windows 'Shared Documents' folder (`C:\Documents and Settings\All Users\Documents`).

更動歷史 (3)

comment:1 15 年 前Frank Mehnert 編輯

描述: 修改 (差異)
狀態: newclosed
處理結果: fixed

Recent Linux additions allow you to specify a default mode for files and directories.

comment:2 15 年 前Pello 編輯

狀態: closedreopened
處理結果: fixed

It will work if you just create a junction to 'My Documents' folder and ask VirtualBox to share the newly created junction (you may use Mark Russinovich's utility at http://live.sysinternals.com to create that junction, name it as you want)

comment:3 15 年 前Sander van Leeuwen 編輯

狀態: reopenedclosed
處理結果: fixed
注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

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