No users found - OpenVAS(GVM) Setup Error

Viewed 470

I am trying to instal OpenVAS to do vulnerability scan in Kali Linux.

VERSION="2022.3"
VERSION_ID="2022.3"
VERSION_CODENAME="kali-rolling"
Debian 5.18.5-1kali6 (2022-07-07) x86_64 GNU/Linux


┌──(rootkali)-[/home/kali/]
└─#  apt update && apt upgrade -y

┌──(rootkali)-[/home/kali/]
└─# apt install openvas

┌──(rootkali)-[/home/kali/]
└─# gvm-setup

┌──(rootkali)-[/home/kali/]
└─# gvm-feed-update -h

┌──(rootkali)-[/home/kali/]
└─# gvm-check-setup

Error:

Step 5: Checking Postgresql DB and user ... 
        OK: Postgresql version and default port are OK.
 gvmd      | _gvm     | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
        ERROR: No users found. You need to create at least one user to log in.
        FIX: create a user by running 'sudo runuser -u _gvm -- gvmd --create-user=<name> --password=<password>'

 ERROR: Your GVM-21.4.3 installation is not yet complete!

I run what it said but again no result..

sudo runuser -u _gvm -- gvmd --create-user=admin --password=admin
Failed to create user: Invalid characters in user name

I have only one version of PostgreSQL, I saw in some blogs that might be a problem but for me, no.

┌──(root㉿kali)-[/etc/postgresql]
└─# ls
14


 ┌──(root㉿kali)-[/etc/postgresql]
└─# pg_lsclusters 
Ver Cluster Port Status Owner    Data directory              Log file
14  main    5432 online postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log

Log file:

cat /var/log/gvm/gvmd.log
md manage:MESSAGE:2022-09-19 10h07.54 utc:7833: No SCAP database found
md manage:MESSAGE:2022-09-19 10h07.54 utc:7833: No CERT database found
md manage:WARNING:2022-09-19 10h07.54 utc:7833: Invalid characters in user name!
    

One another thing I did not understand: Why it did not give me any password, as I understood from the tutorials, it needed to give me a password but it is saying I have one?

enter image description here

Edit: Also posted on greenbone, that it is related to the Kali bug. https://forum.greenbone.net/t/no-users-found-gvm-setup-on-kali-linux/13073 https://bugs.kali.org/view.php?id=7926

Edit2: I also tried to install on Ubuntu, it is not supported as I understood. https://forum.greenbone.net/t/ubuntu-no-greenbone-security-assistant-gsad-found/13092

Edit3: I think only solution is to install old releases o kali. http://old.kali.org/kali-images/ They said 2022.2 is ok, try it.

Edit4: I installed 2022.2 on VirtualBox and just did apt-get update -y, not upgrade. Then apt install openvas, gvm-setup, gvm-feed-update. At this point, I was able to access via browser and in the browser web GUI> Administrator - Feed status should be completed because it is also updating there and then it is good to go!

0 Answers
Related