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!

Exporting Splunk Apps

Join us on Monday, October 21 at 11 am PT | 2 pm ET!With the app export functionality, app developers and ...

Cisco Use Cases, ITSI Best Practices, and More New Articles from Splunk Lantern

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

Build Your First SPL2 App!

Watch the recording now!.Do you want to SPL™, too? SPL2, Splunk's next-generation data search and preparation ...