# Can't login to ui v21.4.5

**URL:** <https://forum.greenbone.net/t/cant-login-to-ui-v21-4-5/12475>\
**Category:** Greenbone Community Edition\
**Created:** [June 25, 2022, 5:20pm UTC](https://forum.greenbone.net/t/cant-login-to-ui-v21-4-5/12475 "2022-06-25T17:20:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![tocyn01](https://forum.greenbone.net/letter_avatar/tocyn01/32/6_449c533f586939b6e5f246632a46421f.png) [@tocyn01](https://forum.greenbone.net/u/tocyn01)\
**Post date:** [June 25, 2022, 5:20pm UTC](https://forum.greenbone.net/t/cant-login-to-ui-v21-4-5/12475/1 "2022-06-25T17:20:34Z")

</div>

I have check the setup of my gvm and password all changed create new user new password with no error and I can’t still login. I have tried all the following --create-user=myuser --new-password=Passwd1234…gvmd --create-user=admin2 --new-password=admin no errors and I am loading from my Kali IP

---

<div class="post-metadata">

**Author:** ![Eero](https://forum.greenbone.net/letter_avatar/eero/32/6_449c533f586939b6e5f246632a46421f.png) [@Eero](https://forum.greenbone.net/u/Eero)\
**Post date:** [June 25, 2022, 6:00pm UTC](https://forum.greenbone.net/t/cant-login-to-ui-v21-4-5/12475/2 "2022-06-25T18:00:39Z")

</div>

@tocyn01 well. provide unedited commandline. on kali linux gmv user might be \_gvm instead of gvm.

Eero

---

<div class="post-metadata">

**Author:** ![tocyn01](https://forum.greenbone.net/letter_avatar/tocyn01/32/6_449c533f586939b6e5f246632a46421f.png) [@tocyn01](https://forum.greenbone.net/u/tocyn01)\
**Post date:** [June 25, 2022, 6:15pm UTC](https://forum.greenbone.net/t/cant-login-to-ui-v21-4-5/12475/3 "2022-06-25T18:15:18Z")

</div>

root@kali:~# \_gvm --get-users  
\_gvm: command not found  
root@kali:~# gvmd --user=admin --new-password=admin  
root@kali:~#

 ![image](https://community.greenbone.net/uploads/default/original/2X/9/90ac6bdb8514485b0357fdf85a4bdfaf695c11ce.jpeg)

---

<div class="post-metadata">

**Author:** ![tocyn01](https://forum.greenbone.net/letter_avatar/tocyn01/32/6_449c533f586939b6e5f246632a46421f.png) [@tocyn01](https://forum.greenbone.net/u/tocyn01)\
**Post date:** [June 25, 2022, 6:18pm UTC](https://forum.greenbone.net/t/cant-login-to-ui-v21-4-5/12475/4 "2022-06-25T18:18:23Z")

</div>

This new admin password would not work even when I create new user with new password

 ![image](https://community.greenbone.net/uploads/default/original/2X/9/900f2a61f2fcadc8995e7e00b9d2aad2af298915.jpeg)

---

<div class="post-metadata">

**Author:** ![Eero](https://forum.greenbone.net/letter_avatar/eero/32/6_449c533f586939b6e5f246632a46421f.png) [@Eero](https://forum.greenbone.net/u/Eero)\
**Post date:** [June 25, 2022, 6:19pm UTC](https://forum.greenbone.net/t/cant-login-to-ui-v21-4-5/12475/5 "2022-06-25T18:19:31Z")

</div>

@tocyn01 that is totally wrong. you need first to switch to \_gvm user using su:

su - \_gvm -s /bin/bash

and then run the commands

Eero

---

<div class="post-metadata">

**Author:** ![tocyn01](https://forum.greenbone.net/letter_avatar/tocyn01/32/6_449c533f586939b6e5f246632a46421f.png) [@tocyn01](https://forum.greenbone.net/u/tocyn01)\
**Post date:** [June 25, 2022, 6:25pm UTC](https://forum.greenbone.net/t/cant-login-to-ui-v21-4-5/12475/6 "2022-06-25T18:25:20Z")

</div>

You are really a life saver been bathing with this and I just logged in! thank you so very much

---

<div class="post-metadata">

**Author:** ![cfi](https://forum.greenbone.net/letter_avatar/cfi/32/6_449c533f586939b6e5f246632a46421f.png) [@cfi](https://forum.greenbone.net/u/cfi)\
**Post date:** [June 28, 2022, 11:34am UTC](https://forum.greenbone.net/t/cant-login-to-ui-v21-4-5/12475/7 "2022-06-28T11:34:47Z")

</div>

Note that the `README.Debian` (should be in `/usr/share/doc/gvm` or similar) of the `gvm` package shipped in Kali should contain the following notes on the required commands and their prefixes:

```auto
How to run other GVM commands in Kali / Debian
-------------------------------------------------

Since gvm 11, we use a special user _gvm.

You need to use this user to run the GVM commands, like

'sudo -u _gvm -- gvmd --get-scanners'
'sudo -u _gvm -- gvmd *'

'sudo -u _gvm greenbone-nvt-sync'

'sudo -u _gvm -- gvm-cli [options]'

NOTE: if you run commands only with sudo (or as root user), created or
updated files may by owned by root instead of _gvm user and your
installation will not work correctly.

```

---

<div class="post-metadata">

**Author:** ![Eero](https://forum.greenbone.net/letter_avatar/eero/32/6_449c533f586939b6e5f246632a46421f.png) [@Eero](https://forum.greenbone.net/u/Eero)\
**Post date:** [June 28, 2022, 6:53pm UTC](https://forum.greenbone.net/t/cant-login-to-ui-v21-4-5/12475/8 "2022-06-28T18:53:42Z")

</div>

@cfi sudo -u works also 🙂 I usually prefer su - with -s /bin/bash 🙂

Eero

---

<div class="post-metadata">

**Author:** ![cfi](https://forum.greenbone.net/letter_avatar/cfi/32/6_449c533f586939b6e5f246632a46421f.png) [@cfi](https://forum.greenbone.net/u/cfi)\
**Post date:** [June 30, 2022, 5:30am UTC](https://forum.greenbone.net/t/cant-login-to-ui-v21-4-5/12475/9 "2022-06-30T05:30:53Z")

</div>

Yes, `su - ` should indeed should work as well.

But if a project / package is providing such detailed instruction for a specific environment like Kali i prefer to suggest that these instructions are followed.

---

<div class="post-metadata">

**Author:** ![system](https://forum.greenbone.net/uploads/default/original/2X/4/4660e797edfaea797a8c9965246072ea26732804.png) [@system](https://forum.greenbone.net/u/system)\
**Post date:** [April 7, 2025, 10:15am UTC](https://forum.greenbone.net/t/cant-login-to-ui-v21-4-5/12475/10 "2025-04-07T10:15:07Z")

</div>

Closed on April 7, 2025, 10:15am UTC


