mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
parent
9e364910f5
commit
48ff7da5cb
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user