{"thread":{"id":"17252","subject":"gitk doesn't work w/o sudo.","startedAt":"2009-01-19T10:16:41Z","lastAt":"2009-01-20T21:10:17Z","messageCount":13,"participants":["Dilip M","Reece Dunn","Jing Xue","Brian Foster","Matthieu Moy","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"101123","messageId":"c94f8e120901190216x246589ebwc4a44dd85bb655d2@mail.gmail.com","threadId":"17252","inReplyTo":null,"subject":"gitk doesn't work w/o sudo.","fromName":"Dilip M","fromEmail":"dilipm79@gmail.com","sentAt":"2009-01-19T10:16:41Z","receivedAt":"2009-01-19T10:16:41Z","isPatch":false,"sender":{"key":"dilipm79@gmail.com","avatar":"https://gravatar.com/avatar/9417e308513ce9251de2802a026c72eb164e6c9b9d7143a3ee13f6ed0c4d1bd5?d=mp&s=160"},"body":"Hi,\n\n..I recently install GIT on Ubuntu (hardy) box....I am able to use\n'gitk' only If I do 'sudo'. Without 'sudo' it complains 'repository\nnot found'\n\n-- DM\n"},{"id":"101125","messageId":"3f4fd2640901190359w39ded50ds246903808e94246c@mail.gmail.com","threadId":"17252","inReplyTo":"c94f8e120901190216x246589ebwc4a44dd85bb655d2@mail.gmail.com","subject":"Re: gitk doesn't work w/o sudo.","fromName":"Reece Dunn","fromEmail":"msclrhd@googlemail.com","sentAt":"2009-01-19T11:59:28Z","receivedAt":"2009-01-19T11:59:28Z","isPatch":false,"sender":{"key":"msclrhd@googlemail.com","avatar":null},"body":"2009/1/19 Dilip M <dilipm79@gmail.com>:\n> Hi,\n>\n> ..I recently install GIT on Ubuntu (hardy) box....I am able to use\n> 'gitk' only If I do 'sudo'. Without 'sudo' it complains 'repository\n> not found'\n\nWho is the owner of the repository directory (and the .git directory)\nand what are the permissions on the directory? You can run (on the\ncommand line from the Terminal program):\n\n   ls -lh directory\n\nto find this out (where directory is the directory you are interested\nin) and run:\n\n   sudo chown user -R directory\n\nto change ownership of that directory (and all of its content) to the\nspecified user (i.e. the one you are currently logged in as). This\nwill make it so that you own that directory and can make changes to\nit. This should allow you to run gitk without using sudo.\n\nHTH,\n- Reece\n"},{"id":"101141","messageId":"c94f8e120901190637i294d379dke3a07a90da5076f8@mail.gmail.com","threadId":"17252","inReplyTo":"3f4fd2640901190359w39ded50ds246903808e94246c@mail.gmail.com","subject":"Re: gitk doesn't work w/o sudo.","fromName":"Dilip M","fromEmail":"dilipm79@gmail.com","sentAt":"2009-01-19T14:37:06Z","receivedAt":"2009-01-19T14:37:06Z","isPatch":false,"sender":{"key":"dilipm79@gmail.com","avatar":"https://gravatar.com/avatar/9417e308513ce9251de2802a026c72eb164e6c9b9d7143a3ee13f6ed0c4d1bd5?d=mp&s=160"},"body":"On Mon, Jan 19, 2009 at 5:29 PM, Reece Dunn <msclrhd@googlemail.com> wrote:\n> 2009/1/19 Dilip M <dilipm79@gmail.com>:\n>> Hi,\n>>\n>> ..I recently install GIT on Ubuntu (hardy) box....I am able to use\n>> 'gitk' only If I do 'sudo'. Without 'sudo' it complains 'repository\n>> not found'\n>\n> Who is the owner of the repository directory (and the .git directory)\n> and what are the permissions on the directory? You can run (on the\n> command line from the Terminal program):\n>\n>   ls -lh directory\n>\n> to find this out (where directory is the directory you are interested\n> in) and run:\n>\n>   sudo chown user -R directory\n>\n> to change ownership of that directory (and all of its content) to the\n> specified user (i.e. the one you are currently logged in as). This\n> will make it so that you own that directory and can make changes to\n> it. This should allow you to run gitk without using sudo.\n\nEven I suspected that it may be related to some permission and checked\nthem...But I couldn't find the actual cause.\n\ndm-laptop:~/repos/atria> id -a\nuid=1000(dm) gid=1000(dm)\ngroups=4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),107(fuse),109(lpadmin),115(admin),1000(dm)\n\ndm-laptop:~/repos/atria> ls -lh .git/\ntotal 44K\ndrwxr-xr-x 2 dm dm 4.0K 2009-01-18 23:24 branches\n-rw-r--r-- 1 dm dm  256 2009-01-18 23:28 config\n-rw-r--r-- 1 dm dm   58 2009-01-18 23:24 description\n-rw-r--r-- 1 dm dm   23 2009-01-18 23:28 HEAD\ndrwxr-xr-x 2 dm dm 4.0K 2009-01-18 23:24 hooks\n-rw-r--r-- 1 dm dm 3.8K 2009-01-18 23:28 index\ndrwxr-xr-x 2 dm dm 4.0K 2009-01-18 23:24 info\ndrwxr-xr-x 3 dm dm 4.0K 2009-01-18 23:28 logs\ndrwxr-xr-x 4 dm dm 4.0K 2009-01-18 23:24 objects\n-rw-r--r-- 1 dm dm   94 2009-01-18 23:28 packed-refs\ndrwxr-xr-x 5 dm dm 4.0K 2009-01-18 23:28 refs\n\n'dm' is a user I created while installing Ubuntu.\n\ndm-laptop:~/repos/atria> ls -l `which gitk`\n-rwxr-xr-x 1 root root 237778 2008-04-08 22:31 /usr/bin/gitk\ndm-laptop:~/repos/atria>\n\n\n-- DM\n"},{"id":"101139","messageId":"20090119144836.GD5625@jabba.hq.digizenstudio.com","threadId":"17252","inReplyTo":"c94f8e120901190216x246589ebwc4a44dd85bb655d2@mail.gmail.com","subject":"Re: gitk doesn't work w/o sudo.","fromName":"Jing Xue","fromEmail":"jingxue@digizenstudio.com","sentAt":"2009-01-19T14:48:36Z","receivedAt":"2009-01-19T14:48:36Z","isPatch":false,"sender":{"key":"jingxue@digizenstudio.com","avatar":null},"body":"On Mon, Jan 19, 2009 at 03:46:41PM +0530, Dilip M wrote:\n> Hi,\n> \n> ..I recently install GIT on Ubuntu (hardy) box....I am able to use\n> 'gitk' only If I do 'sudo'. Without 'sudo' it complains 'repository\n> not found'\n\nDo you have a 0027 umask?\n\nhttp://www.digizenstudio.com/blog/2008/11/09/weird-git-gui-startup-problem/\n\nHTH.\n-- \nJing Xue\n"},{"id":"101142","messageId":"c94f8e120901190735j572f4fc6la30c820257603a98@mail.gmail.com","threadId":"17252","inReplyTo":"20090119144836.GD5625@jabba.hq.digizenstudio.com","subject":"Re: gitk doesn't work w/o sudo.","fromName":"Dilip M","fromEmail":"dilipm79@gmail.com","sentAt":"2009-01-19T15:35:02Z","receivedAt":"2009-01-19T15:35:02Z","isPatch":false,"sender":{"key":"dilipm79@gmail.com","avatar":"https://gravatar.com/avatar/9417e308513ce9251de2802a026c72eb164e6c9b9d7143a3ee13f6ed0c4d1bd5?d=mp&s=160"},"body":"On Mon, Jan 19, 2009 at 8:18 PM, Jing Xue <jingxue@digizenstudio.com> wrote:\n> On Mon, Jan 19, 2009 at 03:46:41PM +0530, Dilip M wrote:\n>> Hi,\n>>\n>> ..I recently install GIT on Ubuntu (hardy) box....I am able to use\n>> 'gitk' only If I do 'sudo'. Without 'sudo' it complains 'repository\n>> not found'\n>\n> Do you have a 0027 umask?\n>\n> http://www.digizenstudio.com/blog/2008/11/09/weird-git-gui-startup-problem/\n\nMine is dm-laptop:~> umask\n22\n\nSo, that's not a issue.\n\n-- DM\n"},{"id":"101232","messageId":"200901200912.14432.brian.foster@innova-card.com","threadId":"17252","inReplyTo":"c94f8e120901190637i294d379dke3a07a90da5076f8@mail.gmail.com","subject":"Re: gitk doesn't work w/o sudo.","fromName":"Brian Foster","fromEmail":"brian.foster@innova-card.com","sentAt":"2009-01-20T08:12:13Z","receivedAt":"2009-01-20T08:12:13Z","isPatch":false,"sender":{"key":"brian.foster@innova-card.com","avatar":null},"body":"On Monday 19 January 2009 15:37:06 Dilip M wrote:\n> On Mon, Jan 19, 2009 at 5:29 PM, Reece Dunn <msclrhd@googlemail.com> wrote:\n> > 2009/1/19 Dilip M <dilipm79@gmail.com>:\n> >> ..I recently install GIT on Ubuntu (hardy) box....I am able to use\n> >> 'gitk' only If I do 'sudo'. Without 'sudo' it complains 'repository\n> >> not found'\n> >\n> > Who is the owner of the repository directory (and the .git directory)\n> > and what are the permissions on the directory?  [ ... ]\n> \n> dm-laptop:~/repos/atria> id -a\n> uid=1000(dm) gid=1000(dm)  [ ... ]\n> dm-laptop:~/repos/atria> ls -lh .git/\n>[... all looks Ok ...]\n\n repeating Reece's question, what is the permissions/owner\n _of_the_directory_which_contains_ the ‘.git/’ directory?\n I can reproduce this behaviour (git 1.6.0.4) simply by\n denying myself search (née execute) permission on that\n directory, for entirely obvious reasons.\n\ncheers!\n\t-blf-\n-- \n“How many surrealists does it take to   | Brian Foster\n change a lightbulb? Three. One calms   | somewhere in south of France\n the warthog, and two fill the bathtub  |   Stop E$$o (ExxonMobil)!\n with brightly-coloured machine tools.” |      http://www.stopesso.com\n"},{"id":"101268","messageId":"c94f8e120901200851n21c6d67r3c43e3efd435e3db@mail.gmail.com","threadId":"17252","inReplyTo":"200901200912.14432.brian.foster@innova-card.com","subject":"Re: gitk doesn't work w/o sudo.","fromName":"Dilip M","fromEmail":"dilipm79@gmail.com","sentAt":"2009-01-20T16:51:09Z","receivedAt":"2009-01-20T16:51:09Z","isPatch":false,"sender":{"key":"dilipm79@gmail.com","avatar":"https://gravatar.com/avatar/9417e308513ce9251de2802a026c72eb164e6c9b9d7143a3ee13f6ed0c4d1bd5?d=mp&s=160"},"body":"On Tue, Jan 20, 2009 at 1:42 PM, Brian Foster\n<brian.foster@innova-card.com> wrote:\n> On Monday 19 January 2009 15:37:06 Dilip M wrote:\n>> On Mon, Jan 19, 2009 at 5:29 PM, Reece Dunn <msclrhd@googlemail.com> wrote:\n>> > 2009/1/19 Dilip M <dilipm79@gmail.com>:\n>> >> ..I recently install GIT on Ubuntu (hardy) box....I am able to use\n>> >> 'gitk' only If I do 'sudo'. Without 'sudo' it complains 'repository\n>> >> not found'\n>> >\n>> > Who is the owner of the repository directory (and the .git directory)\n>> > and what are the permissions on the directory?  [ ... ]\n>>\n>> dm-laptop:~/repos/atria> id -a\n>> uid=1000(dm) gid=1000(dm)  [ ... ]\n>> dm-laptop:~/repos/atria> ls -lh .git/\n>>[... all looks Ok ...]\n>\n>  repeating Reece's question, what is the permissions/owner\n>  _of_the_directory_which_contains_ the '.git/' directory?\n>  I can reproduce this behaviour (git 1.6.0.4) simply by\n>  denying myself search (née execute) permission on that\n>  directory, for entirely obvious reasons.\n\nIt's the same issue....Any ENV variable I can set to debug this...?\n\ndm-laptop:~/repos/atria> id -a\nuid=1000(dm) gid=1000(dm)\ngroups=4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),107(fuse),109(lpadmin),115(admin),1000(dm)\n\ndm-laptop:~/repos/atria> ls -ld .git\ndrwxr-xr-x 8 dm dm 4096 2009-01-19 22:34 .git\n\ndm-laptop:~/repos/atria> ls -la .git\ntotal 68\ndrwxr-xr-x 8 dm dm 4096 2009-01-19 22:34 .\ndrwxr-xr-x 6 dm dm 4096 2009-01-18 23:28 ..\ndrwxr-xr-x 2 dm dm 4096 2009-01-18 23:24 branches\n-rw-r--r-- 1 dm dm   20 2009-01-19 22:28 COMMIT_EDITMSG\n-rw-r--r-- 1 dm dm  256 2009-01-18 23:28 config\n-rw-r--r-- 1 dm dm   58 2009-01-18 23:24 description\n-rw-r--r-- 1 dm dm   89 2009-01-19 20:15 FETCH_HEAD\n-rw-r--r-- 1 dm dm   23 2009-01-19 21:49 HEAD\ndrwxr-xr-x 2 dm dm 4096 2009-01-18 23:24 hooks\n-rw-r--r-- 1 dm dm 5280 2009-01-19 22:28 index\ndrwxr-xr-x 2 dm dm 4096 2009-01-19 22:34 info\ndrwxr-xr-x 3 dm dm 4096 2009-01-19 22:34 logs\ndrwxr-xr-x 4 dm dm 4096 2009-01-19 22:34 objects\n-rw-r--r-- 1 dm dm   41 2009-01-19 20:15 ORIG_HEAD\n-rw-r--r-- 1 dm dm  153 2009-01-19 22:34 packed-refs\ndrwxr-xr-x 5 dm dm 4096 2009-01-18 23:28 refs\n\ndm-laptop:~/repos/atria> umask\n22\n\n\n-- DM\n"},{"id":"101275","messageId":"vpq4oztgaz8.fsf@bauges.imag.fr","threadId":"17252","inReplyTo":"c94f8e120901200851n21c6d67r3c43e3efd435e3db@mail.gmail.com","subject":"Re: gitk doesn't work w/o sudo.","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2009-01-20T17:10:03Z","receivedAt":"2009-01-20T17:10:03Z","isPatch":false,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"\"Dilip M\" <dilipm79@gmail.com> writes:\n\n>>  repeating Reece's question, what is the permissions/owner\n>>  _of_the_directory_which_contains_ the '.git/' directory?\n>>  I can reproduce this behaviour (git 1.6.0.4) simply by\n>>  denying myself search (née execute) permission on that\n>>  directory, for entirely obvious reasons.\n>\n> It's the same issue....\n\nYou didn't answer the question.\n\n> Any ENV variable I can set to debug this...?\n\nGIT_TRACE can help.\n\n-- \nMatthieu\n"},{"id":"101276","messageId":"alpine.DEB.1.00.0901201815010.5159@intel-tinevez-2-302","threadId":"17252","inReplyTo":"c94f8e120901200851n21c6d67r3c43e3efd435e3db@mail.gmail.com","subject":"Re: gitk doesn't work w/o sudo.","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2009-01-20T17:16:22Z","receivedAt":"2009-01-20T17:16:22Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 20 Jan 2009, Dilip M wrote:\n\n> On Tue, Jan 20, 2009 at 1:42 PM, Brian Foster\n> <brian.foster@innova-card.com> wrote:\n> > On Monday 19 January 2009 15:37:06 Dilip M wrote:\n> >> On Mon, Jan 19, 2009 at 5:29 PM, Reece Dunn <msclrhd@googlemail.com> wrote:\n> >> > 2009/1/19 Dilip M <dilipm79@gmail.com>:\n> >> >> ..I recently install GIT on Ubuntu (hardy) box....I am able to use\n> >> >> 'gitk' only If I do 'sudo'. Without 'sudo' it complains 'repository\n> >> >> not found'\n> >> >\n> >> > Who is the owner of the repository directory (and the .git directory)\n> >> > and what are the permissions on the directory?  [ ... ]\n> >>\n> >> dm-laptop:~/repos/atria> id -a\n> >> uid=1000(dm) gid=1000(dm)  [ ... ]\n> >> dm-laptop:~/repos/atria> ls -lh .git/\n> >>[... all looks Ok ...]\n> >\n> >  repeating Reece's question, what is the permissions/owner\n> >  _of_the_directory_which_contains_ the '.git/' directory?\n> >  I can reproduce this behaviour (git 1.6.0.4) simply by\n> >  denying myself search (née execute) permission on that\n> >  directory, for entirely obvious reasons.\n> \n> It's the same issue....Any ENV variable I can set to debug this...?\n\nI'd try running it with strace, and then search the output for stat() \ncalls involving <something>/.git.\n\nCiao,\nDscho"},{"id":"101278","messageId":"c94f8e120901200935t75dba11fw3ce14b4ba965c878@mail.gmail.com","threadId":"17252","inReplyTo":"vpq4oztgaz8.fsf@bauges.imag.fr","subject":"Re: gitk doesn't work w/o sudo.","fromName":"Dilip M","fromEmail":"dilipm79@gmail.com","sentAt":"2009-01-20T17:35:44Z","receivedAt":"2009-01-20T17:35:44Z","isPatch":false,"sender":{"key":"dilipm79@gmail.com","avatar":"https://gravatar.com/avatar/9417e308513ce9251de2802a026c72eb164e6c9b9d7143a3ee13f6ed0c4d1bd5?d=mp&s=160"},"body":"On Tue, Jan 20, 2009 at 10:40 PM, Matthieu Moy <Matthieu.Moy@imag.fr> wrote:\n> \"Dilip M\" <dilipm79@gmail.com> writes:\n>\n>>>  repeating Reece's question, what is the permissions/owner\n>>>  _of_the_directory_which_contains_ the '.git/' directory?\n>>>  I can reproduce this behaviour (git 1.6.0.4) simply by\n>>>  denying myself search (née execute) permission on that\n>>>  directory, for entirely obvious reasons.\n>>\n>> It's the same issue....\n>\n> You didn't answer the question.\n\nSorry..I read it for .git directory...\n\n.git's parent directory is owned by user who us issuing gitk command\nand permisssion bit of 755 is set.\n\ndm-laptop:~/repos/atria> ls -ld .\ndrwxr-xr-x 6 dm dm 4096 2009-01-18 23:28 .\n\ndm-laptop:~/repos/atria> ls -ld .git/\ndrwxr-xr-x 8 dm dm 4096 2009-01-20 22:22 .git/\n\n>> Any ENV variable I can set to debug this...?\n>\n> GIT_TRACE can help.\n\nI tried with that but it didn't help for gitk. But sure, it helps with\ngit command(s).\n\n-- DM\n"},{"id":"101282","messageId":"3f4fd2640901201000h3ce33fd8i1a82487c9f6b0927@mail.gmail.com","threadId":"17252","inReplyTo":"c94f8e120901200935t75dba11fw3ce14b4ba965c878@mail.gmail.com","subject":"Re: gitk doesn't work w/o sudo.","fromName":"Reece Dunn","fromEmail":"msclrhd@googlemail.com","sentAt":"2009-01-20T18:00:49Z","receivedAt":"2009-01-20T18:00:49Z","isPatch":false,"sender":{"key":"msclrhd@googlemail.com","avatar":null},"body":"2009/1/20 Dilip M <dilipm79@gmail.com>:\n> On Tue, Jan 20, 2009 at 10:40 PM, Matthieu Moy <Matthieu.Moy@imag.fr> wrote:\n>> \"Dilip M\" <dilipm79@gmail.com> writes:\n>>\n>>>>  repeating Reece's question, what is the permissions/owner\n>>>>  _of_the_directory_which_contains_ the '.git/' directory?\n>>>>  I can reproduce this behaviour (git 1.6.0.4) simply by\n>>>>  denying myself search (née execute) permission on that\n>>>>  directory, for entirely obvious reasons.\n>>>\n>>> It's the same issue....\n>>\n>> You didn't answer the question.\n>\n> Sorry..I read it for .git directory...\n>\n> .git's parent directory is owned by user who us issuing gitk command\n> and permisssion bit of 755 is set.\n>\n>>> Any ENV variable I can set to debug this...?\n>>\n>> GIT_TRACE can help.\n>\n> I tried with that but it didn't help for gitk. But sure, it helps with\n> git command(s).\n\nSo can you run git commands that modify the git tree, e.g. git add? If\nthese are failing, that may explain why gitk is failing, and you can\nuse GIT_TRACE.\n\nAlso, do you know what commands are being executed by gitk that are\ncausing the failure you are experiencing?\n\nOr... is your ENV (e.g. your PATH) the same for dm and root? In\nparticular, can they find the git commands? This would also be visible\nby not being able to do things like `git log` (or, if it is an issue\nwith the deprecation of the `git-foo`-style command invocation, is the\nGIT_EXEC_PATH set to point to the correct location and does dm have\nthe rights to execute it -- that is, is the x bit set for the\nGIT_EXEC_PATH directory, as per\nhttp://www.digizenstudio.com/blog/2008/11/09/weird-git-gui-startup-problem/?).\n\nWhat error message are you getting from gitk? Is it possible to debug\ngitk to find out what command is being executed and what error\ncode/exception it is returning/throwing?\n\n- Reece\n"},{"id":"101283","messageId":"c94f8e120901201020g32fad692p214fdf1640a4796f@mail.gmail.com","threadId":"17252","inReplyTo":"alpine.DEB.1.00.0901201815010.5159@intel-tinevez-2-302","subject":"Re: gitk doesn't work w/o sudo.","fromName":"Dilip M","fromEmail":"dilipm79@gmail.com","sentAt":"2009-01-20T18:20:23Z","receivedAt":"2009-01-20T18:20:23Z","isPatch":false,"sender":{"key":"dilipm79@gmail.com","avatar":"https://gravatar.com/avatar/9417e308513ce9251de2802a026c72eb164e6c9b9d7143a3ee13f6ed0c4d1bd5?d=mp&s=160"},"body":"On Tue, Jan 20, 2009 at 10:46 PM, Johannes Schindelin\n<Johannes.Schindelin@gmx.de> wrote:\n> 'd try running it with strace, and then search the output for stat()\n> calls involving <something>/.git.\n\nSeems like we are almost there....here is the log..\n\ndm-laptop:~/repos/atria> grep gitk /tmp/gitk_1.log\nexecve(\"/usr/bin/gitk\", [\"/usr/bin/gitk\"], [/* 37 vars */]) = 0\nopen(\"/usr/bin/gitk\", O_RDONLY)         = 3\nexecve(\"/usr/bin/wish8.4\", [\"/usr/bin/wish8.4\", \"/usr/bin/gitk\",\n\"--\"], [/* 37 vars */]) = 0\nstat(\"/usr/bin/gitk\", {st_mode=S_IFREG|0755, st_size=237778, ...}) = 0\nopen(\"/usr/bin/gitk\", O_RDONLY)         = 6\nlstat(\"/usr/share/gitk\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\nlstat(\"/usr/share/gitk/lib\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\nlstat(\"/usr/share/gitk/lib/msgs\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\naccess(\"/usr/share/gitk/lib/msgs/en_in.msg\", F_OK) = -1 ENOENT (No\nsuch file or directory)  <======\nlstat(\"/usr/share/gitk\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\nlstat(\"/usr/share/gitk/lib\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\nlstat(\"/usr/share/gitk/lib/msgs\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\naccess(\"/usr/share/gitk/lib/msgs/en.msg\", F_OK) = -1 ENOENT (No such\nfile or directory)       <======\nstat(\"/home/dm/.gitk\", {st_mode=S_IFREG|0644, st_size=683, ...}) = 0\nopen(\"/home/dm/.gitk\", O_RDONLY)        = 6\nwritev(5, [{\"\\22\\0\\7\\0\\16\\0@\\3\\'\\0\\0\\0\\37\\0\\0\\0\\10NG\\0\\4\\0\\0\\0gitk\\20\"...,\n48}], 1) = 48\nwritev(5, [{\"\\22\\0\\7\\0\\16\\0@\\3(\\1\\0\\0\\37\\1\\0\\0\\10AME\\4\\0\\0\\0gitk\\22\"...,\n112}], 1) = 112\n\ndm-laptop:~/repos/atria> ls -l /usr/share/gitk/lib/msgs/en_in.msg\nls: cannot access /usr/share/gitk/lib/msgs/en_in.msg: No such file or directory\n\nBut how is it working when  I do 'sudo'..\n\n-- DM\n"},{"id":"101303","messageId":"alpine.DEB.1.00.0901202209450.3586@pacific.mpi-cbg.de","threadId":"17252","inReplyTo":"c94f8e120901201020g32fad692p214fdf1640a4796f@mail.gmail.com","subject":"Re: gitk doesn't work w/o sudo.","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2009-01-20T21:10:17Z","receivedAt":"2009-01-20T21:10:17Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 20 Jan 2009, Dilip M wrote:\n\n> On Tue, Jan 20, 2009 at 10:46 PM, Johannes Schindelin\n> <Johannes.Schindelin@gmx.de> wrote:\n> > 'd try running it with strace, and then search the output for stat()\n> > calls involving <something>/.git.\n> \n> Seems like we are almost there....here is the log..\n> \n> dm-laptop:~/repos/atria> grep gitk /tmp/gitk_1.log\n> execve(\"/usr/bin/gitk\", [\"/usr/bin/gitk\"], [/* 37 vars */]) = 0\n> open(\"/usr/bin/gitk\", O_RDONLY)         = 3\n> execve(\"/usr/bin/wish8.4\", [\"/usr/bin/wish8.4\", \"/usr/bin/gitk\",\n> \"--\"], [/* 37 vars */]) = 0\n> stat(\"/usr/bin/gitk\", {st_mode=S_IFREG|0755, st_size=237778, ...}) = 0\n> open(\"/usr/bin/gitk\", O_RDONLY)         = 6\n> lstat(\"/usr/share/gitk\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\n> lstat(\"/usr/share/gitk/lib\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\n> lstat(\"/usr/share/gitk/lib/msgs\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\n> access(\"/usr/share/gitk/lib/msgs/en_in.msg\", F_OK) = -1 ENOENT (No\n> such file or directory)  <======\n> lstat(\"/usr/share/gitk\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\n> lstat(\"/usr/share/gitk/lib\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\n> lstat(\"/usr/share/gitk/lib/msgs\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\n> access(\"/usr/share/gitk/lib/msgs/en.msg\", F_OK) = -1 ENOENT (No such\n> file or directory)       <======\n> stat(\"/home/dm/.gitk\", {st_mode=S_IFREG|0644, st_size=683, ...}) = 0\n> open(\"/home/dm/.gitk\", O_RDONLY)        = 6\n> writev(5, [{\"\\22\\0\\7\\0\\16\\0@\\3\\'\\0\\0\\0\\37\\0\\0\\0\\10NG\\0\\4\\0\\0\\0gitk\\20\"...,\n> 48}], 1) = 48\n> writev(5, [{\"\\22\\0\\7\\0\\16\\0@\\3(\\1\\0\\0\\37\\1\\0\\0\\10AME\\4\\0\\0\\0gitk\\22\"...,\n> 112}], 1) = 112\n> \n> dm-laptop:~/repos/atria> ls -l /usr/share/gitk/lib/msgs/en_in.msg\n> ls: cannot access /usr/share/gitk/lib/msgs/en_in.msg: No such file or directory\n> \n> But how is it working when  I do 'sudo'..\n\nLet's find out.  You can run the strace with sudo, too.\n\nI bet it uses another git.\n\nCiao,\nDscho\n"}]}