From 7a75ab39a870a358a2ef2eb90fee4e74d2e1db59 Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed Date: Sat, 26 Jul 2008 02:47:44 +0000 Subject: [PATCH] change ownership of authorized_keys. --- accounts.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.43.0