Security

How can I change the admin password before splunk is started the first time?

Alan_Bradley
Path Finder

Is there a way to change the splunk admin password from the command line when splunk isn't running?

Anytime I do a splunk install on our servers where splunk is on the net, I have to go manipulate firewall rules twice because splunk comes up with a default password. I'd really love to set that password to a specific one before I start splunk the first time.

Tags (2)
1 Solution

matt
Splunk Employee
Splunk Employee

You should add a new stanza in etc/user-seed.conf before first start.

Reference: http://docs.splunk.com/Documentation/Splunk/5.0/Admin/User-seedconf

View solution in original post

dougmartin
Path Finder

To get rid of the "first time logging in?" messsage on the web app just touch $SPLUNK_HOME/etc/.ui_login

source: https://answers.splunk.com/answers/5543/how-can-i-remove-the-first-time-logging-in-hint-in-the-login... used "splunk edit user admin" but when the web app next comes up it does the whole "first time signing in" and change password which is annoying.

0 Karma

BunnyHop
Contributor

You can also start the splunk instance and then run the command

splunk edit user admin -password YOURNEWPASSWORD -auth admin:changeme

then restart the splunk instance: splunk restart

I have this on a batch file for deployment.

matt
Splunk Employee
Splunk Employee

You should add a new stanza in etc/user-seed.conf before first start.

Reference: http://docs.splunk.com/Documentation/Splunk/5.0/Admin/User-seedconf

Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...