VirtualBox

Ticket #4381 (reopened defect)

Opened 7 months ago

Last modified 1 month ago

windows guest - linux host file permissions changed on shared folders -> Fixed in SVN

Reported by: Tvtech Assigned to:
Priority: major Component: shared folders
Version: VirtualBox 3.0.6 Keywords: file permissions, shared folders
Cc: Guest type: Windows
Host type: Linux

Description

I recently upgraded to 3.0.0.

I have a number of EXT3 and EXT4 share folders which I access from a windows host via VirtualBox's shared folder handler. When I access a file in one of the EXT folders it reads and writes to it the first time. When I modify the file and re-save, or auto save it says it is read-only. This primarily happens with Microsoft office related products. [URL="http://ubuntuforums.org/showthread.php?t=1202151]"]This Thread/URL was started by some one having the same problem in 2.2.4 It does not happen on NTFS shared folders.

Attachments

Windows XP SP3 40G-2009-07-03-11-02-52.log (60.7 kB) - added by Tvtech on 2009-07-03 17:34:59.
Windows XP SP3 40G-2009-07-03-11-02-52.2.log (60.7 kB) - added by Tvtech on 2009-07-03 17:36:00.
virtual box log during permission change
Windows XP SP3 40G-2009-07-03-11-22-16.log (63.2 kB) - added by Tvtech on 2009-07-03 17:36:55.
another log with the same file permissions alteration
VBox.log (47.7 kB) - added by auspex@pointerstop.ca on 2009-09-16 17:15:56.
VBox.log as requested by sunlover
Windows 7-2009-11-09-14-56-35.log (53.1 kB) - added by scaary on 2009-11-09 18:03:21.
Windows 7 guest
VBox.2.log (45.8 kB) - added by poppafuze on 2009-12-28 07:28:58.
Win XP Home x86 guest on Karmic host - can't unset read perms on folder in share

Change History

2009-07-03 17:34:59 changed by Tvtech

  • attachment Windows XP SP3 40G-2009-07-03-11-02-52.log added.

2009-07-03 17:36:00 changed by Tvtech

  • attachment Windows XP SP3 40G-2009-07-03-11-02-52.2.log added.

virtual box log during permission change

2009-07-03 17:36:55 changed by Tvtech

  • attachment Windows XP SP3 40G-2009-07-03-11-22-16.log added.

another log with the same file permissions alteration

2009-07-04 00:09:42 changed by pablofaria

I'm just updated for VBox 3.0 and I'm facing the same issue. I didn't find problems with other applications yet, except MS-Office suite (which are taking too long to read the files too).

2009-07-04 00:13:56 changed by pablofaria

Just to be clear, I can save the file only once. After this, the permission is changed and I have to restore it before saving again.

2009-07-04 19:15:39 changed by Tvtech

A note on the problem:

If you have an instance of Nautilus/Dolphin open to the directory your file is stored in; at the time of file modification/save the permissions do not get changed. Pablo could you try this and verify? I tried with MS word, Excel and visual studio, all MS products. I'll try doing it with a non MS product, to verify.

As noted this happens in Gnome2.26.1 and KDE4 vbox 3.0.0

2009-07-04 19:19:06 changed by Tvtech

A note on the problem: clarified.

If you have an instance of Nautilus/Dolphin open in your "HOST OS" to the directory your file is stored in; at the time of file modification/save in your "GUEST OS" the permissions do not get changed. Pablo could you try this and verify? I tried with MS word, Excel and visual studio, all MS products. I'll try doing it with a non MS product, to verify.

As noted this happens in Gnome2.26.1 and KDE4 vbox 3.0.0

2009-07-06 08:40:03 changed by yesint

I confirm this bug. I have it in Ubuntu 9.04 host and WinXP guest. http://www.virtualbox.org/ticket/4390[[BR]]

http://ubuntuforums.org/showthread.php?p=7568616

2009-07-06 18:28:05 changed by meah

Same behaviour on Ver 3.0 Host: Fedora 9 Guest: W2K

copy with Explorer creates 664 copy with totalcommander creates 400 - delete of the files from totalcommander is possible copy with cmd creates 400 - delete of the files from cmd is possible

I reposted it from a closed ticket #2592.

2009-07-06 21:46:00 changed by pablofaria

I tried with Nautilus opened and got the same problem. My host is Ubuntu 8.04, with Gnome 2.22.3, with guest WinXP SP3.

2009-07-06 23:16:13 changed by moeis

