5
在samba共享上调试git repo权限
我已经使用samba共享克隆了git仓库大约一年了,除了设置方面的一些问题外,没有任何问题。最近,我尝试将一些文件添加到现有存储库中,并惊讶地看到“权限被拒绝”错误。 现在我可以初始化空仓库,但是当我尝试运行时strace git add test,我得到: open(".git/objects/info/alternates", O_RDONLY|O_NOATIME) = -1 ENOENT (No such file or directory) access(".git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391", F_OK) = -1 ENOENT (No such file or directory) open(".git/objects/e6/tmp_obj_GvIyn7", O_RDWR|O_CREAT|O_EXCL, 0444) = -1 EACCES (Permission denied) write(2, "error: insufficient permission f"..., 88error: insufficient permission for adding an object to repository database .git/objects ) …