From owner-freebsd-current Mon Nov 4 3: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 E105E37B401 for ; Mon, 4 Nov 2002 03:11:43 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33D6E43E4A for ; Mon, 4 Nov 2002 03:11:43 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 411AF534E; Mon, 4 Nov 2002 12:11:41 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Markus Friedl Cc: Alexander Leidinger , current@freebsd.org, openssh@openbsd.org Subject: Re: ssh-agent broken with pam_ssh for xdm (+ fix for ssh-agent.c) References: <20021103204902.3c6b3705.Alexander@Leidinger.net> <20021104092329.GA1677@folly> From: Dag-Erling Smorgrav Date: Mon, 04 Nov 2002 12:11:40 +0100 In-Reply-To: (Dag-Erling Smorgrav's message of "Mon, 04 Nov 2002 12:04:31 +0100") Message-ID: Lines: 16 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386--freebsd) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 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 you run, and did you compile it yourself or did you install binaries? How long ago did you install it? What does 'ldd /usr/X11R6/bin/xdm' say? If it's pretty old, it might still be using Linux-PAM and an old non-credential-dropping pam_ssh(8). DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message