Note that there are some explanatory texts on larger screens.

plurals
  1. POgit push validation from windows sets author to unknown
    primarykey
    data
    text
    <p>I have recently setup a new gitosis in my private network on Ubuntu server. All other clients in network are Windows XP machine except one Linux client</p> <p>I have following setup in gitosis.conf:</p> <pre><code>[group MyProjectTeam] writable = MyProjectRepo members = user1 user2 user3 </code></pre> <p>I have also placed user1.pub, user2.pub and user3.pub key files in keydir. The keys were generated on Ubuntu server using ssh-keygen and distributed to respective users. Copy of public keys are placed in keydir.</p> <p>First two users are Windows XP users they use msysgit + TortoiseGit to work with repository and one user is on Linux machine to access the repository using default command line version of git.</p> <p>Now all is setup well and everybody is able to do whatever they are expected to, they are able to pull, push, commit - everything looks fine except when we check logs!!!</p> <p>Using user3 on Linux machine, I tried "git log" command and got following output:</p> <pre><code>commit 1b249e239d270b814aab31eed7dc6f04ceceba32 Author: User3 &lt;Admin@ubuntu-server.(none)&gt; Date: Fri Sep 11 07:26:58 2009 +0530 modifed by user3 commit 646f8b11a715273dc26280fc1da2507c997f981c Author: unknown &lt;Admin@.(none)&gt; Date: Fri Sep 11 07:10:56 2009 +0530 modified by user2 commit 9f86dc7a6bfafc1c1e520d6de3dac7c613ac85cb Author: unknown &lt;Admin@.(none)&gt; Date: Fri Sep 11 06:50:22 2009 +0530 modified commit b1a3b64005795f9592aae05c422c70a03dbb9b58 Author: admin &lt;Admin@ubuntu-server.(none)&gt; Date: Fri Sep 11 06:18:54 2009 +0530 test file added by admin </code></pre> <p>This is not correct. This log should be able to tell me who is the Author of Push. What I feel is that its giving correct values for users on Linux as their user name and emails are also added in the Linux user info but for windows clients its not true so their names does not appear correctly. But even if I fix names on Windows machine, this can be compromised by emulating other users name, to avoid this I don't want to rely on user names.</p> <p>I want name provided in SSH file be appear there or name of the SSH file that was used while push to be added as Author. </p> <p>May be git's hook pre-receive can help here but I don't know how to use it... can anybody help?</p> <p>Thanks, Rakesh</p> <p><strong>UPDATE:</strong></p> <p>Thanks for answers.</p> <p>alexandrul, I have not set the global settings this is because I want every user's information should be logged genuinely.</p> <p>Squelch, you are correct I can see the users who are omitting their user names but how do I enforce them to do so. I can tell them to config their local project project and set username and email address but what if some one uses fake username or tries to use someone else username and email address, basically tries to personate other?</p> <p>That's why I thought why not to log the name of private key file, e.g. I have set file name as user1.ppk for user1 similarly user2.ppk for user2. in such cases even if someone tries to personate other they wont succeed cause key names that are used for checking will tell me the truth.</p> <p>any ideas???</p> <p>Regards, Rakesh</p> <p><strong>UPDATE 2:</strong></p> <p>Thanks for help. Squelch, thanks for taking time to explain in so much of details. I think that TV's cobweb has lot of info, reading it right now.</p> <p>As of now one thing I have done is: asked my users to use update their config to include username and email address. But I got to solve the problem as I can not chase each and user.</p> <p>I want something like SVN+SSH where we use tunnled username in key file and it gets recorded with SVN.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload