# Error: Permition denied. git should not try to access root account if I work under common user

2 messages from 2017-08-12 to 2017-08-12. Participants: KES, brian m. carlson.
Thread: https://gitlist.dev/t/46576

## KES, 2017-08-12 13:22

Subject: Error: Permition denied. git should not try to access root account if I work under common user
Message-ID: <273951502544128@web54o.yandex.ru>
URL: https://gitlist.dev/e/273951502544128%40web54o.yandex.ru

```
Hi. 

When I use `git pull -v --rebase` command under user I got this error:

POST git-upload-pack (947 bytes)
POST git-upload-pack (452 bytes)
remote: warning: unable to access '/root/.config/git/attributes': Permission denied
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 3), reused 0 (delta 0)
Unpacking objects: 100% (4/4), done.
From https://xxxx/gitdev/main
   b446c31..f275d62  master     -> origin/master
 = [up to date]      buy_dev    -> origin/buy_dev
Created autostash: 48d1246
HEAD is now at 3ecd306 Do not guard by default
Changes from b446c313d9a9caccfeb34ef2c521c4ac03c24c6e to f275d62585211806e8e0b2350bbf4f0f3025da79:
 conf/app.staging.conf | 1 +
 1 file changed, 1 insertion(+)
First, rewinding head to replay your work on top of it...
Applying: BUGFIX: Do not fall if we are creating new database
Applying: Do not pull data from server. Do not count all rows
Applying: Do not guard by default
Applied autostash.


git should not try to access root account if I work under common user

```

## brian m. carlson, 2017-08-12 15:59

Subject: Re: Error: Permition denied. git should not try to access root account if I work under common user
Message-ID: <20170812155908.yadkqwfjrxsgmljp@genre.crustytoothpaste.net>
URL: https://gitlist.dev/e/20170812155908.yadkqwfjrxsgmljp%40genre.crustytoothpaste.net
In-Reply-To: <273951502544128@web54o.yandex.ru>

```
On Sat, Aug 12, 2017 at 04:22:08PM +0300, KES wrote:
> Hi.
> 
> When I use `git pull -v --rebase` command under user I got this error:
> 
> POST git-upload-pack (947 bytes)
> POST git-upload-pack (452 bytes)
> remote: warning: unable to access '/root/.config/git/attributes': Permission denied
> remote: Counting objects: 4, done.
> remote: Compressing objects: 100% (4/4), done.
> remote: Total 4 (delta 3), reused 0 (delta 0)

These messages are from the remote side (the machine you're pulling
from).  Something there is telling git that /root is the proper home
directory, and it's trying to read that file.

You should find out whoever is running that remote server and tell them
that their server is misconfigured.
-- 
brian m. carlson / brian with sandals: Houston, Texas, US
https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: https://keybase.io/bk2204

```
