“访问被拒绝”在成功的 Git 推送期间

发布于 2025-01-08 17:18:42 字数 849 浏览 1 评论 0原文

在 git 推送到远程期间,我总是收到“访问被拒绝”的消息,即使推送工作正常。

这是在 Windows 环境中使用 Tortoise Git。我们的服务器是 Centos 5.4,使用 winbind 与我们的 Windows Active Directory 域集成并自动创建用户 - 这似乎运行良好。这些存储库位于“git”用户下,该用户与 winbind 创建的“staff”共享一个组。存储库上的 Umask 002 允许正确共享新文件。据我所知,组权限工作正常。

我猜想这是一些非关键的 git 功能,比如日志记录,它失败了,但我担心有一天它会回来咬我。我已经搜索了日志条目,但找不到任何可以引导我发现被拒绝的内容的内容。

git.exe  push --progress  "origin-pip.jones" master:master

Counting objects: 30, done.
Compressing objects: 100% (19/19)
Writing objects: 100% (19/19)
Writing objects: 100% (19/19), 2.07 KiB, done.
Access denied

To  ssh://[email protected]/var/git/repositories/Products/Product.git
4b3e259..8fe7b0a  master -> master
Success

提前致谢。

I always get an "Access Denied" during a git push to remote, even though the push works fine.

This is using Tortoise Git from a Windows box. Our server is Centos 5.4 integrated with our Windows Active Directory domain using winbind with automatic user creation - which seems to work well. The repositories are under a 'git' user which shares a group with the 'staff' which are created by winbind. Umask 002 on the repositories allows new files to be shared correctly. As far as I can see the group permissions work fine.

I'm presuming it's some non-critical git function like logging which is failing but I am worried it will come back to bite me one day. I've searched for log entries but can't find anything to lead me to what's being denied.

git.exe  push --progress  "origin-pip.jones" master:master

Counting objects: 30, done.
Compressing objects: 100% (19/19)
Writing objects: 100% (19/19)
Writing objects: 100% (19/19), 2.07 KiB, done.
Access denied

To  ssh://[email protected]/var/git/repositories/Products/Product.git
4b3e259..8fe7b0a  master -> master
Success

thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文