Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
52
rated 0 times [  52] [ 0]  / answers: 1 / hits: 25939  / 3 Years ago, sun, november 14, 2021, 11:49:56

I have a folder ~/.dbus in my homefolder that is only read and writeable by root:



drwx------  3 root  root  4096 Feb 17 17:30 .
drwx------ 2 root root 4096 Feb 17 17:30 session-bus


Is this the correct setting? Or if not, how could that happen?


More From » permissions

 Answers
6

The reason for these being created with root ownership in the first place is usually the way sudo preserves some user environment.
ls: cannot access .gvfs: Permission denied



That folder .dbus and .cache with all it contents is supposed to be owned by the user whom the home directory belongs to.
It is usually safe to delete either, it will be recreated next time you login (it is just a cache that would have gone obsolete eventually).



# be careful what you type when you use rm -rf!
sudo rm -rf ~/.dbus


Keep in mind that .gvfs behaves somewhat special since it's a mount point (check the output of mount to confirm). As long as you have network folders mounted, don't touch it.


[#23966] Tuesday, November 16, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ideobedi

Total Points: 121
Total Questions: 108
Total Answers: 107

Location: United States Minor Outlying Island
Member since Sat, May 28, 2022
2 Years ago
;