The title gives it away, I suppose.
Here's the deal:
MacOS switched my /data/db folder, which is used by MongoDB, which I need to get a ton of work done, to read-only file system. Basically happened overnight.
ls -lO /data returns the following:
drwxr-xr-x 182 root admin - 5824 Jul 11 17:33 db
Trying to run
sudo chmod -R 777 $USER /data returns the following:
chmod: Unable to change file mode on /data/db/index-32-577782821146278306.wt: Read-only file system for a total of A LOT of entries.
I presume it's the SIP that's causing this. I tried disabling it in the recovery mode by running
csrutil disable. That did disable it, but still didn't let me change my permissions.
I'm all out of ideas as to what could be happening. Perhaps my account is broken?