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

View solution in original post

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
Builder

there is no code in ui_login what shall i do

0 Karma
Did you miss .conf21 Virtual?

Good news! The event's keynotes and many of its breakout sessions are now available online, and still totally FREE!