VirtualBox

12 年 前 建立

8 年 前 結束

#11583 closed defect (obsolete)

Can't force overwrite/delete from Linux Guest when R/O set in Win Host

回報者: CMMartin 負責人:
元件: shared folders 版本: VirtualBox 4.2.8
關鍵字: Read-only force overwrite delete 副本:
Guest type: Linux Host type: Windows

描述

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."

更動歷史 (2)

comment:1 12 年 前CMMartin 編輯

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.

comment:2 8 年 前aeichner 編輯

狀態: newclosed
處理結果: obsolete

Please reopen if still relevant with a recent VirtualBox release.

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette