git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: gitk doesn't work w/o sudo.

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 20, 2009, 17:16 UTC
Message-ID
<alpine.DEB.1.00.0901201815010.5159@intel-tinevez-2-302>
In-Reply-To
<c94f8e120901200851n21c6d67r3c43e3efd435e3db@mail.gmail.com>
Hi,
On Tue, 20 Jan 2009, Dilip M wrote:
Show 24 quoted lines
> On Tue, Jan 20, 2009 at 1:42 PM, Brian Foster
> <brian.foster@innova-card.com> wrote:
> > On Monday 19 January 2009 15:37:06 Dilip M wrote:
> >> On Mon, Jan 19, 2009 at 5:29 PM, Reece Dunn <msclrhd@googlemail.com> wrote:
> >> > 2009/1/19 Dilip M <dilipm79@gmail.com>:
> >> >> ..I recently install GIT on Ubuntu (hardy) box....I am able to use
> >> >> 'gitk' only If I do 'sudo'. Without 'sudo' it complains 'repository
> >> >> not found'
> >> >
> >> > Who is the owner of the repository directory (and the .git directory)
> >> > and what are the permissions on the directory?  [ ... ]
> >>
> >> dm-laptop:~/repos/atria> id -a
> >> uid=1000(dm) gid=1000(dm)  [ ... ]
> >> dm-laptop:~/repos/atria> ls -lh .git/
> >>[... all looks Ok ...]
> >
> >  repeating Reece's question, what is the permissions/owner
> >  _of_the_directory_which_contains_ the '.git/' directory?
> >  I can reproduce this behaviour (git 1.6.0.4) simply by
> >  denying myself search (née execute) permission on that
> >  directory, for entirely obvious reasons.
> 
> It's the same issue....Any ENV variable I can set to debug this...?

I'd try running it with strace, and then search the output for stat() calls involving <something>/.git.

Ciao, Dscho

Previous: Reece DunnNext: Dilip M
Message 9 of 13 in “gitk doesn't work w/o sudo.”
  1. Dilip MJan 19, 2009
  2. Reece DunnJan 19, 2009
  3. Dilip MJan 19, 2009
  4. Brian FosterJan 20, 2009
  5. Dilip MJan 20, 2009
  6. Matthieu MoyJan 20, 2009
  7. Dilip MJan 20, 2009
  8. Reece DunnJan 20, 2009
  9. Johannes SchindelinJan 20, 2009
  10. Dilip MJan 20, 2009
  11. Johannes SchindelinJan 20, 2009
  12. Jing XueJan 19, 2009
  13. Dilip MJan 19, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.