Re: [URG] SSH & PAM
From: Darren Tucker (dtucker_at_dodgy.net.au)
Date: 02/24/04
- Next message: Darren Tucker: "Re: key or password based on IP"
- Previous message: Adrian Gluchow: "SSH over WWW"
- In reply to: Sensei: "Re: [URG] SSH & PAM"
- Next in thread: Darren Tucker: "Re: [URG] SSH & PAM"
- Reply: Darren Tucker: "Re: [URG] SSH & PAM"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 24 Feb 2004 11:22:40 +0000 (UTC)
In article <pan.2004.02.23.20.08.59.870577@nowhere.org>,
Sensei <noone@nowhere.org> wrote:
>On Mon, 23 Feb 2004 11:41:59 -0800, Mike Delaney wrote:
>
>> What version of SSH? On what type of system?
>
>OpenSSH_3.7.1p2, SSH protocols 1.5/2.0, OpenSSL 0.9.7c 30 Sep
>
>Linux (kernel 2.4.23)
>
>> If myuser's home directory is located in an AFS volume, then this is
>> the behavior you'd expect if myuser doesn't have a valid AFS token.
>> The Unix file permissions are quite meaningless in AFS.
>
>Yes! You're right:
>
>sensei@quantum sensei $ ssh root@plm
>Password:
>Last login: Mon Feb 23 20:58:28 2004 from plmhost
>~ # ssh user@localhost
>AFS Password:
>Last login: Mon Feb 23 21:00:49 2004 from localhost
>/afs/mycell/users/user/.tcsh.config: Permission denied.
>> /usr/afsws/bin/tokens
>
>Tokens held by the Cache Manager:
>
> --End of list--
>>
>
>God!!!!!!!!!
>
>Why?????
Since 3.7p1, OpenSSH's sshd does the PAM authentication in a child of
the privileged sshd. After 3.7.1p2, code was added to export all of
the state set by the PAM modules to that privileged process, which then
forks the shell.
So: try a snapshot of OpenSSH (or 3.8p1, which should be out soon,
possibly by the time you read this).
(I took a look at the code of kpam and the PAG is set in the pam_setcred
call, which is called in the immediate ancestor of the shell).
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
- Next message: Darren Tucker: "Re: key or password based on IP"
- Previous message: Adrian Gluchow: "SSH over WWW"
- In reply to: Sensei: "Re: [URG] SSH & PAM"
- Next in thread: Darren Tucker: "Re: [URG] SSH & PAM"
- Reply: Darren Tucker: "Re: [URG] SSH & PAM"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|