我在 Windows 10 Home (10.0.16299 Build 16299) 上突然遇到了重大权限问题。这是虚拟机在 macOS High Sierra 上的 Parallels 中运行。
文件或文件夹随机变得完全无法访问,我无法更改文件权限或所有者。无法显示所有者。以下是屏幕截图。
我正在运行 IIS,这些问题发生在 中C:\inetpub\wwwroot
。我认为这会影响 Web 服务器/.NET 应用程序当时正在写入的文件,但这种情况可能持续几个小时而不会发生。
我很少接触 wwwroot 之外的文件,因此很难确认问题是否只局限于此,但当前安装到目前为止已经运行了好几个月。
chkdsk
问题已修复,但几个小时后又再次出现
chkdsk /r /f /x
等待约 1.5 小时后成功修复问题,但一小时或更长时间后该问题又在更多随机文件上再次出现。
下面是 Chkdsk 日志。它确实提到了清理未使用的安全描述符,但不确定这是否重要。
Checking file system on C:
The type of the file system is NTFS.
A disk check has been scheduled.
Windows will now check the disk.
Stage 1: Examining basic file system structure ...
619776 file records processed.
File verification completed.
11697 large file records processed.
0 bad file records processed.
Stage 2: Examining file name linkage ...
865 reparse records processed.
854926 index entries processed.
Index verification completed.
0 unindexed files scanned.
0 unindexed files recovered to lost and found.
865 reparse records processed.
Stage 3: Examining security descriptors ...
Cleaning up 46 unused index entries from index $SII of file 0x9.
Cleaning up 46 unused index entries from index $SDH of file 0x9.
Cleaning up 46 unused security descriptors.
Security descriptor verification completed.
117576 data files processed.
CHKDSK is verifying Usn Journal...
41178584 USN bytes processed.
Usn Journal verification completed.
Stage 4: Looking for bad clusters in user file data ...
619760 files processed.
File data verification completed.
Stage 5: Looking for bad, free clusters ...
48814932 free clusters processed.
Free space verification is complete.
Windows has scanned the file system and found no problems.
No further action is required.
267610664 KB total disk space.
71330992 KB in 459440 files.
279600 KB in 117577 indexes.
0 KB in bad sectors.
740344 KB in use by the system.
65536 KB occupied by the log file.
195259728 KB available on disk.
4096 bytes in each allocation unit.
66902666 total allocation units on disk.
48814932 allocation units available on disk.
Internal Info:
00 75 09 00 b1 cd 08 00 38 32 0f 00 00 00 00 00 .u......82......
91 02 00 00 d0 00 00 00 00 00 00 00 00 00 00 00 ................
Windows has finished checking your disk.
Please wait while your computer restarts.
我尝试过的其他方法都没有成功
- 启用本地管理员帐户(
net user administrator /active:yes
)并在登录本地管理员时运行 takeown/icacls 不起作用(见下文) - C:>工具>错误检查表明未发现错误
- 计算机管理 > 共享文件夹 > 打开文件为空
- 取得所有权选项添加自本教程只会导致访问被拒绝消息
takeown 和 icalcs 的输出(以具有提升的命令提示符的本地管理员帐户身份)
> takeown /F ApprovedColor.config
ERROR: Access is denied.
> icacls ApprovedColor.config /t /c /GRANT Everyone:F
ApprovedColor.config: Access is denied.
Successfully processed 0 files; Failed processing 1 files
机器目前无法使用,这让我很头疼。有什么方法可以恢复/修复这台机器吗?提前谢谢。
截图
文件权限 - 无法查看或更改
高级权限窗口 - 无所有者