From 48ff7da5cb7ca8c3a5c21ce57f7c51e3e19958c8 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Thu, 27 Jun 2024 09:59:58 +0200 Subject: [PATCH] ipatests: fix / permissions for test_nested_group_members The test test_nested_group_members is performing a ssh login with a private key and this command may fail if the root directory does not have the right permissions on the ssh server (see https://access.redhat.com/solutions/6798261) Ensure that / has 755 before launching the test. Fixes: https://pagure.io/freeipa/issue/9615 Signed-off-by: Florence Blanc-Renaud Reviewed-By: Francisco Trivino --- ipatests/test_integration/test_sssd.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ipatests/test_integration/test_sssd.py b/ipatests/test_integration/test_sssd.py index 8d7adf53f..b76e9365c 100644 --- a/ipatests/test_integration/test_sssd.py +++ b/ipatests/test_integration/test_sssd.py @@ -672,6 +672,10 @@ class TestNestedMembers(IntegrationTest): clear_sssd_cache(client) + # Workaround for https://pagure.io/freeipa/issue/9615 + # Make sure that / on the client has expected permissions + client.run_command(['chmod', '755', '/']) + cmd = ['ssh', '-i', '/tmp/user_ssh_priv_key', '-q', '{}@{}'.format(self.username, client.hostname), 'groups']