InDefero

Sign in or create your account | Project List | Help

Issue 247: cron overwrites authorized_keys during cron run

Reported by Michael Hill, Jul 2, 2009

After adding a new subsequent user who then add their rsa key the 
authorized_keys is overwritten removing any previously existing 
keys.

Centos5.3

My workaround: 
In Cron.php around line 57 change

file_put_contents($authorized_keys, $out, LOCK_EX);

to 

//file_put_contents($authorized_keys, $out, LOCK_EX);

Then just manually add the rsa key with the prefix ... i just copied 
an existing one and changed the username + actual key

Comment 1 by Loïc d'Anterroches, Jul 2, 2009

This was a bad report, this is working as it should.

Micheal was thinking that it was possible to have multiple keys per 
user but this is not the case.
Status: WontFix

Created: 8 months 19 days ago by Michael Hill

Updated: 8 months 19 days ago

Status: WontFix

Followed by: 1 person

Labels:
Type:Defect
Priority:Medium