Security

How can I disable password change request at first time login to Splunkweb?

Masa
Splunk Employee
Splunk Employee

How can I disable password change request at first time login to Splunkweb?

  1. Install Splunk
  2. Run "splunk edit user admin -password mynewpassword -auth admin:changeme"
  3. Login to Splunkweb
  4. I can use mynewpassword to login, but I am still asked to change password

Kinda annoying... 🙂

Tags (2)
1 Solution

Masa
Splunk Employee
Splunk Employee
  1. Install Splunk
  2. touch $SPLUNK_HOME/etc/.ui_login
  3. Do the rest

View solution in original post

lukejadamec
Super Champion

IF this is a new install on the the same server, then you can just run a script with a short name that copies some saved files. The script needs to do the following:

Copy a previously configured passwd file to splunk_home/etc/passwd
Copy a previously configured splunk.secret file to splunk_home/etc/auth/splunk.secret
Copy a previously configured server.conf file to splunk_home/etc/system/local/server.conf

Note: The server.conf file key needs to match the other files, and the server name needs to match the server. You will have the same password, which is a security risk, but you can always change the password later.

The one touch solution would be to script the install with the above plus Masa's input.

What OS?

0 Karma

Masa
Splunk Employee
Splunk Employee
  1. Install Splunk
  2. touch $SPLUNK_HOME/etc/.ui_login
  3. Do the rest

Genti
Splunk Employee
Splunk Employee

nice one, Masa! @Sue will make good use of it.

0 Karma

Masa
Splunk Employee
Splunk Employee

Genti! You probably forgot this trick a long time ago. Honestly I didn't remember this post. But, I remember somewhere I wrote it down. Now I know here I wrote it down 🙂

0 Karma

koshyk
Super Champion

can this be part of an app?

0 Karma

harishalipaka
Motivator

there is no code in ui_login what shall i do

Thanks
Harish
0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...