<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: admin password on command line in Security</title>
    <link>https://community.splunk.com/t5/Security/admin-password-on-command-line/m-p/97501#M3178</link>
    <description>&lt;P&gt;You can't decrypt the password if that's what you're asking.&lt;/P&gt;

&lt;P&gt;You can reset it:
&lt;A href="http://answers.splunk.com/questions/834/how-could-i-reset-the-admin-password" rel="nofollow"&gt;http://answers.splunk.com/questions/834/how-could-i-reset-the-admin-password&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Or just try logging in from the command line:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk login
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Another option would be to try logging in via the REST API. Here's an example:
&lt;A href="http://answers.splunk.com/questions/8940/how-can-i-run-searches-against-the-splunk-api" rel="nofollow"&gt;http://answers.splunk.com/questions/8940/how-can-i-run-searches-against-the-splunk-api&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Dec 2010 00:19:48 GMT</pubDate>
    <dc:creator>southeringtonp</dc:creator>
    <dc:date>2010-12-02T00:19:48Z</dc:date>
    <item>
      <title>admin password on command line</title>
      <link>https://community.splunk.com/t5/Security/admin-password-on-command-line/m-p/97499#M3176</link>
      <description>&lt;P&gt;The splunkweb front end (webserver) is disabled. How can I check the admin password from the command line?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2010 23:10:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/admin-password-on-command-line/m-p/97499#M3176</guid>
      <dc:creator>steinerdani</dc:creator>
      <dc:date>2010-12-01T23:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: admin password on command line</title>
      <link>https://community.splunk.com/t5/Security/admin-password-on-command-line/m-p/97500#M3177</link>
      <description>&lt;P&gt;Do you mean changing the admin password? For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk edit user admin -password foo -role admin -auth admin:changeme
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This command changes the admin password from &lt;CODE&gt;changeme&lt;/CODE&gt; to &lt;CODE&gt;foo&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Note: Passwords with special characters that would be interpreted by the shell (for example &lt;CODE&gt;$&lt;/CODE&gt; or &lt;CODE&gt;!&lt;/CODE&gt;) must be either escaped or single-quoted:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk edit user admin -password 'fflanda$' -role admin -auth admin:changeme
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk edit user admin -password fflanda\$ -role admin -auth admin:changeme
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Dec 2010 00:18:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/admin-password-on-command-line/m-p/97500#M3177</guid>
      <dc:creator>MarioM</dc:creator>
      <dc:date>2010-12-02T00:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: admin password on command line</title>
      <link>https://community.splunk.com/t5/Security/admin-password-on-command-line/m-p/97501#M3178</link>
      <description>&lt;P&gt;You can't decrypt the password if that's what you're asking.&lt;/P&gt;

&lt;P&gt;You can reset it:
&lt;A href="http://answers.splunk.com/questions/834/how-could-i-reset-the-admin-password" rel="nofollow"&gt;http://answers.splunk.com/questions/834/how-could-i-reset-the-admin-password&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Or just try logging in from the command line:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk login
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Another option would be to try logging in via the REST API. Here's an example:
&lt;A href="http://answers.splunk.com/questions/8940/how-can-i-run-searches-against-the-splunk-api" rel="nofollow"&gt;http://answers.splunk.com/questions/8940/how-can-i-run-searches-against-the-splunk-api&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2010 00:19:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/admin-password-on-command-line/m-p/97501#M3178</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-12-02T00:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: admin password on command line</title>
      <link>https://community.splunk.com/t5/Security/admin-password-on-command-line/m-p/97502#M3179</link>
      <description>&lt;P&gt;this process will expose the new password in clear text in the servers history.  Is there a way of doing this without exposing the password?  (other than doing it on one server then deleteing the history and then copy the passwd file to all other servers than need their password changed from the default)&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 16:11:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/admin-password-on-command-line/m-p/97502#M3179</guid>
      <dc:creator>suttonj</dc:creator>
      <dc:date>2015-03-04T16:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: admin password on command line</title>
      <link>https://community.splunk.com/t5/Security/admin-password-on-command-line/m-p/97503#M3180</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# read -s 'pw?password: '; echo; splunk edit user admin -password "$pw" -role admin -auth admin:changeme
password: 
User admin edited.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Jun 2016 01:36:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/admin-password-on-command-line/m-p/97503#M3180</guid>
      <dc:creator>corydodt</dc:creator>
      <dc:date>2016-06-21T01:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: admin password on command line</title>
      <link>https://community.splunk.com/t5/Security/admin-password-on-command-line/m-p/97504#M3181</link>
      <description>&lt;P&gt;history -c will deleate all your CLI history &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;BR /&gt;
cheers&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 15:48:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/admin-password-on-command-line/m-p/97504#M3181</guid>
      <dc:creator>ThomasControlw1</dc:creator>
      <dc:date>2017-03-10T15:48:38Z</dc:date>
    </item>
  </channel>
</rss>

