<?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>question Re: How to change the default username for Ambari UI which is admin? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-username-for-Ambari-UI-which-is/m-p/210011#M69294</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/39293/kabadourawia.html" nodeid="39293"&gt;@raouia &lt;/A&gt;&lt;/P&gt;&lt;P&gt;Your command is correct. It should work without any issue.&lt;/P&gt;&lt;P&gt;I tested the same as following:&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;curl -i -u admin:admin -H "X-Requested-By: ambari" -X PUT -d '{"Users": { "user_name": "admin", "password": "admin_new_pwd", "old_password": "admin"}}' &lt;A href="http://blueprint.example.com:8080/api/v1/users/admin" target="_blank"&gt;http://blueprint.example.com:8080/api/v1/users/admin&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Here &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;blueprint.example.com:&lt;/STRONG&gt;    is my Ambari Server Hostname&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;admin: &lt;/STRONG&gt; is the ambari user name&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;admin:&lt;/STRONG&gt; is old password (If you want to change any other user password then please make sure that you enter admin password only here as this is the password of the admin user. Only Admin user can change password of other users)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;admin_new_pwd&lt;/STRONG&gt;: is the new admin user password.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# curl -i -u admin:admin -H "X-Requested-By: ambari" -X PUT -d '{"Users": { "user_name": "admin", "password": "admin_new_pwd", "old_password": "admin"}}' &lt;A href="http://blueprint.example.com:8080/api/v1/users/admin" target="_blank"&gt;http://blueprint.example.com:8080/api/v1/users/admin&lt;/A&gt;
HTTP/1.1 200 OK
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Cache-Control: no-store
Pragma: no-cache
Set-Cookie: AMBARISESSIONID=1uldktxnl7c1xfgbfx878sows;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
User: admin
Content-Type: text/plain
Content-Length: 0&lt;/PRE&gt;</description>
    <pubDate>Tue, 10 Oct 2017 16:35:46 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-10-10T16:35:46Z</dc:date>
    <item>
      <title>How to change the default username for Ambari UI which is admin?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-username-for-Ambari-UI-which-is/m-p/210010#M69293</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to change the default username for Ambari UI which is "admin" through Ambari API.&lt;/P&gt;&lt;P&gt;I found the service to change the default password for the default username (admin/admin) :&lt;/P&gt;&lt;P&gt;curl -i -u $AMBARI_ADMIN_USERID:$AMBARI_ADMIN_PASSWORD -H "X-Requested-By: ambari" -X PUT -d '{"Users": { "user_name": "$USER_NAME", "password": "$USER_NEW_PWD", "old_password": "$USER_OLD_PWD"}}' &lt;A href="http://$AMBARI_SERVER:8080/api/v1/users/$USER_NAME" target="_blank"&gt;http://$AMBARI_SERVER:8080/api/v1/users/$USER_NAME&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So,could anyone help me to find this service?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:22:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-username-for-Ambari-UI-which-is/m-p/210010#M69293</guid>
      <dc:creator>kabadou_rawia</dc:creator>
      <dc:date>2022-09-16T12:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default username for Ambari UI which is admin?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-username-for-Ambari-UI-which-is/m-p/210011#M69294</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/39293/kabadourawia.html" nodeid="39293"&gt;@raouia &lt;/A&gt;&lt;/P&gt;&lt;P&gt;Your command is correct. It should work without any issue.&lt;/P&gt;&lt;P&gt;I tested the same as following:&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;curl -i -u admin:admin -H "X-Requested-By: ambari" -X PUT -d '{"Users": { "user_name": "admin", "password": "admin_new_pwd", "old_password": "admin"}}' &lt;A href="http://blueprint.example.com:8080/api/v1/users/admin" target="_blank"&gt;http://blueprint.example.com:8080/api/v1/users/admin&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Here &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;blueprint.example.com:&lt;/STRONG&gt;    is my Ambari Server Hostname&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;admin: &lt;/STRONG&gt; is the ambari user name&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;admin:&lt;/STRONG&gt; is old password (If you want to change any other user password then please make sure that you enter admin password only here as this is the password of the admin user. Only Admin user can change password of other users)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;admin_new_pwd&lt;/STRONG&gt;: is the new admin user password.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# curl -i -u admin:admin -H "X-Requested-By: ambari" -X PUT -d '{"Users": { "user_name": "admin", "password": "admin_new_pwd", "old_password": "admin"}}' &lt;A href="http://blueprint.example.com:8080/api/v1/users/admin" target="_blank"&gt;http://blueprint.example.com:8080/api/v1/users/admin&lt;/A&gt;
HTTP/1.1 200 OK
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Cache-Control: no-store
Pragma: no-cache
Set-Cookie: AMBARISESSIONID=1uldktxnl7c1xfgbfx878sows;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
User: admin
Content-Type: text/plain
Content-Length: 0&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Oct 2017 16:35:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-username-for-Ambari-UI-which-is/m-p/210011#M69294</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-10T16:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default username for Ambari UI which is admin?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-username-for-Ambari-UI-which-is/m-p/210012#M69295</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;My question is how to change the &lt;STRONG&gt;username &lt;/STRONG&gt;for Ambari UI which is by default "admin". &lt;/P&gt;&lt;P&gt;I explained that i only found the service to change the default password for admin user and that I'm looking for similar service but this time is &lt;STRONG&gt;to change the default username&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 17:51:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-username-for-Ambari-UI-which-is/m-p/210012#M69295</guid>
      <dc:creator>kabadou_rawia</dc:creator>
      <dc:date>2017-10-10T17:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default username for Ambari UI which is admin?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-username-for-Ambari-UI-which-is/m-p/210013#M69296</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/39293/kabadourawia.html" nodeid="39293"&gt;@raouia &lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can not change the username using Ambari APIs.&lt;/P&gt;&lt;P&gt;The user information is stored inside the ambari Database.  This is how you can login to ambari DB &lt;/P&gt;&lt;PRE&gt;[root@amb25101 ~]# psql -U ambari ambari
Password for user ambari:  bigdata
psql (9.2.18)
Type "help" for help.

ambari=&amp;gt; select user_id, user_name, user_password from users;
 user_id | user_name |                                  user_password                                   
---------+-----------+----------------------------------------------------------------------------------
       1 | admin     | b3ca8cd26130ff701e1fd9ee18f310b2efdf27876b1fb8330367a055cb5852a3c26885a71affdd63
(6 rows)
&lt;/PRE&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/39293/kabadourawia.html" nodeid="39293"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 18:12:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-username-for-Ambari-UI-which-is/m-p/210013#M69296</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-10T18:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default username for Ambari UI which is admin?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-username-for-Ambari-UI-which-is/m-p/210014#M69297</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/39293/kabadourawia.html" nodeid="39293"&gt;@raouia &lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So you can change the default ambari  admin username "admin" directly inside the Ambari Database using the following query.&lt;/P&gt;&lt;PRE&gt;UPDATE users SET user_name = 'ambariadmin' WHERE user_name='admin';
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Any changes we make in the ambari Database requires a ambari server restart.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/39293/kabadourawia.html" nodeid="39293"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 18:29:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-username-for-Ambari-UI-which-is/m-p/210014#M69297</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-10T18:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default username for Ambari UI which is admin?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-username-for-Ambari-UI-which-is/m-p/210015#M69298</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for your pertinent explanation. Now, i found a way  to change the default username through the DB.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 20:13:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-username-for-Ambari-UI-which-is/m-p/210015#M69298</guid>
      <dc:creator>kabadou_rawia</dc:creator>
      <dc:date>2017-10-10T20:13:01Z</dc:date>
    </item>
  </channel>
</rss>

