I'm having some trouble deleting some folders that contain nothing and have no processes or kexts utilizing them (lsof | grep path_element
). When I try to delete them (as root) I get:
root@hostname /# rm -fr /path/to/folder
rm: /path/to/folder: Operation not permitted
Even after executing the following to strip ACLs / extended attributes, I still cannot rm -fr the folders:
sudo chmod -RN /path/to/folder
sudo xattr -c -r /path/to/folder
Executing ls
shows no attributes:
ls -lea -@ /path/to/folder
Any other options to ensure all permissions are stripped and that an rm
operation as root should work?
/Volumes/system_backup_name/private/var/folders/zz/blah/blah/blah
... – ylluminate Sep 01 '20 at 01:16/System/Library/Extensions/TMSafetyNet.kext/Contents/Helpers/bypass
? – David Anderson Sep 01 '20 at 04:34/System/Library/Extensions/TMSafetyNet.kext/Contents/Helpers/bypass rm -fr /Volumes/system_backup_name/path/to/folder
still returnsOperation not permitted
. – ylluminate Sep 01 '20 at 06:57rm
as well)? Is there a way to trigger these sans TCC handling, eg via David's suggestion of using TMSafetyNet'sbypass
, which also fails? – ylluminate Sep 01 '20 at 07:02chflags -R nouchg,noschg /path/to/folder
– ylluminate Sep 01 '20 at 14:13