Default Admin Password not reseting

New OVA install.
Version 3.1.3-1

ran Sha command to encrypt password

echo -n “MyNewPassword” && head -1 </dev/stdin | tr -d ‘\n’ | sha256sum | cut -d" " -f1

Output:
MyNewPassword
sha-394234fjsdf49 (obviously not my sha hash)

edited the server.conf file with nano. put in the sha hash. and saved.

restarted the server

Invalid credentials, please verify them and retry. I ran through the steps again just to verify I didn’t fat finger or paste something wrong

did I miss something?
I feel like I didn’t. I’m not a green thumb with Linux, but I’m not an expert.

Really want to try this product out.

Thanks!

You probably didn’t use correct way to generate password. I suppose you include your password in “MyNewPassword” field, which is not correct. MyNewPassword is only text with prompt to type new password, so you have to run your command, and after that type your new password and press Enter.

Official documentation use this command, so try to use this steps:
https://docs.graylog.org/en/3.1/pages/getting_started/configure.html#general-properties
https://docs.graylog.org/en/3.1/pages/installation/os/centos.html#graylog

  1. Run command
    echo -n "Enter Password: " && head -1 </dev/stdin | tr -d '\n' | sha256sum | cut -d" " -f1
  2. Type your password after prompt Enter Password:
  3. Pres Enter
  4. Use generated password in server.conf in parameter root_password_sha2 =
  5. Restart graylog service

You can also use another easier command but with caution, that password will be stored in history of commands:
echo -n yourpassword | shasum -a 256

Hope this helps.

2 Likes

@shoothub you’re my hero.

I’m in now.

Thanks.

I’m mainly a windows admin, and when I see a script that says “Enter Password” I typically enter it haha.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.