Ticket #9887 (reopened defect)

Opened 2 years ago

Last modified 14 months ago

Odd file permissions in files created by Host (Linux >= 2.6.38) => Fixed in SVN

Reported by: insano5000 Owned by:
Priority: major Component: shared folders
Version: VirtualBox 4.1.6 Keywords:
Cc: Guest type: Linux
Host type: Mac OS X

Description (last modified by frank) (diff)

I have noticed some odd behavior in relation to shared folder files when viewed on an Ubuntu 11.10 guest and a Mac OSX 10.7.2 host in Virtualbox 4.1.6.

I am using my guest as a LAMP development server, and if I attempt to access a file via Apache running on the guest that does not exist and the subsequently create the file on the host, the file is inaccesible in the guest. A screenshot is attached of a basic ls command on the guest.


Screen Shot 2011-11-10 at 10.10.png Download (17.8 KB) - added by insano5000 2 years ago.
Screenshot of odd file permissions

Change History

Changed 2 years ago by insano5000

Screenshot of odd file permissions

comment:1 Changed 2 years ago by insano5000

I should also mention that rebooting the guest fixes the issue and the file is then accesible as expected.

comment:2 Changed 2 years ago by mtsmit2

I am experiencing the same issue with OSX 10.6.7 as the host OS and Ubuntu 11.10 as the guest.

It also doesn't seem to matter if the files were created by the guest or host, they can end up unreadable on the guest either way.

As mentioned above, rebooting the guest seems to fix the issue.

comment:3 Changed 2 years ago by avit

I wonder if Ubuntu 11.10 is a common thread here. I'm having the same problem:

I have not seen this problem on Ubuntu 10.04 VMs.

comment:4 Changed 2 years ago by avit

This bug is still happening:

  • Mac OS 10.7.3
  • VirtualBox 4.1.14
  • Ubuntu 12.04 server

I originally suspected Ubuntu 11.10 as a common link, but it's happening with the new version too. (Previously we were running 10.04 and didn't see the bug there.) See for a screenshot showing the problem.

comment:5 Changed 2 years ago by pacmon

I also experience this bug:

For me I'm not attempting to access via apache first. I am creating the files in the NetBeans IDE (project resides in the shared folder). I do, however, experience exactly this issue where the file is unreadable by the guest.

  • Windows 7 Host
  • VirtualBox 4.1.14 & 4.1.16
  • Fedora 16 Guest

comment:6 Changed 2 years ago by frank

  • Description modified (diff)

We still need a simple scenario to reproduce this problem. So far I see only Mac OS X hosts and Windows hosts are affected, also Linux hosts?

comment:7 Changed 2 years ago by frank

Never mind. It's indeed easy to reproduce.

comment:8 Changed 2 years ago by frank

  • Summary changed from Odd file permissions in files created by Host to Odd file permissions in files created by Host (Linux >= 2.6.38) => Fixed in SVN

We think we found and fixed the problem. The fix is in r41449. It affects only guest Linux kernels >= 2.6.38.  Here is a test build of the 4.1.17 Guest Additions ISO image including the fix.

comment:9 Changed 23 months ago by pacmon

frank - I've been running the test build of 4.1.17 since you posted it. I believe you have fixed the issue. I have not yet encountered the problem since installing them.

comment:10 Changed 23 months ago by frank

Thank you pacmon for the feedback! The fix will be included in VBox 4.1.18 which is expected within some days.

comment:11 Changed 23 months ago by frank

 Here is a test build for the 4.1.17 Additions containing the fix.

comment:12 Changed 23 months ago by frank

Hmm, just saw that I already posted a test build some time ago. Never mind. :)

comment:13 Changed 22 months ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fix in VBox 4.1.18.

comment:14 Changed 19 months ago by lmc.jmshelby

I have been observing this same issue happening with VBox 4.1.20 (r80170). Mac 10.6 as host, and Ubuntu oneiric as the guest. My other developers have been noticing this happening on the same VBox image with windows 7 as the host.

Has this really been proven as fixed?

comment:15 Changed 18 months ago by lmc.jmshelby

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:16 Changed 17 months ago by pemedina

Same issue here running : Vbox 4.2.4 r81684, Mac 10.7.5 as host Ubuntu 11.04 (natty) as guest. ( 2.6.38-16-server )

Have to umount / mount shared folder again to see proper permissions.

comment:17 Changed 17 months ago by pemedina

Hi, i was wondering if there's a solution or workaround for this, because we've switched to a virtualized develoment environment and have to deal with this issue every 5 minutes.

comment:18 Changed 17 months ago by frank

Just retried with 4.2.4 Additions with an Oneiric guest (Linux 3.0) and a Linux host. What I did is

  • ls -l foo in the guest on the shared folder (foo does not exist)
  • touch foo on the host to create the file
  • ls -l foo in the guest. Now the file is there and has correct permissions.

So how can we reproduce your problem?

comment:19 Changed 14 months ago by AlexCouper

I am also getting this problem on a pretty regular basis.

It should be noted that:

  • not every file I create ends up in this state
  • it can happen from either the host or guest creating the files.

I'm using:

A restart of the VM fixes the issue but then new files post reboot have the potential to get the same issues.

Version 0, edited 14 months ago by AlexCouper (next)
Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use