VirtualBox

Opened 15 years ago

Closed 14 years ago

#2264 closed defect (fixed)

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

Reported by: srackham Owned by:
Component: shared folders Version: VirtualBox 2.0.2
Keywords: Cc:
Guest type: Linux Host type: Windows

Description (last modified by 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`).

Change History (3)

comment:1 by Frank Mehnert, 15 years ago

Description: modified (diff)
Resolution: fixed
Status: newclosed

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

comment:2 by Pello, 14 years ago

Resolution: fixed
Status: closedreopened

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 by Sander van Leeuwen, 14 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use