Terminal must have Full Disk Access System Settings > Privacy & Security > Full Disk Access; sudo alone does not bypass this protection