Re: link user-name with ssh-login

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Roberto <mrgreiner@xxxxxxxxx> writes:

> I have small ssh-based git server used for insite code
> development. But there is one thing I can't find how to set.
>
> In the server, each developer has a valid ssh account (I switched the
> shell to git-shell). The problem is that when a developer commit's
> some code, he can freely set in his local .git/config file the user
> name he want's to appear in the commit logs. Is there any way to
> link/force a certain ssh login to a name?

A pre-receive hook that lists the author names of the commits, along the
lines of "git log --format='%an <%ae>' $OLD_HEAD..$NEW_HEAD" and compares
against the name of the user authenticated against your SSH server would
be a way to do this.

But that would mean you are forbidding people to accept patches from
others, inspect the patches for validity and vouch for them, while giving
the credit to them by recoding the author names of the patch authors.

Perhaps checking the committer name would suit your situation better.  I
dunno.

--
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


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]