I was trying to create a default configuration file for activemq with the command
sudo ./activemq setup [ /etc/default/activemq | /home/leo/.activemqrc ]`
Then recieved this message:
INFO: It's recommend to limit access to '/etc/default/activemq' to the priviledged user
INFO: (recommended: chown 'root':nogroup '/etc/default/activemq'; chmod 600 '/etc/default/activemq')
Then I changed the owner and permissions of both /etc/default/activemq
and /home/leo/.activemqrc
with
chown root:nogroup ~/activemqrc; chmod 600 ~/.activemqrc
Changing the permissions of ~/.activemqrc was undoubtedly a big mistake. I took a look at the permissions on each file and folder on my Home and it says:
The permissions of "Everything" could not be determined
I no longer can access the directories and files in home.
Following the answer from Permission denied on ~ even though owner listed as me I ran the following command:
find ~ -type d -exec chmod 750 \;
and got this output:
find: pred.c:1932: launch: Assertion `starting_desc >= 0' failed.
Is there any way to get back my default configurations?
EDIT
I then tried this:
sudo chown root:root ~/
got no output and then
sudo chmod -R 777 ~/
That pretty much solved my problem but for two files which returned
chmod: cannot access `/home/leo/.gvfs': Permission denied
chmod: cannot access `/home/leo/.config/google-chrome/.com.google.Chrome.Z07tM9': No such file or directory.
THAT WAS JUST A BAD IDEA.