From 96563c8022366a85196a91207ff7a25617c9a7b5 Mon Sep 17 00:00:00 2001 From: Karl Semich <0xloem@gmail.com> Date: Sat, 25 Jun 2016 06:59:20 -0400 Subject: fix for auth permissions --- backend/resilient/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/resilient/__init__.py b/backend/resilient/__init__.py index 4c89074..21f2d85 100644 --- a/backend/resilient/__init__.py +++ b/backend/resilient/__init__.py @@ -17,9 +17,14 @@ html_path = os.path.normpath(os.path.join(backend_path, '../html')) wiki_src_path = os.path.normpath(os.path.join(backend_path, '../wiki')) git_path = os.path.normpath(os.path.join(backend_path, '../.git')) - ssh_config_path = os.path.join(auth_path, "ssh-config") +for auth_subpath, auth_subpaths, auth_subfiles in os.walk(auth_path): + for auth_subfile in auth_subfiles: + auth_subfile = os.path.join(auth_subpath, auth_subfile) + if os.path.isfile(auth_subfile): + os.chmod(auth_subfile, 0600) + def url200(url): try: return urllib.urlopen(url).getcode() == 200 -- cgit v1.2.3