On 13/02/14 22:19, Colin Watson wrote:
> On Thu, Feb 13, 2014 at 08:14:15PM +0100, Carlos Alberto Lopez Perez wrote:
>> I hit this bug after upgrading a machine. After rebooting it I was
>> unable to login again.
> 
> Unfortunately I haven't successfully reproduced this yet ...
> 
>> On /var/log/auth.log was the following error:
>> sshd[10480]: error: PAM: pam_open_session(): Cannot make/remove an entry for 
>> the specified session
> 
> Could you clarify whether "pam_loginuid(sshd:session): set_loginuid
> failed" is also in the log, as per the first message in this bug report?
> 

Yes. The complete auth.log for a failed attempt to login as root is:


Feb 13 10:57:41 bb-webkit2-rel-64 sshd[10480]: Accepted publickey for root from 
192.168.0.121 port 37267 ssh2: DSA 
1a:f2:16:e1:71:43:62:b6:13:af:91:67:e6:f0:59:8a
Feb 13 10:57:41 bb-webkit2-rel-64 sshd[10480]: pam_loginuid(sshd:session): 
set_loginuid failed
Feb 13 10:57:41 bb-webkit2-rel-64 sshd[10480]: pam_unix(sshd:session): session 
opened for user root by (uid=0)
Feb 13 10:57:41 bb-webkit2-rel-64 sshd[10480]: error: PAM: pam_open_session(): 
Cannot make/remove an entry for the specified session
Feb 13 10:57:41 bb-webkit2-rel-64 sshd[10480]: Received disconnect from 
192.168.0.121: 11: disconnected by user


Is also worth telling that not only login as root was failing,
but also login as any other normal user via PAM/LDAP: 

Feb 13 10:57:09 bb-webkit2-rel-64 sshd[10409]: pam_unix(sshd:auth): 
authentication failure; logname= uid=0 euid=0 tty=ssh ruser= 
rhost=ip121.dynamic.igalia.com  user=clopez
Feb 13 10:57:09 bb-webkit2-rel-64 sshd[10409]: Accepted password for clopez 
from 192.168.0.121 port 37262 ssh2
Feb 13 10:57:09 bb-webkit2-rel-64 sshd[10409]: pam_loginuid(sshd:session): 
set_loginuid failed
Feb 13 10:57:09 bb-webkit2-rel-64 sshd[10409]: pam_unix(sshd:session): session 
opened for user clopez by (uid=0)
Feb 13 10:57:09 bb-webkit2-rel-64 sshd[10409]: error: PAM: pam_open_session(): 
Cannot make/remove an entry for the specified session
Feb 13 10:57:09 bb-webkit2-rel-64 sshd[10413]: Received disconnect from 
192.168.0.121: 11: disconnected by user


I didn't tried with a local normal (not-root) user,
but I can give it a try if you think is worth.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to