Getting Data In

How can I change the password without knowing the default or entered password for the forwarder?

shawno
New Member

/opt/splunkforwarder/bin/splunk edit user admin -password $NEWPASSWORD

This doesn't work - how can I change the password without knowing the default or entered password for the forwarder?

0 Karma

cmoyanof
New Member

Hello,

May be will be useful for you to copy the bold text below into another admin user with a known password /opt/splunkforwarder/etc/passwd

:admin:$6$zGmwWFy17AEdVhjN$9YkUUBa4LM.Eds96Qs.DtjPOjorXVT57dasdasdasdaca.hxJ75.mmsrYNLmSXcVqu3gHbdBRJXtXv/ceBm1::Administrator:admin:changeme@example.com:::32533

Restart Splunk. After the restart you should be able to login using the previous splunkforwarder

0 Karma

ansif
Motivator

Try below steps:

  • Move the $SPLUNK_HOME/etc/passwd file
    to $SPLUNK_HOME/etc/passwd.bak

  • Restart Splunk. After the restart you
    should be able to login using the
    default login (admin/changeme).

0 Karma
Get Updates on the Splunk Community!

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...

What's New in Splunk Observability Cloud and Splunk AppDynamics - May 2025

This month, we’re delivering several new innovations in Splunk Observability Cloud and Splunk AppDynamics ...

Getting Started with Splunk Artificial Intelligence, Insights for Nonprofits, and ...

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