{"thread":{"id":"61563","subject":"Git update 1:2.34.1-1ubuntu1.11 for Ubuntu Server 22.04 breaks access to shared repositories","startedAt":"2024-05-30T02:39:50Z","lastAt":"2024-05-30T02:39:50Z","messageCount":1,"participants":["Lou Rech"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"495881","messageId":"ME3PR01MB7142AD152E97A36EFFB5A8AFACF32@ME3PR01MB7142.ausprd01.prod.outlook.com","threadId":"61563","inReplyTo":null,"subject":"Git update 1:2.34.1-1ubuntu1.11 for Ubuntu Server 22.04 breaks access to shared repositories","fromName":"Lou Rech","fromEmail":"lrech@hardcat.com","sentAt":"2024-05-30T02:39:45Z","receivedAt":"2024-05-30T02:39:50Z","isPatch":false,"sender":{"key":"lrech@hardcat.com","avatar":null},"body":"Hi,\n\nAs of this latest update to Git on our in-house repository server we can't perform any git commands to our repositories. All commands report \"detected dubious ownership in repository\".\n\nThese shared repositories have been in place for years and now can't be accessed.\n\nWe even created a new shared repository owned by our Support person 'awilson' to test this behaviour. Only the owner of the repository can perform any commands on the repository.\n\nCase 1 - Clone new repository owned by 'awilson':\n\nGit repository created by 'awilson' with the following commands:\nmkdir awlr.git\ncd awlr.git\ngit init --bare --shared\nchgrp -R 'Git Users' .\nchmod -R g+rwX .\nfind . -type d -exec chmod g+s '{}' +\ncd ../\n\nGit clone attempted by user 'lrech':\ngit clone ssh://reposerver/usr/gitroot/awlr.git\nCloning into 'awlr'...\nfatal: detected dubious ownership in repository at '/usr/gitroot/awlr.git'\nTo add an exception for this directory, call:\n\n        git config --global --add safe.directory /usr/gitroot/awlr.git\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n\nConversely, all other repositories were created by me, 'lrech', in the same manner as outlined above and can no longer be accessed by anyone expect me.\n\nCase 2 - Perform git fetch on existing repository owned by 'lrech', fetch performed by 'awilson'.\n\nC:\\work\\Tiger> git fetch\nfatal: detected dubious ownership in repository at '/usr/gitroot/Tiger.git'\nTo add an exception for this directory, call:\n\n        git config --global --add safe.directory /usr/gitroot/Tiger.git\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n\nPlease let me know if there are any further details you require for this issue.\n\nRegards\n\nLou Rech.\n\n"}]}