I'm in one of those "... but it worked yesterday" situations.
Seems like I suddenly don't have permission to access / write to my home directory (a local directory on the c:drive). I've not changed my setup at all, save for writing to my /home/ folder from Windows (I created and saved an org file using Notepad)
I'm using org-mode in DooM emacs to take notes for work (making this all the more frustrating) via remote access from WSL (Ubuntu) on a Win 10 machine.
On startup I get a warning like:
Warning (initialization): An error occured while loading '/home/user/.emacs.d/init.el': Error in private config: config.el, (file-error Opening input file Permission denied /home/user/org_roam/A_RANDOM_ORG_FILE
There is a clue here as "A_RANDOM_ORG_FILE" was a file I was too lazy to use emacs for, so made in Notepad in Win10 and saved to my home/org_roam/ folder
So:
emacs --debug-init Debugger entered--Lisp error: (file-error "Opening input file" "Permission denied" ...
When I try to write the error buffer to a file (because WSL cut-paste baffles me), I get:
/home/ write protected
So I'm here to ask: what? why? Given the generic-ness of the problem it's hard to google.