diff --git a/.gitignore b/.gitignore index 053d32e2..4cd2fabe 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ *_enterprise.* .settings/ .ipynb_checkpoints +.mypy_cache # Debian buildings *.debhelper* diff --git a/server/src/uds/transports/X2GO/scripts/authorize.py b/server/src/uds/transports/X2GO/scripts/authorize.py index c3be0e8a..678d77e8 100644 --- a/server/src/uds/transports/X2GO/scripts/authorize.py +++ b/server/src/uds/transports/X2GO/scripts/authorize.py @@ -29,7 +29,7 @@ def updateAuthorizedKeys(user, pubKey): sshFolder = '{}/.ssh'.format(home) if not os.path.exists(sshFolder): try: - os.makedirs(sshFolder, 0700) + os.makedirs(sshFolder, 0o700) os.chown(sshFolder, uid, -1) except OSError as e: if e.errno != errno.EEXIST: @@ -53,7 +53,7 @@ def updateAuthorizedKeys(user, pubKey): # Ensure access is correct os.chown(authorizedKeys, uid, -1) - os.chmod(authorizedKeys, 0600) + os.chmod(authorizedKeys, 0o600) # Done