尝试覆盖外部USB驱动器上的文件时拒绝访问(错误0x80070005) [英] Access denied (error 0x80070005) when trying to overwrite files on external USB drive

查看:159
本文介绍了尝试覆盖外部USB驱动器上的文件时拒绝访问(错误0x80070005)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近升级到运行64位Windows 7的PC,现在我正在使用SyncToy 2.1(x64)。

I have recently upgraded to a PC running 64-bit Windows 7 and I am now using SyncToy 2.1(x64).

由于我一直在使用这个版本,我有注意到,当文件夹对的同步需要覆盖某些文件时,所有覆盖都会失败。在每种情况下,SyncToy报告的错误是"错误:无法写入目标文件。访问
被拒绝。 (HRESULT异常:0x80070005(E_ACCESSDENIED))复制...

Since I have been using this version I have noticed that when Synchronization of a Folder Pair requires some files to be overwritten all the overwrites fail. In each case the error reported by SyncToy is "Error: Cannot write to the destination file. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Copying ..."

将新文件写入USB驱动器没有问题。

There is no problem writing new files to the USB drive.

我查看了一些无法覆盖的文件的属性......"只读"框未被取消。

I have looked at the Properties of some of the files that cannot be overwritten ... the "Read-only" box is unticked.

当我查看其中一个无法覆盖的文件的属性的"安全"选项卡时,我的用户名不会显示。 ..列出的唯一组或用户名是SYSTEM,帐户未知(S-1-5 -.......),管理员和用户
(和用户只有"读取和执行"和"读取"权限)。

It may be relevant that, when I look at the Security tab of the Properties for one of the files that can't be overwritten, my user name is not shown ... the only Group or user names listed are SYSTEM, Account Unknown (S-1-5-.......), Administrators and Users (and Users only have "Read & execute" and "Read" permissions).

相比之下,当我比较最近创建的文件的"安全"选项卡时,我看到列出了我的用户名而不是"帐户未知",而我的用户名有"完整"控制","修改"和"写"权限。

By contrast, when I compare the Security tab for a recently created file I see my User name listed instead of Account Unknown and my user name has "Full control", "Modify" and "Write" permissions.

在从一台计算机(使用一个版本的Windows)移动到另一台计算机(使用相同或不同版本的Windows)的文件上使用SyncToy时,我没有遇到过类似的问题。出现这个问题是因为我现在在
这个计算机上使用了一个不同的用户名来自我之前在计算机上使用过的计算机吗?

I have not encountered similar problems when using SyncToy on files moved from one computer (with one version of Windows) to another (with the same or a different version of Windows). Has this problem arisen because I am now using a different user name on this computer from the one I have used on previous computers?

我在其他地方看到过我应该运行的建议SyncToy"作为管理员"。但是,我看不出怎么做:当我右键单击程序快捷方式时,没有"以管理员身份运行";菜单中的选项,当我打开属性页面时,
"以管理员身份运行"选项显示为灰色。

I have seen suggestions elsewhere that I should run SyncToy "as administrator". However, I can't see how to do that: when I right-click on the program shortcut there is no "Run as administrator" option in the menu, and when I open the Properties page the "Run as administrator" option is greyed out.

我是此计算机的唯一用户(因此可能是管理员)。

I am the only user (and therefore, presumably, the administrator) of this computer.

请提出任何建议,至于如何在需要时让SyncToy覆盖文件?

Any suggestions, please, as to how I can get SyncToy to overwrite files when required?

推荐答案

我做了一些谷歌搜索,似乎问题可能已经出现,因为Windows 7对文件访问权限比早期版本的Windows更加困难,我的问题的答案可能在于更改
目标文件夹(外部驱动器上的文件夹)的安全设置包含可能需要重写的文件。)

I've done a bit of googling and it seems that the problem may have arisen because is Windows 7 is fussier about file access permissions than earlier versions of Windows, and that the answer to my problem might lie in changing the security settings for the destination folder (the folder on the external drive that contains the files that may need to be over-written).

为了测试这个理论,我进行如下操作。在Windows资源管理器中,我右键单击其中一个包含需要覆盖的文件的子文件夹。从菜单我选择了属性。在安全选项卡中,我单击编辑然后选择用户,
为Users组授予完全控制权限。

To test this theory I proceeded as follows. In windows Explorer I right-clicked on one of the sub-folders that contained files needing to be over-written. From the menu I selected Properties. In the Security tab I clicked Edit then selected Users and gave Full Control permissions to the Users group.

执行此操作后,我重新运行了SyncToy以及此特定文件文件夹写得很满意。

After doing this, I re-ran SyncToy and the files in this particular folder were over-written satisfactorily.

我对摆弄我不理解的安全设置感到紧张。大概推出了阻碍SyncToy的安全限制有充分的理由不管怎么说,我都不应该冒犯并放松权限。在
进一步改变整个目标文件夹的安全设置之前我会很感激我可以保证更改以这种方式进行安全设置。

I'm nervous about fiddling with Security settings which I do not understand. Presumably the security restriction which is impeding SyncToy has been introduced for a good reason and it would be wrong for me to blunder in and relax the permissions willy-nilly. Before going further and changing the security settings for the entire destination folder I would appreciate some assurance that it is OK for me to change Security settings in this way.


这篇关于尝试覆盖外部USB驱动器上的文件时拒绝访问(错误0x80070005)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