From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-106537-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1NXzYM-0004IC-R6
	for garchives@archives.gentoo.org; Thu, 21 Jan 2010 16:06:39 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 6C02FE0921
	for <garchives@archives.gentoo.org>; Thu, 21 Jan 2010 16:06:38 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 3EE30E0848
	for <gentoo-user@lists.gentoo.org>; Thu, 21 Jan 2010 14:08:06 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
	by smtp.gentoo.org (Postfix) with ESMTP id E7C031B40E7
	for <gentoo-user@lists.gentoo.org>; Thu, 21 Jan 2010 14:08:05 +0000 (UTC)
X-Virus-Scanned: amavisd-new at gentoo.org
X-Spam-Score: -3.094
X-Spam-Level: 
X-Spam-Status: No, score=-3.094 required=5.5 tests=[AWL=-0.495,
	BAYES_00=-2.599]
Received: from smtp.gentoo.org ([127.0.0.1])
	by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id br-lupyEWl4e for <gentoo-user@lists.gentoo.org>;
	Thu, 21 Jan 2010 14:07:59 +0000 (UTC)
Received: from lo.gmane.org (lo.gmane.org [80.91.229.12])
	(using TLSv1 with cipher AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTP id 281251B4047
	for <gentoo-user@gentoo.org>; Thu, 21 Jan 2010 14:07:58 +0000 (UTC)
Received: from list by lo.gmane.org with local (Exim 4.50)
	id 1NXxhI-0004oG-3J
	for gentoo-user@gentoo.org; Thu, 21 Jan 2010 15:07:44 +0100
Received: from athedsl-378521.home.otenet.gr ([79.131.30.151])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <gentoo-user@gentoo.org>; Thu, 21 Jan 2010 15:07:44 +0100
Received: from realnc by athedsl-378521.home.otenet.gr with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <gentoo-user@gentoo.org>; Thu, 21 Jan 2010 15:07:44 +0100
X-Injected-Via-Gmane: http://gmane.org/
To: gentoo-user@lists.gentoo.org
From:  Nikos Chantziaras <realnc@arcor.de>
Subject: [gentoo-user]  Re: A quick test of su [SOLVED]
Date:  Thu, 21 Jan 2010 16:06:34 +0200
Organization:  Lucas Barks
Message-ID: <hj9n10$cfr$1@ger.gmane.org>
References:  <hj2m2t$c8p$2@ger.gmane.org> <e95b15951001181414v639c8a5eif423d14b28f5a246@mail.gmail.com> <hj2v3s$79m$1@ger.gmane.org> <hj4rmv$q2d$1@ger.gmane.org> <hj4tgd$ra$1@ger.gmane.org> <hj7t6c$dt0$1@ger.gmane.org>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
Mime-Version:  1.0
Content-Type:  text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding:  7bit
X-Complaints-To: usenet@ger.gmane.org
X-Gmane-NNTP-Posting-Host: athedsl-378521.home.otenet.gr
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20100117 Thunderbird/3.0
In-Reply-To: <hj7t6c$dt0$1@ger.gmane.org>
Sender: news <news@ger.gmane.org>
X-Archives-Salt: db52b1a9-cd2e-4e9c-a028-d71677c489b2
X-Archives-Hash: c216f13b8947528ba2164e1e9f51191e

On 01/20/2010 11:39 PM, walt wrote:
> On 01/19/2010 10:26 AM, Nikos Chantziaras wrote:
>> On 01/19/2010 07:55 PM, walt wrote:
>>> On 01/18/2010 04:41 PM, walt wrote:
>>>
>>>> Here is what I see on both machines:
>>>>
>>>> $su
>>>> Password: <===== I type Ctrl-d here
>>>> Segmentation fault
>>>>
>>>> I've traced this problem to the pam_ssh package, which is supposed
>>>> to return a charstring containing the typed password, but it instead
>>>> returns a null pointer when I type Ctrl-d. Calamity ensues.
>>>
>>> The key here is the pam_ssh package, which apparently the rest of you
>>> don't use for authentication.
>>
>> Just a quick question: what do you need PAM for? No it's not a
>> rhetorical question. I always wondered what PAM is good for; to find
>> out, I completely removed everything PAM related from my system
>> ("-pam" in make.conf and then rebuild everything and then
>> depclean.) The system works exactly the same as before. So I'm left
>> wondering what PAM was doing in the first place?
>
> I'm no expert on PAM, but I've seen it used on every linux distribution
> that I've tried over the years. In the case I just described, I used it
> so I can identify myself with my ssh key, which is much more secure than
> a password. So, in general, pam is used to set security policy for how
> users can log in, change their passwords, etc. I'm not sure how I would
> have added ssh key authentication without pam. It's a good question.

Well, all of this is still working here without PAM, including keys 
(I've set that option in the config file of the ssh deamon, not PAM.)