diff --git a/scripts/test/test-utils.sh b/scripts/test/test-utils.sh index 1ef608b..5e83c26 100644 --- a/scripts/test/test-utils.sh +++ b/scripts/test/test-utils.sh @@ -163,15 +163,15 @@ prepare_ssh_keys() { sudo chown -R root:root tests/ssh-public-key-overlay/root fi if [ "$(stat -c %a tests/ssh-public-key-overlay/root)" != "755" ]; then - chmod 755 tests/ssh-public-key-overlay/root + sudo chmod 755 tests/ssh-public-key-overlay/root fi if [ "$(stat -c %a tests/ssh-public-key-overlay/root/.ssh)" != "755" ]; then - chmod 700 tests/ssh-public-key-overlay/root/.ssh + sudo chmod 700 tests/ssh-public-key-overlay/root/.ssh fi if [ "$(stat -c %a tests/ssh-public-key-overlay/root/.ssh/authorized_keys)" != "755" ]; then - chmod 600 tests/ssh-public-key-overlay/root/.ssh/authorized_keys + sudo chmod 600 tests/ssh-public-key-overlay/root/.ssh/authorized_keys fi if [ "$(stat -c %a tests/ssh-priv-key/key)" != "600" ]; then - chmod 600 tests/ssh-priv-key/key + sudo chmod 600 tests/ssh-priv-key/key fi }