Reputation: 55
I am setting up a Snips server on Ubuntu 18.04.1. When I try to install a skill I get this message but it doesn't happen when I git clone.
warning: unable to access
/home/<user>/.config/git/attributes
: Permission denied
I went to check the permissions for /git/ and found that the /.config/git directory doesn't exist.
I cloned a repo thinking it might create the /git directory but it didn't.
I created the /git/ folder and got the same message
I also did: touch attributes
and the error persisted.
I checked root/.config as recommended in another similar question but there is no .config in /root
I tried git config -l --show-origin
but I got no results
Is this a problem or can I safely ignore it?
How can I resolve this?
Upvotes: 1
Views: 4584
Reputation: 11
Solution:
For this go to terminal
just run command : sudo chmod 755 /Users/your-username/.config
in your case: sudo chmod 755 /home/your-username/.config
Upvotes: 0
Reputation: 37807
Check the permission of ~/.config
directory. It may have incorrectly been set to root
if you previously ran a command with sudo
that created the ~/.config
dir (such as sudo htop
).
ls -ld ~/.config
# if the owner is root, then change the owner to your user
sudo chown -R $USER ~/.config
Upvotes: 5