From 4524f03a48cfdb551bfcc418788976f691a89963 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 12 Mar 2019 04:33:47 +0000 Subject: [PATCH] issue #271: add mitogen__permdenied user to Docker image. --- tests/data/docker/mitogen__permdenied.profile | 4 ++++ tests/image_prep/_user_accounts.yml | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/data/docker/mitogen__permdenied.profile diff --git a/tests/data/docker/mitogen__permdenied.profile b/tests/data/docker/mitogen__permdenied.profile new file mode 100644 index 00000000..4a2be07e --- /dev/null +++ b/tests/data/docker/mitogen__permdenied.profile @@ -0,0 +1,4 @@ + +mkdir -p bad +chmod 0 bad +cd bad diff --git a/tests/image_prep/_user_accounts.yml b/tests/image_prep/_user_accounts.yml index a5b63c13..5f1bf0dc 100644 --- a/tests/image_prep/_user_accounts.yml +++ b/tests/image_prep/_user_accounts.yml @@ -20,6 +20,7 @@ - readonly_homedir - require_tty - require_tty_pw_required + - permdenied - slow_user - webapp - sudo1 @@ -98,6 +99,14 @@ - bashrc - profile + - name: "Login throws permission denied errors (issue #271)" + copy: + dest: ~mitogen__permdenied/.{{item}} + src: ../data/docker/mitogen__permdenied.profile + with_items: + - bashrc + - profile + - name: Install pubkey for mitogen__has_sudo_pubkey block: - file: