From 5ba8effe1a45f744251fb7661ef0938bd6e5ce55 Mon Sep 17 00:00:00 2001 From: Shreya Date: Mon, 7 Jun 2021 13:26:14 +0530 Subject: [PATCH] Use octal representation for permissions --- monkey/monkey_island/cc/services/utils/file_handling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/services/utils/file_handling.py b/monkey/monkey_island/cc/services/utils/file_handling.py index a96e8baac..114405647 100644 --- a/monkey/monkey_island/cc/services/utils/file_handling.py +++ b/monkey/monkey_island/cc/services/utils/file_handling.py @@ -11,7 +11,7 @@ def ensure_file_existence(file: str) -> None: def ensure_file_permissions(file: str) -> None: if not file_has_expected_permissions(path=file, expected_permissions="0o400"): raise InsecurePermissionsError( - f"{file} has insecure permissions. Required permissions: r--------. Exiting." + f"{file} has insecure permissions. Required permissions: 400. Exiting." )