Okay, so...
I messed up. Bad.
For a while now I've been using sudo pluma to edit system files and the other day on IRC @Akuli kind of set me straight:
<bro_marc> guys, how to i make the grub menu appear on boot instead of this grey box?
<bro_marc> do*
<ouroumov_> hey bro_marc
<ouroumov_> bro_marc, you mean you can`t see grub menu items?
<bro_marc> i only get a grey box
<bro_marc> covering the whole screen
<ouroumov_> bro_marc: sudo pluma /etc/default/grub
<ouroumov_> Uncomment line 20 GRUB_TERMINAL=console
<ouroumov_> save, close, then: sudo update-grub
<bro_marc> alright, i'll try
* bro_marc (~marc@2a02:8108:45bf:c3f0:4d53:ac02:2124:2124) has quit (Remote host closed the connection)
<Akuli> ouroumov_, sudo nano or gksudo pluma, not sudo pluma
<nomic> pluma = gedit
<nomic> rite
<Akuli> yes nomic
<nomic> figured out that gedit didn't work anymore on mate
<ouroumov_> Akuli, are you saying that because it's a security issue Akuli ? Because it works.
<Akuli> ouroumov_, gui apps like to change ownership of stuff in your home folder to root when you run them with plain sudo
<ouroumov_> Seriously? Could that be the cause of ~/.config/cache being owned by root Akuli ?
<Akuli> yes
<ouroumov_> Holly damn.
<ouroumov_> Akuli, are you running Ubuntu MATE 16.04 ?
<Akuli> you can run `sudo chown -R $USER ~` if you have trouble with it :)
<Akuli> ouroumov_, devuan 8
<Akuli> an important note: both $USER and ~ are evaluated before the command is given to sudo
<Akuli> try this out: echo $USER ~
<ouroumov_> Damn, I'll need to test this
* skeletonkey ([email protected]) has quit (Quit: leaving)
<Akuli> i'm not actually sure how much truth there is in that ownership changing myth, but once some of my files were owned by root and some by me after running gui apps as root
<Akuli> with sudo
<ouroumov_> I'll have to check the permissions on a fresh install
<ouroumov_> If I've been recommending something dangerous to people that needs to stop.
<Akuli> i just use nano :)
<Akuli> anyone can learn it in just a few seconds, its so simple
<Akuli> awesome for quick config file editing stuff
This is definitively the cause of those files owned by root.
So yeah, I'm gonna chown those files back to my user on my machines, and never again tell to people to use sudo pluma.