git insufficient permission fo

2017-12-27  本文已影响0人  MarginHu
[margin@cloud-sz-kolla-2 osp-kolla]$ git commit 
error: insufficient permission for adding an object to repository database .git/objects
error: Error building trees
[margin@cloud-sz-kolla-2 osp-kolla]$ ls -alh .git/objects*
total 24K
drwxrwxr-x 242 margin margin 4.0K Dec 20 22:03 .
drwxrwxr-x   8 margin margin  220 Dec 27 11:22 ..
drwxrwxr-x   2 margin margin  190 Nov 17 11:36 00
drwxrwxr-x   2 margin margin   52 Oct  7 21:11 01
drwxrwxr-x   2 margin margin  282 Nov 17 17:04 02
drwxrwxr-x   2 margin margin  282 Nov 17 17:11 03
drwxrwxr-x   2 margin margin   98 Dec 20 22:03 04
drwxrwxr-x   2 margin margin  190 Oct  7 10:10 05
drwxrwxr-x   2 margin margin  236 Oct  7 21:06 06
drwxrwxr-x   2 margin margin   98 Oct  9 18:22 07
drwxrwxr-x   2 margin margin   52 Oct 23 16:53 08
drwxrwxr-x   2 margin margin   52 Aug 31 18:16 09
drwxrwxr-x   2 margin margin  144 Nov 17 17:10 0a
drwxrwxr-x   2 margin margin  144 Nov 17 11:35 0c
drwxrwxr-x   2 margin margin  190 Oct 20 22:46 0d
drwxrwxr-x   2 margin margin  236 Oct 24 20:56 0e
drwxrwxr-x   2 margin margin  190 Oct 20 22:46 0f
drwxrwxr-x   2 margin margin  190 Dec 15 15:30 10
drwxrwxr-x   2 margin margin   98 Oct  7 15:33 11
drwxrwxr-x   2 margin margin   98 Nov  5 22:23 12
drwxrwxr-x   2 margin margin  144 Oct  8 07:18 13
drwxrwxr-x   2 margin margin  144 Oct 24 23:16 15
drwxrwxr-x   2 margin margin   52 Dec 15 15:30 17
drwxrwxr-x   2 margin margin  236 Oct  7 21:06 18
drwxrwxr-x   2 margin margin   98 Dec 15 15:58 19
drwxrwxr-x   2 margin margin  144 Oct  7 15:33 1a
drwxrwxr-x   2 margin margin  282 Nov  5 09:54 1b
drwxrwxr-x   2 margin margin  144 Dec 20 22:03 1c
drwxrwxr-x   2 margin margin  144 Oct  9 18:17 1d
drwxrwxr-x   2 margin margin   98 Nov  5 22:23 1e
drwxrwxr-x   2 margin margin   52 Oct  7 21:45 20
drwxrwxr-x   2 margin margin   98 Dec 15 15:57 21
drwxrwxr-x   2 margin margin  144 Oct 20 22:47 22
drwxrwxr-x   2 margin margin  190 Nov  5 22:23 24
drwxrwxr-x   2 margin margin   52 Oct  7 21:11 25
drwxrwxr-x   2 margin margin  144 Oct  7 21:06 26
drwxrwxr-x   2 margin margin  144 Oct  7 15:33 27
drwxrwxr-x   2 margin margin  144 Nov 17 11:35 28
drwxrwxr-x   2 margin margin  144 Oct  7 21:11 29
drwxrwxr-x   2 margin margin  236 Dec 15 15:30 2a
drwxrwxr-x   2 margin margin   98 Oct 24 22:55 2b
drwxrwxr-x   2 margin margin   52 Nov  5 22:23 2c
drwxrwxr-x   2 margin margin   98 Oct  7 15:45 2d
drwxrwxr-x   2 margin margin  190 Oct 24 20:56 2e
drwxrwxr-x   2 margin margin  144 Nov 17 17:04 2f
drwxrwxr-x   2 margin margin  190 Nov 17 11:55 30
drwxrwxr-x   2 margin margin   98 Oct  2 20:13 31
drwxrwxr-x   2 margin margin   98 Sep 18 15:59 33
drwxrwxr-x   2 margin margin   98 Oct  9 19:33 34
drwxrwxr-x   2 margin margin  236 Oct  9 12:18 35
drwxrwxr-x   2 margin margin   98 Oct  7 15:46 36
drwxrwxr-x   2 margin margin  190 Nov 17 17:04 37
drwxrwxr-x   2 margin margin  144 Nov 17 17:04 38
drwxrwxr-x   2 margin margin  236 Nov 17 11:35 39
drwxrwxr-x   2 margin margin  144 Dec 15 15:32 3a
drwxrwxr-x   2 margin margin   52 Oct  7 15:32 3b
drwxrwxr-x   2 margin margin  236 Nov  5 09:54 3e
drwxrwxr-x   2 margin margin  144 Oct 24 20:56 3f
drwxrwxr-x   2 margin margin  190 Nov 17 11:36 40
drwxrwxr-x   2 margin margin   52 Oct 20 22:35 41
drwxrwxr-x   2 margin margin   98 Nov 17 17:10 42
drwxrwxr-x   2 margin margin   52 Sep 21 17:28 43
drwxrwxr-x   2 margin margin  236 Oct  9 18:22 44
drwxrwxr-x   2 margin margin   98 Nov 17 17:10 45
drwxrwxr-x   2 margin margin  144 Oct  3 12:41 46
drwxrwxr-x   2 margin margin  190 Oct  9 22:45 47
drwxrwxr-x   2 margin margin  144 Oct 24 22:55 48
drwxrwxr-x   2 margin margin   98 Nov 17 17:10 49
drwxrwxr-x   2 margin margin 4.0K Nov 17 11:54 4a
drwxrwxr-x   2 margin margin  236 Dec 20 22:03 4b
drwxrwxr-x   2 margin margin  144 Nov 17 11:54 4d
drwxrwxr-x   2 margin margin  190 Oct 24 20:56 4e
drwxrwxr-x   2 margin margin   98 Oct  7 21:06 4f
drwxrwxr-x   2 margin margin  190 Oct  9 22:45 50
drwxrwxr-x   2 margin margin  144 Dec 15 15:32 51
drwxrwxr-x   2 margin margin 4.0K Nov 17 11:54 52
drwxrwxr-x   2 margin margin   52 Aug 31 18:14 53
drwxrwxr-x   2 margin margin  236 Nov 17 11:55 54
drwxrwxr-x   2 margin margin  144 Oct  7 11:22 55
drwxrwxr-x   2 margin margin   98 Nov 17 11:36 56
drwxrwxr-x   2 margin margin   98 Oct  8 08:34 57
drwxrwxr-x   2 margin margin  144 Nov 17 11:54 58
drwxrwxr-x   2 margin margin   98 Oct 24 22:55 59
drwxrwxr-x   2 margin margin  282 Nov 17 17:04 5a
drwxrwxr-x   2 margin margin  328 Nov  6 09:54 5b
drwxrwxr-x   2 margin margin  190 Oct  9 18:22 5c
drwxrwxr-x   2 margin margin  190 Oct  9 18:22 5d
drwxrwxr-x   2 margin margin  190 Oct  3 11:18 5e
drwxrwxr-x   2 margin margin   98 Oct  7 21:06 5f
drwxrwxr-x   2 margin margin 4.0K Oct  9 12:18 60
drwxrwxr-x   2 margin margin  144 Nov 17 17:04 61
drwxrwxr-x   2 margin margin   52 Aug 29 16:04 62
drwxrwxr-x   2 margin margin  236 Oct 24 23:16 63
drwxrwxr-x   2 margin margin   52 Oct  9 19:37 65
drwxrwxr-x   2 margin margin  328 Nov 17 11:35 66
drwxrwxr-x   2 margin margin  236 Oct 20 22:46 67
drwxrwxr-x   2 margin margin   98 Dec 15 15:57 69
drwxrwxr-x   2 margin margin   98 Oct 24 23:16 6a
drwxrwxr-x   2 margin margin  144 Oct  9 18:19 6b
drwxrwxr-x   2 margin margin  282 Oct 24 20:56 6c
drwxrwxr-x   2 margin margin  144 Nov 17 11:36 6d
drwxrwxr-x   2 margin margin  190 Nov 17 11:35 6e
drwxrwxr-x   2 margin margin  190 Nov 17 17:10 6f
drwxrwxr-x   2 margin margin  236 Oct  9 22:45 70
drwxrwxr-x   2 margin margin  190 Oct  7 10:19 71
drwxrwxr-x   2 margin margin   98 Sep 21 17:28 72
drwxrwxr-x   2 margin margin  190 Dec 15 15:57 73
drwxrwxr-x   2 margin margin  328 Nov  5 09:55 74
drwxrwxr-x   2 margin margin  236 Oct  7 15:46 75
drwxrwxr-x   2 margin margin  282 Oct 26 06:31 76
drwxrwxr-x   2 margin margin  190 Nov 17 11:35 77
drwxrwxr-x   2 margin margin  144 Nov 17 17:05 78
drwxrwxr-x   2 margin margin  236 Nov  5 22:23 79
drwxrwxr-x   2 margin margin  190 Oct  7 21:45 7a
drwxrwxr-x   2 margin margin   98 Nov  6 09:53 7b
drwxrwxr-x   2 margin margin  144 Oct  7 21:09 7c
drwxrwxr-x   2 margin margin  144 Oct  7 10:19 7d
drwxrwxr-x   2 margin margin  282 Oct 26 06:31 7e
drwxrwxr-x   2 margin margin  190 Oct 26 06:30 7f
drwxrwxr-x   2 margin margin   52 Aug 18 17:24 80
drwxrwxr-x   2 margin margin  236 Dec 15 15:58 81
drwxrwxr-x   2 margin margin   52 Oct  8 07:18 82
drwxrwxr-x   2 margin margin   52 Sep 12 22:57 83
drwxrwxr-x   2 margin margin  236 Nov  6 09:53 85
drwxrwxr-x   2 margin margin  236 Nov 17 17:04 86
drwxrwxr-x   2 margin margin  144 Oct  9 18:22 87
drwxrwxr-x   2 margin margin  328 Dec 15 15:58 88
drwxrwxr-x   2 margin margin  190 Oct 24 20:57 89
drwxrwxr-x   2 margin margin  282 Dec 15 15:30 8a
drwxrwxr-x   2 margin margin   52 Oct  7 15:33 8b
drwxrwxr-x   2 margin margin 4.0K Nov  6 09:53 8c
drwxrwxr-x   2 margin margin  144 Oct 20 22:48 8d
drwxrwxr-x   2 margin margin   98 Oct  7 11:22 8e
drwxrwxr-x   2 margin margin   52 Oct  7 15:33 8f
drwxrwxr-x   2 margin margin  236 Oct  7 21:11 90
drwxrwxr-x   2 margin margin  190 Dec 15 15:58 91
drwxrwxr-x   2 margin margin  144 Oct  7 21:06 92
drwxrwxr-x   2 margin margin   98 Sep  6 15:04 93
drwxrwxr-x   2 margin margin   52 Nov 17 11:35 94
drwxrwxr-x   2 margin margin  144 Oct  7 21:09 95
drwxrwxr-x   2 margin margin  190 Oct  9 18:22 96
drwxrwxr-x   2 margin margin   52 Sep  6 15:05 97
drwxrwxr-x   2 margin margin  144 Oct  7 15:45 98
drwxrwxr-x   2 margin margin   98 Nov 17 17:04 99
drwxrwxr-x   2 margin margin   98 Oct  9 18:22 9a
drwxrwxr-x   2 margin margin   52 Dec 20 22:03 9b
drwxrwxr-x   2 margin margin   98 Nov 17 17:04 9d
drwxrwxr-x   2 margin margin  236 Oct 24 22:55 9e
drwxrwxr-x   2 margin margin  190 Oct 12 09:18 9f
drwxrwxr-x   2 margin margin  328 Dec 15 15:30 a0
drwxrwxr-x   2 margin margin  282 Dec 15 15:58 a1
drwxrwxr-x   2 margin margin   98 Oct  7 21:45 a2
drwxrwxr-x   2 margin margin   52 Oct 11 18:12 a3
drwxrwxr-x   2 margin margin  144 Oct  7 15:33 a5
drwxrwxr-x   2 margin margin  190 Oct  2 21:10 a6
drwxrwxr-x   2 margin margin  144 Nov  6 09:53 a7
drwxrwxr-x   2 margin margin  236 Oct 24 23:16 a8
drwxrwxr-x   2 margin margin   98 Nov  6 09:53 a9
drwxrwxr-x   2 margin margin  190 Oct 24 20:56 aa
drwxrwxr-x   2 margin margin   98 Oct 24 20:56 ab
drwxrwxr-x   2 margin margin   98 Oct  7 10:19 ac
drwxrwxr-x   2 margin margin  144 Oct  9 18:22 ad
drwxrwxr-x   2 margin margin  144 Oct 24 22:55 ae
drwxrwxr-x   2 margin margin   98 Oct  3 11:17 af
drwxrwxr-x   2 margin margin  144 Dec 15 15:30 b0
drwxrwxr-x   2 margin margin   98 Dec 15 15:58 b1
drwxrwxr-x   2 margin margin   52 Oct 20 22:35 b2
drwxrwxr-x   2 margin margin  190 Oct 23 16:53 b3
drwxrwxr-x   2 margin margin  190 Oct 20 22:46 b4
drwxrwxr-x   2 margin margin   52 Sep  1 12:38 b5
drwxrwxr-x   2 margin margin  190 Nov 17 11:55 b6
drwxrwxr-x   2 margin margin   98 Nov 17 11:35 b7
drwxrwxr-x   2 margin margin  282 Nov 17 11:54 b8
drwxrwxr-x   2 margin margin  190 Nov 17 11:36 b9
drwxrwxr-x   2 margin margin  328 Dec 15 15:32 ba
drwxrwxr-x   2 margin margin   98 Oct  7 10:10 bb
drwxrwxr-x   2 margin margin  190 Nov  6 09:53 bc
drwxrwxr-x   2 margin margin  190 Oct  9 22:45 bd
drwxrwxr-x   2 margin margin  190 Nov 17 17:04 bf
drwxrwxr-x   2 margin margin   52 Nov  5 09:55 c0
drwxrwxr-x   2 margin margin   98 Dec 27 11:20 c1
drwxrwxr-x   2 margin margin  190 Nov  5 09:55 c2
drwxrwxr-x   2 margin margin   52 Aug 31 18:14 c3
drwxrwxr-x   2 margin margin  144 Nov 17 11:54 c4
drwxrwxr-x   2 margin margin  282 Oct 24 22:55 c5
drwxrwxr-x   2 margin margin  190 Sep 18 09:20 c6
drwxrwxr-x   2 margin margin  144 Nov 17 11:36 c7
drwxrwxr-x   2 margin margin  190 Nov 17 17:04 c8
drwxrwxr-x   2 margin margin   98 Dec 20 22:03 c9
drwxrwxr-x   2 margin margin   52 Oct  9 18:22 ca
drwxrwxr-x   2 margin margin   52 Aug 29 16:00 cb
drwxrwxr-x   2 margin margin  144 Nov 17 11:35 cc
drwxrwxr-x   2 margin margin   98 Oct 23 16:53 cd
drwxrwxr-x   2 margin margin  144 Oct 20 22:47 cf
drwxrwxr-x   2 margin margin   98 Oct  7 19:18 d0
drwxrwxr-x   2 margin margin  282 Dec 15 15:32 d1
drwxrwxr-x   2 margin margin  328 Dec 20 22:03 d2
drwxrwxr-x   2 margin margin  144 Oct  9 22:45 d3
drwxrwxr-x   2 margin margin   98 Oct  9 18:22 d4
drwxrwxr-x   2 margin margin  236 Oct 24 23:16 d5
drwxrwxr-x   2 margin margin   98 Oct 24 20:56 d6
drwxrwxr-x   2 margin margin   52 Oct  8 07:18 d7
drwxrwxr-x   2 margin margin  190 Dec 15 15:32 d8
drwxrwxr-x   2 margin margin   98 Oct  8 19:16 d9
drwxrwxr-x   2 margin margin  282 Oct  9 18:20 da
drwxrwxr-x   2 margin margin  190 Nov 17 17:04 db
drwxrwxr-x   2 margin margin  144 Oct  7 21:45 dc
drwxrwxr-x   2 margin margin   98 Oct 24 20:56 dd
drwxrwxr-x   2 margin margin  144 Oct  7 21:11 df
drwxrwxr-x   2 margin margin  190 Oct  8 08:34 e0
drwxrwxr-x   2 margin margin  328 Oct 24 22:55 e1
drwxrwxr-x   2 margin margin   98 Nov 17 11:35 e2
drwxrwxr-x   2 margin margin  144 Oct  7 21:06 e4
drwxrwxr-x   2 margin margin  190 Nov  6 09:53 e5
drwxrwxr-x   2 margin margin   98 Oct 24 23:16 e6
drwxrwxr-x   2 margin margin   98 Nov  6 09:53 e7
drwxrwxr-x   2 margin margin   98 Oct  3 11:17 e8
drwxrwxr-x   2 margin margin  144 Oct  7 15:45 e9
drwxrwxr-x   2 margin margin  144 Oct  9 19:37 ea
drwxrwxr-x   2 margin margin  144 Nov 17 11:35 eb
drwxrwxr-x   2 margin margin  190 Nov 17 11:35 ec
drwxrwxr-x   2 margin margin   98 Oct 24 22:55 ed
drwxrwxr-x   2 margin margin   98 Dec 15 15:58 ee
drwxrwxr-x   2 margin margin  190 Dec 15 15:32 ef
drwxrwxr-x   2 margin margin  190 Oct 24 22:55 f0
drwxrwxr-x   2 margin margin  144 Nov 17 17:04 f1
drwxrwxr-x   2 margin margin  282 Nov 17 17:10 f2
drwxrwxr-x   2 margin margin  282 Oct 20 22:46 f3
drwxrwxr-x   2 margin margin   52 Sep 15 08:37 f4
drwxrwxr-x   2 margin margin  190 Dec 20 22:04 f5
drwxrwxr-x   2 margin margin  190 Nov 17 11:35 f6
drwxrwxr-x   2 margin margin  144 Oct  7 10:11 f7
drwxrwxr-x   2 margin margin  236 Oct  7 10:10 f8
drwxrwxr-x   2 margin margin  190 Dec 27 11:20 f9
drwxrwxr-x   2 margin margin  144 Oct  7 21:11 fa
drwxrwxr-x   2 margin margin  144 Nov 17 11:36 fb
drwxr-xr-x   2 root   root     52 Oct  9 18:20 fc
drwxrwxr-x   2 margin margin  190 Oct 11 18:12 fd
drwxrwxr-x   2 margin margin  236 Nov 17 11:35 fe
drwxrwxr-x   2 margin margin   98 Oct  8 08:34 ff
drwxrwxr-x   2 margin margin    6 Aug 17 15:59 info
drwxrwxr-x   2 margin margin  236 Dec 12 10:08 pack
[margin@cloud-sz-kolla-2 osp-kolla]$ ls
collect_info.sh  disk-image  kolla-ansible  kolla-build  Readme.md  stale
[margin@cloud-sz-kolla-2 osp-kolla]$ chown margin:margin .git/*  -R 
chown: changing ownership of ‘.git/objects/5c/8112642e8aa5dd647415e458ea17db8ac657c1’: Operation not permitted
chown: changing ownership of ‘.git/objects/b6/b5983ec3b53088cb3fdd18e9e83e79e8261d3c’: Operation not permitted
chown: changing ownership of ‘.git/objects/28/f67fa065ea461d4cbda2b7ff2e0aab705b24bd’: Operation not permitted
chown: changing ownership of ‘.git/objects/0e/7035e8a774c359f476b751b45413f82c790290’: Operation not permitted
chown: changing ownership of ‘.git/objects/6b/bde00a3d1a7af74ec71d3e01a502c4fe98e85a’: Operation not permitted
chown: changing ownership of ‘.git/objects/da/50d3ac3707a7d575340114f455aecb0755f629’: Operation not permitted
chown: changing ownership of ‘.git/objects/d1/8b8ed4901dced0d5fcef7f380aebcc7f8cae9e’: Operation not permitted
chown: changing ownership of ‘.git/objects/4e/c8ec2581bfe418597d57c32bc610945c50cf4d’: Operation not permitted
chown: changing ownership of ‘.git/objects/1d/005d333bda026036ce04081ec3f17ebc921c54’: Operation not permitted
chown: changing ownership of ‘.git/objects/fc/08f3b77deff341d8bc770f415a8fa67fc21c41’: Operation not permitted
chown: changing ownership of ‘.git/objects/fc’: Operation not permitted

Solution

[margin@cloud-sz-kolla-2 osp-kolla]$ sudo chown margin:margin .git/*  -R 
[margin@cloud-sz-kolla-2 osp-kolla]$ git commit 
[master 066416d] connect netapp successfully.
 7 files changed, 88 insertions(+), 16 deletions(-)
 create mode 100644 kolla-ansible/ansible/roles/manila/templates/manila_huawei_conf.xml.j2
[margin@cloud-sz-kolla-2 osp-kolla]$ 
[margin@cloud-sz-kolla-2 osp-kolla]$ 

[margin@cloud-sz-kolla-2 osp-kolla]$ git status 
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#   (use "git push" to publish your local commits)
#
nothing to commit, working directory clean
上一篇下一篇

猜你喜欢

热点阅读