Bug 1099984 - Pam issue when trying to login to a container running sshd.
Summary: Pam issue when trying to login to a container running sshd.
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pam
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1070851
TreeView+ depends on / blocked
 
Reported: 2014-05-21 17:48 UTC by Daniel Walsh
Modified: 2015-01-26 18:28 UTC (History)
13 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-01-26 18:28:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Daniel Walsh 2014-05-21 17:48:22 UTC

Comment 1 Daniel Walsh 2014-05-21 17:50:17 UTC
This very well could be an issue with docker.  It is being discussed here.

https://github.com/dotcloud/docker/issues/4846


When you try to login, we see an error.



"PTY allocation request failed on channel 0"

Comment 2 Petr Lautrbach 2014-05-22 08:09:19 UTC
I've built an sshd docker container using fedora-dockerfiles on rawhide, changed ENTRYPOINT [1] and I'm not able to log in indeed, but I don't see "PTY allocation request failed on channel 0" message. However there's a PAM issue [2]. 

So it'd be nice to have a reproducer that we can be sure that we are trying to solve the same problem.


[1] ENTRYPOINT ["/usr/sbin/sshd", "-D", "-ddd"]

[2] 
debug1: PAM: establishing credentials
debug3: PAM: opening session
PAM: pam_open_session(): Cannot make/remove an entry for the specified session

Comment 3 Tomas Mraz 2014-05-22 09:15:53 UTC
From the github discussion it seems that it is regression in docker.

Comment 4 Tomas Mraz 2014-05-22 10:42:39 UTC
Please try pam-1.1.8-11.fc21 in Rawhide.

Comment 5 Daniel Walsh 2014-05-28 16:37:01 UTC
Jeremy, have you tried the new pam package?


Note You need to log in before you can comment on or make changes to this bug.