me too! Vbox 3.0 | Host: openSUSE 11.1 KDE 4.2 | Guest: WinXP SP3 Problem occurs with all MS Office 10 / 2007 products in the way described.

2009-07-07 16:37:15 changed by annie.furser

Confirming on Ubuntu 9.04 host with Windows XP SP3 guest. Virtualbox 3.0.0 r49315

2009-07-07 17:27:20 changed by sunlover

  • priority changed from minor to major.
  • summary changed from windows guest - linux host file permissions changed on shared folders to windows guest - linux host file permissions changed on shared folders -> Fixed in SVN.

Thanks everyone for reporting the problem. The fix will be available in the next VBox version.

2009-07-08 01:55:00 changed by wnicholls

Lovely. I can't want and am going back to VBox 2 immediately. I hope the config files are still compatible.

BTW I had a problem almost exactly like this in VirtualBox before, it got fixed ages ago so this is a regression. Times like this I think virtualbox is all a sly plot to make people buy VMWare Workstation. Something critical breaks in every release - I haven't dared find out whether the clipboard sharing works.

I think I solved the problem then by using Samba and connecting to a network drive. If Samba can map permissions correctly, vbox should be able to use the same rules.

Incidentally, normal readonly files (from when I was using VBox 2.2) have permissions 444. Attempting to REMOVE readonly attribute appears to change to 400 (not the expected 666) the ATTRIB command couldn't fix this.

2009-07-10 21:15:23 changed by frank

  • status changed from new to closed.
  • resolution set to fixed.

(follow-up: ↓ 14 ) 2009-09-16 03:26:06 changed by auspex@pointerstop.ca

  • status changed from closed to reopened.
  • resolution deleted.

I just downloaded the latest 3.0.6 r52128, having encountered this issue, and it's still there. So it's either been regressed again, or hasn't been fixed. It's really frustrating when you can't run apps that write to shared storage.

(in reply to: ↑ 13 ; follow-up: ↓ 15 ) 2009-09-16 14:31:10 changed by sunlover

Replying to auspex@pointerstop.ca:

I just downloaded the latest 3.0.6 r52128, having encountered this issue, and it's still there. So it's either been regressed again, or hasn't been fixed. It's really frustrating when you can't run apps that write to shared storage.

Which application do you use to save files to shared folders? And please attach VBox.log of the VM.

(in reply to: ↑ 14 ) 2009-09-16 17:14:57 changed by auspex@pointerstop.ca

Replying to sunlover:

I'm trying to test an Apache Pluto server, but surely the application is irrelevant - opening the folder in Explorer shows the status as read-only, and the only way to get anything to write into the folder is to create the files first in Explorer.

2009-09-16 17:15:56 changed by auspex@pointerstop.ca

  • attachment VBox.log added.

VBox.log as requested by sunlover

(follow-up: ↓ 17 ) 2009-10-06 11:38:43 changed by frank

  • version changed from VirtualBox 3.0.0 to VirtualBox 3.0.6.

2009-11-09 18:03:21 changed by scaary

  • attachment Windows 7-2009-11-09-14-56-35.log added.

Windows 7 guest

(in reply to: ↑ 16 ) 2009-11-09 18:08:07 changed by scaary

Hi, I'm experiencing similar problems with windows XP and Windows 7 (Ubuntu 9.10, VB 3.10). I can make folders and files myself, and deleting them is also not a problem.

But I have e.g My scanner software running in VB. Scanning works fine, but as soon as I try to save it, it simply refuses to write the files on the specified folder.

Same for my java written software; In order to work properly it needs to write some files in normal, by the software created folders. These folders and files are never created by the software and therefore I get a "File not found" exception later on.

It doesn't matter if I have the software running in eclipse, or as stand alone.

Hope you know a fix for the problem. Thanks, scaary

2009-12-28 07:28:58 changed by poppafuze

  • attachment VBox.2.log added.

Win XP Home x86 guest on Karmic host - can't unset read perms on folder in share

2009-12-28 07:33:56 changed by poppafuze

Also can confirm inability to of an app to write to a folder in a shared dir. Host is Linux (Karmic, 2.6.31-17-generic x85_64) from XP guest. However, when I manually create a new file in that dir, it seems to work. Only the app has trouble, saying in a popup that it needs write permission to the folder. The logged-in user on the guest is an admin. Also tried running the app as current user but with 'protect' unset.

Each attempt to unset read only perms in the file properties on the guest is ignored.

Also is the "fixed in SVN" portion of ticket title still valid?

2010-01-04 09:23:59 changed by sunlover

poppafuze, which application fails to write to a shared folder?


ContactPrivacy policy