git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
956140e
)
change ownership of authorized_keys.
author
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Sat, 26 Jul 2008 02:47:44 +0000
(
02:47
+0000)
committer
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Sat, 26 Jul 2008 02:47:44 +0000
(
02:47
+0000)
accounts.py
patch
|
blob
|
history
diff --git
a/accounts.py
b/accounts.py
index
efac0ad
..
012c040
100644
(file)
--- a/
accounts.py
+++ b/
accounts.py
@@
-90,6
+90,7
@@
class Account:
os.chmod(dot_ssh, 0700)
tools.write_file(dot_ssh + '/authorized_keys', lambda f: f.write(new_keys))
logger.verbose('%s: installing ssh keys' % self.name)
+ os.chown(dot_ssh + '/authorized_keys', pwd.getpwnam(self.name)[2], 504)
def start(self, delay=0): pass
def stop(self): pass