I'm working on Ubuntu 18.04.01
using Guake
terminal and zsh
.
Every time I run a command in terminal I get this warning after executing this command.
Could not open directory '.dbus/': Permission denied
I noticed having this warning after installing zsh
.
- What does it mean?
- How can I solve this warning?
It seems like your
~/.dbus/
folder is owned byroot
instead of by your own user.If this is the case, you can:
Remove that folder, using:
Or:
Change the ownership to your-username / your-user-group using:
Note: replace
your-user-name.your-user-group-name
with the actual values, e.g. if your user issal
and your group is alsosal
than it will be:sal.sal
As @Pablo Bianchi added in the comments below,
$USER
environment variable holds your-user-name (and in Ubuntu your-group-name is usually equal to your username) hence in most cases you can run the following command:More info regarding Ubuntu environment variables can be found here