Setup: Archlinux guest on a Ubuntu host.
I noticed it happening when Sabnzbd moved its downloaded files to its 'completed' folder. When it did this, the files were not readable anymore. When doing 'ls -l' it showed ??? for the owner and ??? for the permissions fields. Here is where it gets even stranger: when remounting vboxsf, the permissions are correct again.
vboxsf is mounted using the following fstab line:
vboxshare /media/vboxshare vboxsf rw,dmode=777,fmode=777 0 0
I tried to mimic this behaviour and found a bug in the handling of vboxsf's permissions:
Code: Select all
[root@v070 test]# echo test > testfile
[root@v070 test]# ls -l
total 4
-rwxrwxrwx 1 root root 5 Apr 20 21:22 testfile
[root@v070 test]# chmod 000 testfile
[root@v070 test]# echo test > testfile
bash: testfile: Operation not permitted
[root@v070 test]# ls -l
total 4
-rwxrwxrwx 1 root root 5 Apr 20 21:22 testfile