hgsh in contrib

Sean Kelley svk.sweng at gmail.com
Thu Jun 14 15:42:26 UTC 2007


Since HG_GATEWAY and HG_HOST are NULL, I just needed to set HG_USER to
NULL.  To do SU with the restricted shell in place it is just:

sudo -u mercurial -i

on the server.

Sean

On 6/13/07, Sean Kelley <svk.sweng at gmail.com> wrote:
> I have compiled hg.ssh with the following defines:
>
> #define HG_GATEWAY NULL
>
> #define HG_HOST NULL
>
> #define HG_USER "mercurial"
>
> #define HG_ROOT "/data/mercurial"
>
> #define HG "/usr/bin/hg"
>
> #define HG_SHELL "/bin/bash"
>
>
> However, I cannot get SU or SCP to work with that account on the
> server.  I thought that if I enable HG_SHELL and map it to /bin/bash
> then if I am logged into the server I can SU the 'mercurial' account.
> That does not seem to work.  Neither does scp.
>
> Any suggestions?
>
> San
>



More information about the Mercurial mailing list