Do the fmode / dmode options for mount.vboxsf work?
Posted: 24. Nov 2008, 18:37
Greetings all,
I'm running an Ubuntu 8.04 AMD64 guest on a Vista 64-bit machine. I've set up a VBox shared folder (r/w) on my Vista host so that I can write files to my Windows file system from my Ubuntu guest. Specifically though, sometimes I need to do a "chmod +x" on those files on the shared folder so that they become executable / i.e., so that I can run those files (from my Vista file system) on my Ubuntu guest. Namely, I want to create executable binaries and shell scripts in Ubuntu (that are hosted on the Vista FS).
It was my understanding that when I run "mount.vboxsf" on my Ubuntu guest to mount the Vista shared folder, the vboxsf mount option "fmode" should allow me to do this. e.g., I'd have thought I could specify "-o fmode=755" as a vboxsf mount option.
But no matter what I try, this doesn't work. Regular files are never mounted as, nor can be changed to be, executable. Though, strangely, any file with a DOS extension -- like .bat, .exe, .cmd, .com, and so on -- *is* automatically mounted or created with the execute bit turned on!
So my question is: Does the mount.vboxsf "fmode" option, or even the "dmode" option for that matter, even work? Are these options even implemented? As far as I can tell, they don't do anything.
Thanks for your time...
I'm running an Ubuntu 8.04 AMD64 guest on a Vista 64-bit machine. I've set up a VBox shared folder (r/w) on my Vista host so that I can write files to my Windows file system from my Ubuntu guest. Specifically though, sometimes I need to do a "chmod +x" on those files on the shared folder so that they become executable / i.e., so that I can run those files (from my Vista file system) on my Ubuntu guest. Namely, I want to create executable binaries and shell scripts in Ubuntu (that are hosted on the Vista FS).
It was my understanding that when I run "mount.vboxsf" on my Ubuntu guest to mount the Vista shared folder, the vboxsf mount option "fmode" should allow me to do this. e.g., I'd have thought I could specify "-o fmode=755" as a vboxsf mount option.
But no matter what I try, this doesn't work. Regular files are never mounted as, nor can be changed to be, executable. Though, strangely, any file with a DOS extension -- like .bat, .exe, .cmd, .com, and so on -- *is* automatically mounted or created with the execute bit turned on!
So my question is: Does the mount.vboxsf "fmode" option, or even the "dmode" option for that matter, even work? Are these options even implemented? As far as I can tell, they don't do anything.
Thanks for your time...