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

Re: AW: AW: Pam configuration files



On Thu, Apr 15, 2004 at 11:29:14AM +0200, Debian-User wrote:
> Gary,
> 
> I'm afraid that this doesn't work in every case (at least not at our
> servers). I was testing exactly that configuration you described and
> noticed two things:
> 
> 1) the original sshd-file is called "sshd" (in /usr/sbin), while the
> original PAM-file (in /etc/pam.d) is called "ssh" (without a "d"),
> indicating that ssh IS NOT deriving the pam service name from argv[0]
> (now I remember again why I didn't try that in the first place ...)

debian explicity defines the service name at build time, with
-DPAM_SERVICE_NAME="ssh" (or so).

> 2) as a consequence my "derived" copy of sshd (/usr/sbin/gatewaysshd in
> this case) still uses /etc/pam.d/ssh anyway (therefore simply ignoring
> the name change and the contents in /etc/pam.d/gatewaysshd) - I checked
> this by making changes to /etc/pam.d/ssh which took effect upon
> restarting /usr/sbin/gatewaysshd (quite not what I wanted ...)

yup

> btw, my ssh-Version is: SSH-2.0-OpenSSH_3.4p1 Debian 1:3.4p1-1.woody.3
> 
> Do you have ANY idea what to try next???

probably the only way to change the service name is to recompile ssh
in your case.

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgp00000.pgp
Description: PGP signature


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