# Password explanation

**URL:** <https://dietpi.com/forum/t/password-explanation/14415>\
**Category:** General Discussion\
**Created:** [23 September 2022 07:28 UTC](https://dietpi.com/forum/t/password-explanation/14415 "2022-09-23T07:28:20Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eskimos2000](https://dietpi.com/forum/user_avatar/dietpi.com/eskimos2000/32/2639_2.png) [@Eskimos2000](https://dietpi.com/forum/u/Eskimos2000)\
**Post date:** [23 September 2022 07:28 UTC](https://dietpi.com/forum/t/password-explanation/14415/1 "2022-09-23T07:28:20Z")

</div>

Hi guys,

On the start of Dietpi distro there is a step:

Change existing unix user passwords? ││ ││ DietPi has two accounts by default “root” and “dietpi”. On first boot, both share the global password “dietpi”, ││ respectively the one set in “dietpi.txt”. ││ ││ It is highly recommended to change this password, ideally, it should be different than the global software password. ││ ││ Would you like to change the login passwords for “root” and “dietpi”?

What the heck is it about so I can not get it what is this global software password?

I thought that root is root like admin with all privileges.  
And dietpi is like a user. Now there is magical global software password ?

Plain English please.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [23 September 2022 07:36 UTC](https://dietpi.com/forum/t/password-explanation/14415/2 "2022-09-23T07:36:42Z")

</div>

> [@Eskimos2000](#):
>
> Now there is magical global software password ?

YES (hope it was plain enough 😉 )

The `global software password` we use as initial password on software apps like PiHole, AGH, NextCloud, Deluge, DietPi Dashboard or other apps having a web site login. For security reason it should be different from os user password.

---

<div class="post-metadata">

**Author:** ![Eskimos2000](https://dietpi.com/forum/user_avatar/dietpi.com/eskimos2000/32/2639_2.png) [@Eskimos2000](https://dietpi.com/forum/u/Eskimos2000)\
**Post date:** [23 September 2022 08:21 UTC](https://dietpi.com/forum/t/password-explanation/14415/3 "2022-09-23T08:21:33Z")

</div>

Thx, I am still not sure but understand more hopefully. 🙃

---

<div class="post-metadata">

**Author:** ![Rhizome](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/r/f6c823/32.png) [@Rhizome](https://dietpi.com/forum/u/Rhizome)\
**Post date:** [10 October 2022 21:25 UTC](https://dietpi.com/forum/t/password-explanation/14415/4 "2022-10-10T21:25:25Z")

</div>

It’s so long ago that I set the GSP. How do I go about resetting the Global Software Password? I installed Dietpi Dashboard and cannot login.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [10 October 2022 21:52 UTC](https://dietpi.com/forum/t/password-explanation/14415/6 "2022-10-10T21:52:59Z")

</div>

> [@Rhizome](#):
>
> ow do I go about resetting the Global Software Password?

this can be done using `dietpi-config`. But it will not change existing software installations.

In case of DietPi Dashboard, you would need adjust `/opt/dietpi-dashboard/config.toml` manually. Within configuration file, you have a section for password configuration and some hints on how to adjust.

---

<div class="post-metadata">

**Author:** ![Rhizome](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/r/f6c823/32.png) [@Rhizome](https://dietpi.com/forum/u/Rhizome)\
**Post date:** [28 October 2022 14:45 UTC](https://dietpi.com/forum/t/password-explanation/14415/7 "2022-10-28T14:45:12Z")

</div>

Thanks Joulinar. There are 2 options I see. Can you explain how to use them?

```auto
# To get hash: "echo -n '<PASSWORD>' | sha512sum"
hash = "xxxx

```

```auto
# To get random secret: "openssl rand -hex 32" 
secret = "xxxx"

```

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [28 October 2022 18:43 UTC](https://dietpi.com/forum/t/password-explanation/14415/8 "2022-10-28T18:43:58Z")

</div>

should be the first one.

---

<div class="post-metadata">

**Author:** ![Rhizome](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/r/f6c823/32.png) [@Rhizome](https://dietpi.com/forum/u/Rhizome)\
**Post date:** [29 October 2022 13:45 UTC](https://dietpi.com/forum/t/password-explanation/14415/9 "2022-10-29T13:45:50Z")

</div>

I ran the first command, input my current dietpi password to hash it, inserted & saved it in the config.toml file, rebooted the rpi, but when I try to login to the dashboard, I get the message:  
“Incorrect password”.  
I used my dietpi password and username. Am I doing something incorrectly?

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [29 October 2022 17:10 UTC](https://dietpi.com/forum/t/password-explanation/14415/10 "2022-10-29T17:10:43Z")

</div>

I tested it right now and it’s working for me.  
Did you restart the service?  
And did you make sure to only copy to the last character of the hash, don’t copy the `-`  
e.g. output of the command: `faikhjfaosifhasoifh -`  
The last charcter would be the `h`

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [29 October 2022 19:41 UTC](https://dietpi.com/forum/t/password-explanation/14415/11 "2022-10-29T19:41:55Z")

</div>

> [@Rhizome](#):
>
> I used my dietpi password and username. Am I doing something incorrectly?

Yes, because there is nothing where you can add a user name. There should be password field only. If you enter a user, you are in an incorrect login screen. As well it is not your dietpi user password. It is the password you have set by copying the hass value into `/opt/dietpi-dashboard/config.toml`

I checked it as well and created a new password without issues. To avoid any mistakes during copying password hash from A to B, you can use following

```auto
G_CONFIG_INJECT 'hash[[:blank:]]' "hash = \"$(echo -n "password" | sha512sum | mawk '{print $1}')\"" /opt/dietpi-dashboard/config.toml
systemctl restart dietpi-dashboard.service

```

Close all browser tabs before trying to login again.
