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?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
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
.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.