collectd - CGIHTTPServer.py Permission denied

Fórumok

Sziasztok,

 

https://www.tecmint.com/install-collectd-and-collectd-web-to-monitor-se…

szerint probalom felrakni es konfiguralni a collectd monitoring csomagot, azonban hibat jelez

http://szerver_ip:8888/ inditasakor:

================

Traceback (most recent call last):
  File "/usr/lib/python2.7/CGIHTTPServer.py", line 248, in run_cgi
    os.execve(scriptfile, args, env)
OSError: [Errno 13] Permission denied
10.238.142.181 - - [25/Aug/2020 05:23:00] CGI script exit status 0x7f00
10.238.142.181 - - [25/Aug/2020 05:23:00] "GET /cgi-bin/time.cgi HTTP/1.1" 200 -
Traceback (most recent call last):
  File "/usr/lib/python2.7/CGIHTTPServer.py", line 248, in run_cgi
    os.execve(scriptfile, args, env)
OSError: [Errno 13] Permission denied
10.238.142.181 - - [25/Aug/2020 05:23:00] CGI script exit status 0x7f00

================

A CGIHTTPServer.py szkript nobody user alatt futtatna a szkriptet, en azonban root-kent inditottam.

 

try:
    os.setuid(nobody)
except os.error:
    pass

Hogyan tudom megis "eletkepesse tenni" a szkriptet?

Koszonom a segitseget.

Ardi

Hozzászólások

Ehhez már 8 éve nem nyúlt senki, félek nem azért, mert már nincs rajta mit fejleszteni.