Code: Select all
find $HOME -not -user $USER -exec ls -lad {} \;
Code: Select all
find $HOME -not -user $USER -exec ls -lad {} \;
drwx------ 2 root root 4096 Jul 25 14:03 /home/dave/.cache/dconf
find: `/home/dave/.cache/dconf': Permission denied
drwx------ 2 root root 4096 Jul 25 14:04 /home/dave/.config/leafpad
find: `/home/dave/.config/leafpad': Permission denied
-rw-r--r-- 1 root root 66 Jul 25 15:07 /home/dave/.selected_editor
EDIT: I've found two threads saying ~/.cache/dconf and its contents should NOT be owned by root. One of them is a bug report on Ubuntu from a couple of years ago that "Expired" saying that merely using gedit changes the ownership:
https://bugs.launchpad.net/ubuntu/+sour ... ug/1315835
For ~/.config/leafpad, I found one thread saying it shouldn't be owned by root.
For ~/.selected_editor, I've found nothing.
On the assumption that I should be the owner of everything in my home directory, how do I take ownership of those directories/files? Would this be correct/safe?
Code: Select all
sudo chown $USER:$USER -R ~