Closed blackPantherOS closed 6 months ago
Hey @blackPantherOS,
Thanks for your report.
The gnupg directory as described in the installation guide is OPENVAS_GNUPG_HOME=/etc/openvas/gnupg
(see https://greenbone.github.io/docs/latest/22.4/source-build/index.html#feed-validation) and not /home/gvm/.gnupg
.
It should work out of the box when the correct dir is used.
Installing as per documentation breaks functionality!
Details: The installation guide (here: https://greenbone.github.io/docs/latest/22.4/source-build/index.html#ospd-openvas ) instructs to create a "gvm" user like this:
useradd -r -M -U -G wheel -s /usr/sbin/nologin gvm
In this command, the
'-M'
switch disables the creation of a HOME directory.The
'ospd-openvas.service'
file contains the following:However, the 'daemon' needs the gpg directory, which it looks for in the HOME directory, but cannot access it this way, causing this crash:
ValueError: gnupghome should be a directory (it isn't): /home/gvm/.gnupg
**Click here to details of crash output**:
``` máj 24 07:34:37 build-pc systemd[1]: Started ospd-openvas.service. máj 24 07:34:47 build-pc ospd-openvas[2814808]: Traceback (most recent call last): máj 24 07:34:47 build-pc ospd-openvas[2814808]: File "/usr/bin/ospd-openvas", line 8, inEither the gpg path needs to be defined, or the ospd user needs to be changed and the documentation updated accordingly.