On Mon, Jan 19, 2009 at 5:29 PM, Reece Dunn <msclrhd@xxxxxxxxxxxxxx> wrote: > 2009/1/19 Dilip M <dilipm79@xxxxxxxxx>: >> 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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html