From ca0acf044571142b9b0b9bb23f7ae0b78a454fad Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sat, 27 Jul 2024 10:11:46 -0600 Subject: [PATCH] refactor: set SSH path to permission 700 --- server/setup/config-paths.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/server/setup/config-paths.ts b/server/setup/config-paths.ts index ecd1a20a6..3cf8f8415 100644 --- a/server/setup/config-paths.ts +++ b/server/setup/config-paths.ts @@ -34,17 +34,7 @@ export const setupDirectories = () => { try { createDirectoryIfNotExist(dir); if (dir === SSH_PATH) { - /* Changing SSH Keys permission to 600 keeping the SSH folder writable */ - spawnSync("find", [ - SSH_PATH, - "-type", - "f", - "-exec", - "chmod", - "600", - "{}", - ";", - ]); + chmodSync(SSH_PATH, "700"); } } catch (error) { console.log(error, " On path: ", dir);