From owner-freebsd-current Mon Nov 4 4:11:44 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7D4937B401 for ; Mon, 4 Nov 2002 04:11:42 -0800 (PST) Received: from mailout10.sul.t-online.com (mailout10.sul.t-online.com [194.25.134.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E56143E88 for ; Mon, 4 Nov 2002 04:11:37 -0800 (PST) (envelope-from Alexander@Leidinger.net) Received: from fwd08.sul.t-online.de by mailout10.sul.t-online.com with smtp id 188g4o-00015s-03; Mon, 04 Nov 2002 13:11:30 +0100 Received: from Andro-Beta.Leidinger.net (520065502893-0001@[80.131.109.76]) by fmrl08.sul.t-online.com with esmtp id 188g4Y-1m9Bc8C; Mon, 4 Nov 2002 13:11:14 +0100 Received: from Magelan.Leidinger.net (Magelan [192.168.1.1]) by Andro-Beta.Leidinger.net (8.12.6/8.12.6) with ESMTP id gA4CB6L7004893; Mon, 4 Nov 2002 13:11:07 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magelan.Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.6/8.12.6) with SMTP id gA4CBEdX009572; Mon, 4 Nov 2002 13:11:14 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Mon, 4 Nov 2002 13:11:14 +0100 From: Alexander Leidinger To: Dag-Erling Smorgrav Cc: markus@openbsd.org, current@freebsd.org, openssh@openbsd.org Subject: Re: ssh-agent broken with pam_ssh for xdm (+ fix for ssh-agent.c) Message-Id: <20021104131114.04e5a76f.Alexander@Leidinger.net> In-Reply-To: References: <20021103204902.3c6b3705.Alexander@Leidinger.net> <20021104092329.GA1677@folly> X-Mailer: Sylpheed version 0.8.5claws (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sender: 520065502893-0001@t-dialin.net Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 04 Nov 2002 12:11:40 +0100 Dag-Erling Smorgrav wrote: > Dag-Erling Smorgrav writes: > > There seems to be a bug in our pam_ssh(8). It switches to user > > privileges when reading the user's keys, but switches back before > > starting the agent, instead of after. > > Umm, wait, that was too easy. It doesn't. I got the start_agent and > !start_agent cases mixed up. Alexander, could you check what UID > ssh-agent runs as (ps auxw | grep agent)? What version of XFree86 do It runs with my UID: ---snip--- (5) netchild@ttyp2 % ps auxww |grep \[s\]sh-agent netchild 757 0.0 0.2 1976 1188 ?? Is 9:00am 0:00.01 ssh-agent ---snip--- > you run, and did you compile it yourself or did you install binaries? Myself. > How long ago did you install it? What does 'ldd /usr/X11R6/bin/xdm' Oct 25. > say? If it's pretty old, it might still be using Linux-PAM and an old No, it uses our PAM: ---snip--- libpam.so.2 => /usr/lib/libpam.so.2 (0x281eb000) (6) netchild@ttyp0 % ll /usr/lib/libpam.* -r--r--r-- 1 root wheel 127K 3 Nov 20:04 /usr/lib/libpam.a lrwxr-xr-x 1 root wheel 11B 3 Nov 20:04 /usr/lib/libpam.so@ -> libpam.so.2 -r--r--r-- 1 root wheel 25K 3 Nov 20:04 /usr/lib/libpam.so.2 ---snip--- > non-credential-dropping pam_ssh(8). Bye, Alexander. -- Press every key to continue. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message