mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-22 15:13:50 -06:00
ipatests: fix / permissions to allow ssh with private key
The test test_ssh_key_connection is performing a ssh login with a private 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/9607 Signed-off-by: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Francisco Trivino <ftrivino@redhat.com>
This commit is contained in:
parent
4521fe5f91
commit
60c127d197
@ -639,6 +639,11 @@ class TestIPACommand(IntegrationTest):
|
||||
# change private key permission to comply with SS rules
|
||||
os.chmod(first_priv_key_path, 0o600)
|
||||
|
||||
# Make sure that / has rwxr-xr-x permissions on the master
|
||||
# otherwise sshd will deny login using private key
|
||||
# https://access.redhat.com/solutions/6798261
|
||||
self.master.run_command(['chmod', '755', '/'])
|
||||
|
||||
# start to look at logs a bit before "now"
|
||||
# https://pagure.io/freeipa/issue/8432
|
||||
since = time.strftime(
|
||||
|
Loading…
Reference in New Issue
Block a user