Zach1
(Zachary Schrager)
January 10, 2020, 12:17am
1
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!
shoothub
(Shoothub)
January 10, 2020, 8:07am
2
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
Run command
echo -n "Enter Password: " && head -1 </dev/stdin | tr -d '\n' | sha256sum | cut -d" " -f1
Type your password after prompt Enter Password:
Pres Enter
Use generated password in server.conf
in parameter root_password_sha2 =
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
Zach1
(Zachary Schrager)
January 10, 2020, 5:05pm
3
@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.
system
(system)
Closed
January 24, 2020, 5:05pm
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.