Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot run sudo: policy plugin fails to initialize session #10
I have noticed that running
sudo: policy plugin failed session initialization
this prevents me from building packages with the OBS.
NOTE: This issue was originally about SSL issues with OSC checkout, but I seem to be rid of this error. This fix occurred after upgrading my docker container with
Thanks for your time,
This is not related with issue #11, the bug can be triggered also with the fixed image.
The problem seems to be caused by pam 1.2.1 which now has the following limits inside of
None of these entries is available inside of pam 1.1.8, which is the version shipped with the 42.1 docker image.
It turns out this line is the offender:
By commenting this line
That really puzzles me, I don't see how we could be exceeding this value.
@cyphar do you have any idea?
@flavio, just for the record
We are having a similar issue in leap 42.3 here openSUSE/docker-containers#82 and apparently sudo fails when pam tries to apply the rules from /etc/security/limits.conf which exceeds the default docker values for the container's PID 1. Since Leap 42.3 if limits.conf has higher values to the default (or set with