Sample Header Ad - 728x90

How do I do a find or du without getting permission denied errors

3 votes
2 answers
4770 views
Typical example: sudo du -xm /System/Volumes/Data | sort -n -o .all-du Password: du: /System/Volumes/Data/Library/Caches/com.apple.aned: Operation not permitted du: /System/Volumes/Data/private/var/networkd/db: Operation not permitted du: /System/Volumes/Data/private/var/db/appinstalld: Operation not permitted ... This question asked how to filter them out but I would like to figure out some way to gain permission to search everything on my disk. I don't plan to muck with Apple's private stuff directly but it might help me to figure out what I can do to free up the space. The du command is just an example. I have the same problems with find and ls and any other command that tries to inspect protected areas on the disk.
Asked by pedz (493 rep)
Jan 6, 2022, 02:29 PM
Last activity: May 6, 2024, 02:13 PM