git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Dilip M" <dilipm79@gmail.com>
To: "Reece Dunn" <msclrhd@googlemail.com>
Cc: "git list" <git@vger.kernel.org>
Subject: Re: gitk doesn't work w/o sudo.
Date: Mon, 19 Jan 2009 20:07:06 +0530	[thread overview]
Message-ID: <c94f8e120901190637i294d379dke3a07a90da5076f8@mail.gmail.com> (raw)
In-Reply-To: <3f4fd2640901190359w39ded50ds246903808e94246c@mail.gmail.com>

On Mon, Jan 19, 2009 at 5:29 PM, Reece Dunn <msclrhd@googlemail.com> wrote:
> 2009/1/19 Dilip M <dilipm79@gmail.com>:
>> 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.

Even I suspected that it may be related to some permission and checked
them...But I couldn't find the actual cause.

dm-laptop:~/repos/atria> id -a
uid=1000(dm) gid=1000(dm)
groups=4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),107(fuse),109(lpadmin),115(admin),1000(dm)

dm-laptop:~/repos/atria> ls -lh .git/
total 44K
drwxr-xr-x 2 dm dm 4.0K 2009-01-18 23:24 branches
-rw-r--r-- 1 dm dm  256 2009-01-18 23:28 config
-rw-r--r-- 1 dm dm   58 2009-01-18 23:24 description
-rw-r--r-- 1 dm dm   23 2009-01-18 23:28 HEAD
drwxr-xr-x 2 dm dm 4.0K 2009-01-18 23:24 hooks
-rw-r--r-- 1 dm dm 3.8K 2009-01-18 23:28 index
drwxr-xr-x 2 dm dm 4.0K 2009-01-18 23:24 info
drwxr-xr-x 3 dm dm 4.0K 2009-01-18 23:28 logs
drwxr-xr-x 4 dm dm 4.0K 2009-01-18 23:24 objects
-rw-r--r-- 1 dm dm   94 2009-01-18 23:28 packed-refs
drwxr-xr-x 5 dm dm 4.0K 2009-01-18 23:28 refs

'dm' is a user I created while installing Ubuntu.

dm-laptop:~/repos/atria> ls -l `which gitk`
-rwxr-xr-x 1 root root 237778 2008-04-08 22:31 /usr/bin/gitk
dm-laptop:~/repos/atria>


-- DM

  reply	other threads:[~2009-01-19 15:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-19 10:16 gitk doesn't work w/o sudo Dilip M
2009-01-19 11:59 ` Reece Dunn
2009-01-19 14:37   ` Dilip M [this message]
2009-01-20  8:12     ` Brian Foster
2009-01-20 16:51       ` Dilip M
2009-01-20 17:10         ` Matthieu Moy
2009-01-20 17:35           ` Dilip M
2009-01-20 18:00             ` Reece Dunn
2009-01-20 17:16         ` Johannes Schindelin
2009-01-20 18:20           ` Dilip M
2009-01-20 21:10             ` Johannes Schindelin
2009-01-19 14:48 ` Jing Xue
2009-01-19 15:35   ` Dilip M

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c94f8e120901190637i294d379dke3a07a90da5076f8@mail.gmail.com \
    --to=dilipm79@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=msclrhd@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).