Opened 12 years ago
Closed 8 years ago
#11583 closed defect (obsolete)
Can't force overwrite/delete from Linux Guest when R/O set in Win Host
Reported by: | CMMartin | Owned by: | |
---|---|---|---|
Component: | shared folders | Version: | VirtualBox 4.2.8 |
Keywords: | Read-only force overwrite delete | Cc: | |
Guest type: | Linux | Host type: | Windows |
Description
Normally GNU programs on Linux such as cp, rm, etc can use the "-f" option to force the operation on a file that doesn't have write permissions.
However, if the underlying file is set to "read-only" on the Windows Host, the operation will still fail and return "operation not permitted".
A little bit of testing shows the following:
- Mounting with rw,dmode=777,fmode=777 doesn't help
- It doesn't make a difference who the linux owner is
- It doesn't matter if user is root
- The error goes away if the read-only is cleared on the windows host
- Chmod works properly and will clear the read-only attribute in Windows
- After "chmod 777 file", the file can be overwritten and deleted properly
I believe that the correct behavior should be to allow the Linux Filesystem to decide whether or not an operation is permitted based on its permissions and access rights (ex. Root can do whatever it wants).
To summarize this issue in one statement: "Linux permissions should be synchronized with Windows Attributes; therefore, if the Linux Filesystem consents to allow an operation in spite of that, the Windows Host filesystem should not be able to override it."
Change History (2)
comment:1 by , 12 years ago
comment:2 by , 8 years ago
Resolution: | → obsolete |
---|---|
Status: | new → closed |
Please reopen if still relevant with a recent VirtualBox release.
Please note as well that the description I provided about the expected behavior is how it seems to work in both VMWare Shared Folders as well as SAMBA.