【发布时间】:2020-01-25 18:14:30
【问题描述】:
在 macOS (High Sierra) 上,当我尝试在路径中列出文件时
/private/var/db/ConfigurationProfiles/Store
我收到错误“Operation not permitted”。使用 sudo 并没有更好,甚至使用 bypass 助手也不会改变任何东西:
sudo /System/Library/Extensions/TMSafetyNet.kext/Contents/Helpers/bypass ls -l /private/var/db/ConfigurationProfiles/Store
也给出“Operation not permitted”。如何列出/访问路径/private/var/db/ConfigurationProfiles/Store下的文件?
其他信息:
通过ls -al /private/var/db/ConfigurationProfiles 显示的封闭目录列表:
drwxr-xr-x 5 root wheel 160 13 Apr 2018 .
drwxr-xr-x 85 root wheel 2720 28 Sep 06:27 ..
drwxr-xr-x@ 4 root wheel 128 16 Dec 2017 Settings
drwx------ 3 root wheel 96 1 Oct 21:56 Setup
ls: Store: Operation not permitted
始终如一,但奇怪的是,Store 无法列出。在以当前用户身份执行 ls 和通过 sudo 执行时都会发生这种情况。
【问题讨论】:
-
你能给我们
ls -la的/private/var/db/ConfigurationProfiles吗? -
@tukan 查看我的问题。我已经添加了相关细节。
-
你也试过
sudo ls -la吗? -
是的,正如问题中提到的那样,它既作为当前用户又通过 sudo 发生。
-
您在 (
csrutil status) 上有系统完整性吗? -> 这是您必须禁用保护才能查看文件的最可能原因。您是否验证您的磁盘?