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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...