threads / discuss / 46576

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

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

## tl;dr

2 messages between Aug 12, 2017 and Aug 12, 2017.

replies: 1people: 2as markdown or json

KES· Aug 12, 2017, 13:22 UTC · lore
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· Aug 12, 2017, 15:59 UTC · re: KES · lore

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

On Sat, Aug 12, 2017 at 04:22:08PM +0300, KES wrote:
Show 10 quoted lines
> 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

← back to recent threads