1

I downloaded macOS Installers 10.13.6 and 10.14.6 via softwareupdate, and the InstallESD.dmg files are protected by root, and are restricted.

FYI: the flags on the file are: -rw-r--r-- 1 root wheel restricted ..., I checked using ls -lO

How do I delete the files WITHOUT disabling SIP (majority of answers here, others don't work), because I feel like going through the effort of disabling SIP just to delete one file, and then restart your mac is unnecessary.

1
  • Do you want to know how to remove the flag or just delete these sort of files.
    – bmike
    Commented Jan 28 at 14:59

1 Answer 1

1

You can't touch the flag or file from a normally running macOS, but you don't have to disable SIP either. Just boot into recovery mode and remove the file or flag from there using terminal commands. You will have to mount the Volume first, then go through /Volumes/YourSystemDrive as / is the recovery system.

3
  • Do you have to remove the flag before trashing it?
    – bmike
    Commented Jan 28 at 14:55
  • @bmike Not if you delete it from the recovery environment using rm -rf.
    – Bachsau
    Commented Jan 28 at 22:16
  • That’s what I thought. Not exactly what OP was asking but there’s no need to fuss with permissions when booted from another macOS than the one needing deletion.
    – bmike
    Commented Jan 29 at 2:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .