From: Faiyaz Ahmed Date: Sat, 26 Jul 2008 02:47:44 +0000 (+0000) Subject: change ownership of authorized_keys. X-Git-Tag: NodeManager-1.8-0~21 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7a75ab39a870a358a2ef2eb90fee4e74d2e1db59;p=nodemanager.git change ownership of authorized_keys. --- diff --git a/accounts.py b/accounts.py index efac0ad..012c040 100644 --- 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