Use this category only if you have build GSE or components thereof from sources .
When posting you should provide information about your environment using the following template:
gsa: (‘gsad --version’)
gvm: (‘gvmd --version’) : 7.0.3
openvas-scanner: (‘openvassd --version’) 5.1.3
Operating system: ubuntu
Kernel: (‘uname -a’) Linux santhosh-KVM 5.0.0-29-generic #31~18.04.1-Ubuntu SMP Thu Sep 12 18:29:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Installation method / source:
gvm-cli 2.0.0 (API version 1.0.0)
As I am trying to install and run gvm-cli it can run only in non root user. But to make that it will try to read sock file of openvasmd which is under root.
But if I try to install openvasmd and scanner without root I am unable to do the same. Please help me to resolve this.
gvm@santhosh-KVM:/home/santhosh$ gvm-cli socket --socketpath /var/run/openvasmd.sock --xml “<get_version/>”
Traceback (most recent call last):
File “/usr/local/bin/gvm-cli”, line 11, in
File “/usr/local/lib/python3.6/dist-packages/gvmtools/cli.py”, line 127, in main
with protocol_class(connection, transform=transform) as protocol:
File “/usr/local/lib/python3.6/dist-packages/gvm/protocols/gmp.py”, line 78, in enter
File “/usr/local/lib/python3.6/dist-packages/gvm/protocols/base.py”, line 107, in connect
File “/usr/local/lib/python3.6/dist-packages/gvm/connections.py”, line 349, in connect
PermissionError: [Errno 13] Permission denied