Skip to content
This repository has been archived by the owner on Mar 24, 2020. It is now read-only.

sudo: pam_open_session: Permission denied #48

Open
solvingj opened this issue May 21, 2019 · 0 comments
Open

sudo: pam_open_session: Permission denied #48

solvingj opened this issue May 21, 2019 · 0 comments

Comments

@solvingj
Copy link

After building the following Dockerfile, the container cannot use sudo due to PAM issue:

FROM opensuse/leap:42.3

RUN zypper --non-interactive install \
    sudo

#fix bug: https://github.com/openSUSE/docker-containers/issues/82
RUN sed -i 's/.*root.*-.*nproc.*unlimited.*$//g' /etc/security/limits.conf

CMD sudo ls
docker build . -t leap-pam-issue
docker run --rm leap-pam-issue
sudo: pam_open_session: Permission denied
sudo: policy plugin failed session initialization

This was on OpenSUSE, might also affect Centos/rhel related images.

Original:
openSUSE/docker-containers#82 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant