git://git.onelab.eu
/
nodemanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
blind and brutal 2to3
[nodemanager.git]
/
account.py
diff --git
a/account.py
b/account.py
index
576fe71
..
d45f533
100644
(file)
--- 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
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, 0
o
700)
os.chown(dot_ssh, uid, gid)
os.chown(dot_ssh, uid, gid)
- os.chmod(auth_keys, 0600)
+ os.chmod(auth_keys, 0
o
600)
os.chown(auth_keys, uid, gid)
# set self.keys to new_keys only when all of the above ops succeed
os.chown(auth_keys, uid, gid)
# set self.keys to new_keys only when all of the above ops succeed