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!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...