Hi
I've come across a problem, and I'm not sure whether it is a
virtualbox or windows bug.
Background:
I use windows 7 home premium as a host system, and do most of my work
inside a lubuntu 11.10 virtualbox guest. All my videos, documents,
downloads(etc) are kept on a data partition, and are located by
'D:\{User Dir Name}' (D:\videos, D:\documents). Since I want to be
able to access all my documents from both host and guest, I shared all
those folders with the guest and automatically mount them(using
/etc/fstab entries) on my home directory. The directories are all
mounted with the 777 flags(read, write and execute for all users) and
everything was working perfectly.
The problem happened when I changed the windows 7 location of my
user directories to the ones in my data partition. For example, the
default 'Documents' directory for me is at
'C:\Users\Thiago\Documents', so I changed it(right click on that
directory using windows explorer and go to tab 'location') to point to
'D:\documents' which is the shared directory by virtualbox. After
that, the directories are being mounted on my ubuntu guest without the
'write' flag, and can only write to that directory using 'root' user
(So I get all kinds of trouble when downloading files from the browser
or editing documents).
Steps to reproduce(need a linux guest):
1 - Create a directory named 'C:\documents' (or any other directory)
2 - Share the directory created on step 1 with the linux guest (use
the name 'docs' for the share and dont use the 'auto-mount' option)
3 - On the linux guest, open a terminal and type(assumes write
permissions on current directory) :
$ mkdir documents # (if it doesn't exist already, or simply use
any empty directory)
$ sudo mount -tvboxsf docs documents
4 - Verify the permissions on the directory documents. It should be 777.
5 - Type the following:
$ sudo umount documents
6 - On the host, go, using windows explorer, to the location
'C:\Users\{Your user name}'
7 - Right click on the directory 'My Documents' and click 'Properties'
8 - Go to the 'Location' tab and change the location to the directory
created in step 1
9 - Verify that the directory from step 1 is being displayed as 'My
Documents' and has a personalized icon
10 - Go to the guest again and type:
$ sudo mount -tvboxsf docs documents
11 -Verify the permissions on the directory documents. It should be
555(Has the write flag turned off).
As I said, I'm not sure whether I should report this. Has anyone
noticed/reproduced this? I would be very grateful for any
insight/workaround on this problem(other than writing to the mounted
directories as root).
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
VBox-users-community mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vbox-users-community