#736642 schroot: PAM error: No module specific data is present

Package:
schroot
Source:
schroot
Description:
Execute commands in a chroot environment
Submitter:
Thomas Bechtold
Date:
2015-05-09 16:36:10 UTC
Severity:
normal
#736642#5
Date:
2014-01-25 19:09:03 UTC
From:
To:
Dear Maintainer,

I created a clean chroot with debootstrap for sid amd64. I try to use
this chroot env together with schroot to run autopkgtests.
When I login to the chroot and then logout, I get the following error:

E: PAM error: No module specific data is present

Attached is the complete log with debugging information.
I already tried to build schroot by myself and just ignored the thrown
error from lib/sbuild/auth/pam.cc when pam_close_session() fails. If I
ignore the error, everything works as expected but I guess that's not
the correct resolution for the problem.

Cheers,

Tom

*** Please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these lines ***

#736642#10
Date:
2014-01-25 22:52:18 UTC
From:
To:
No; we can't afford to ignore the error.  Depending upon what happens
after this point, it might well be a security issue or cause dataloss
depending upon what PAM has been configured to do, though this is
probably unlikely.  But it would certainly be against the spirit of the
PAM API to ignore it.

I think it's most likely that the PAM error is external to schroot;
schroot just asks PAM to start, stop, authenticate etc. and does not
really have any input into what it does.  I would suspect this error
is the fault of a single PAM module.  If it would be possible to
identify which is at fault, we can look into it in more detail.

You could try commenting out the various lines of /etc/pam.d.schroot
and also in the referenced generic files if they don't help.  PAM
might have some means of enabling debugging messages here, but I
don't know for sure.


Regards,
Roger

#736642#15
Date:
2014-01-26 08:43:28 UTC
From:
To:
I commented some pam modules and the problem comes from the ssh
module. If I comment "session optional        pam_ssh.so" from
/etc/pam.d/common-session or just remove the package libpam-ssh,
everything works fine.

#736642#20
Date:
2015-05-03 05:52:07 UTC
From:
To:
I am seeing this issue with libpam-ssh as well.  Can we reassign,
or shall I file a new defect against libpam-ssh?


/Allan

#736642#25
Date:
2015-05-09 16:24:38 UTC
From:
To:
Please reassign; this is unlikely to be a schroot-specific bug.