1

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?

IMSoP
  • 89,526
  • 13
  • 117
  • 169
Havock
  • 45
  • 1
  • 10
  • Does the Snips server run under user `` or a different user? In the latter case it certainly doesn't have access to `/home//`. – phd May 01 '19 at 18:39
  • I'm not sure which user the skill install is running under. I have a feeling it's running under my user as later on during the install it can't create the venv directory as it doesn't have the required permissions. – Havock May 01 '19 at 19:02

2 Answers2

4

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

source

wisbucky
  • 33,218
  • 10
  • 150
  • 101
0

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

sapna
  • 1