After setting up Meteor to run on my PhpStorm in a Linux box, I could not get it to run to debug. I could run it in a Terminal but not from PhpStorm.
I would get
mongo exit code 100
and an
EACCES error on ~/.meteorsession
Researched but did not find anything helpful.
Discovered some of the permissions were not correct after doing an ls -al and seeing root listed as user and group in the listing for some of the files.
Ran
sudo chown jer0dh:jer0dh ~/.meteorsession
and this changed it to my username. Had other errors with the Mongdb so found that ~/.meteor/local/db had root listed as username and group. I did the following to change permissions for everything under the db directory.
sudo chown jer0dh:jer0dh ~/.meteor/local/db -R
This worked!