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 <flo@redhat.com>
Reviewed-By: Francisco Trivino <ftrivino@redhat.com>
This commit is contained in:
Florence Blanc-Renaud 2024-06-27 09:59:58 +02:00
parent 9e364910f5
commit 48ff7da5cb

View File

@ -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']