[PATCH] PamServiceNameAppend

Kevin Steves stevesk at pobox.com
Mon Nov 25 07:54:57 EST 2002

On Sun, Nov 24, 2002 at 08:12:23PM +0100, Flavien Lebarbe wrote:
> Now, one step further : I use pam on the server, and would like  to  use
> /etc/pam.d/ssh_remote as the pam config-file for the second instance  of
> sshd and continue to use /etc/pam.d/ssh for the first one.
> It comes down to change the "service_name" parameter of pam_start()  for
> the second daemon. I had a look in the source and SSHD_PAM_SERVICE is  a
> constant.  I  could  of  course   recompile   with   -DSSHD_PAM_SERVICE=
> "ssh_remote" but I would have to have two sets of binaries  :  One  sshd
> and another sshd_remote. Not really easy. :-(

no need to recompile, SSHD_PAM_SERVICE is set to basename argv[0].
yes, you need to link sshd to the other service name.  why is this not

More information about the openssh-unix-dev mailing list