Doing a scan with greenbone from the command line

  • Hi,

I am currently experiencing difficulties with scanning using OpenVAS from the command line. Could someone please assist me with resolving this issue?

Thank you for your support.

Traceback (most recent call last):
  File "/usr/bin/gvm-cli", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3/dist-packages/gvmtools/cli.py", line 64, in main
    do_not_run_as_root()
  File "/usr/lib/python3/dist-packages/gvmtools/helper.py", line 162, in do_not_run_as_root
    raise RuntimeError("This tool MUST NOT be run as root user.")
RuntimeError: This tool MUST NOT be run as root user.

Firstly, it looks like you are using gvm-tools which will technically interact with GVMD not OpenVAS. Secondly, I think the error message gives you a head start to solving the problem. Don’t run the command as root.