X-Git-Url: http://git.onelab.eu/?p=nodemanager.git;a=blobdiff_plain;f=account.py;h=d45f5335f1c6f4a796aab9de5c175b04b554a9df;hp=576fe719c0988ac7df4232ecba73959fada13ff4;hb=48a73b18fd7daed13c645c1adeddb57b560e7a2d;hpb=7b8fc390afd0349706c45c3ae970770cdf9dceae diff --git a/account.py b/account.py index 576fe71..d45f533 100644 --- a/account.py +++ b/account.py @@ -125,9 +125,9 @@ class Account: tools.write_file(auth_keys, lambda f: f.write(new_keys)) # set access permissions and ownership properly - os.chmod(dot_ssh, 0700) + os.chmod(dot_ssh, 0o700) os.chown(dot_ssh, uid, gid) - os.chmod(auth_keys, 0600) + os.chmod(auth_keys, 0o600) os.chown(auth_keys, uid, gid) # set self.keys to new_keys only when all of the above ops succeed