Re: Git prompt

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

 



Ethan Reesor wrote:

> I have a git user set up on my server. It's prompt is set to
> git-prompt and it's git-shell-commands is empty.
[...]
> How do I make the git user work like github where, upon attempting to
> get a prompt, the connection is closed?

I assume you mean that the user's login shell is git-shell.

You can disable interactive logins by removing the
~/git-shell-commands/ directory.  Unfortunately that doesn't let you
customize the message.  Perhaps it would make sense to teach shell.c
to look for a

	[shell]
		greeting = 'Hi %(username)! You've successfully authenticated, but I do not provide interactive shell access.'

setting in git's config file.  What do you think?

Thanks,
Jonathan
--
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]