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

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

From
RDReece Dunn <msclrhd@googlemail.com>
Date
Jan 19, 2009, 11:59 UTC
Message-ID
<3f4fd2640901190359w39ded50ds246903808e94246c@mail.gmail.com>
In-Reply-To
<c94f8e120901190216x246589ebwc4a44dd85bb655d2@mail.gmail.com>
2009/1/19 Dilip M <dilipm79@gmail.com>:
Show 5 quoted lines
> Hi,
>
> ..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? You can run (on the command line from the Terminal program):

   ls -lh directory

to find this out (where directory is the directory you are interested in) and run:

   sudo chown user -R directory

to change ownership of that directory (and all of its content) to the specified user (i.e. the one you are currently logged in as). This will make it so that you own that directory and can make changes to it. This should allow you to run gitk without using sudo.

HTH,
- Reece
Previous: Dilip MNext: Dilip M
Message 2 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.