[vmchecker-request] Configurare programare - CA

Vlad Dogaru ddvlad at herebedragons.ro
Fri Oct 26 21:06:19 EEST 2012


On 10/26/2012 8:50 PM, Valentin Gosu wrote:
> On 10/26/12 9:45 AM, Laura Vasilescu wrote:
>> On Fri, Oct 26, 2012 at 7:40 PM, Valentin Gosu
>> <valentin.gosu at gmail.com> wrote:
>>> Am rezolvat, ar trebui sa fie mai bine acum.
>> "errorTrace": "Traceback (most recent call last):\n  File
>> \"/usr/local/lib/python2.6/dist-packages/vmchecker/websutil.py\", line
>> 243, in get_test_queue_contents\n    look_for_keys=False)\n  File
>> \"/usr/lib/pymodules/python2.6/paramiko/client.py\", line 327, in
>> connect\n    self._auth(username, password, pkey, key_filenames,
>> allow_agent, look_for_keys)\n  File
>> \"/usr/lib/pymodules/python2.6/paramiko/client.py\", line 427, in
>> _auth\n    key = pkey_class.from_private_key_file(key_filename,
>> password)\n  File \"/usr/lib/pymodules/python2.6/paramiko/pkey.py\",
>> line 197, in from_private_key_file\n    key = cls(filename=filename,
>> password=password)\n  File
>> \"/usr/lib/pymodules/python2.6/paramiko/rsakey.py\", line 51, in
>> __init__\n    self._from_private_key_file(filename, password)\n  File
>> \"/usr/lib/pymodules/python2.6/paramiko/rsakey.py\", line 164, in
>> _from_private_key_file\n    data = self._read_private_key_file('RSA',
>> filename, password)\n  File
>> \"/usr/lib/pymodules/python2.6/paramiko/pkey.py\", line 278, in
>> _read_private_key_file\n    f = open(filename, 'r')\nIOError: [Errno
>> 13] Permission denied: '/home/pc/.ssh/id_rsa-vmchecker'\n"
>> }
>>
> Da... nu stiu de ce avea nevoie si de permisiuni de scriere pe cheia
> ssh, dar acum are, si e totul ok.
> Mie mi-a corectat tema dummy care am trimis-o la PC.
> 
> Hope it helps :D

Cred că știu eu de ce e nevoie de permisiuni "mai largi".  Când uploadăm
ceva, procesul care face transferul temei pe tester rulează ca
utilizatorul "apache" (sau "httpd" sau similar).  Implicit, cheia
privată nu e readable de acel utilizator.  Soluția e să setăm ACL-uri pe
cheie, via setfacl.

Nu pot verifica acum, scuze dacă explicația e offtopic :)

Thanks,
Vlad


More information about the vmchecker-request mailing list