Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

In which file the default password for the admin user is stored ?

In which file the default password for the admin user is stored ?

New Contributor

Hello,

I need to know in which file the default password which is "admin" for the default user "admin" is stored on the ambari-server?

5 REPLIES 5

Re: In which file the default password for the admin user is stored ?

@raouia ,

I'm not sure if it stores the password in a file. If you are looking for the storage in database, it is stored in ambari database and users table. To check password from postgres you can use

psql -U ambari -d ambari

password : bigdata( default)

ambari=> select user_password from users where user_name='admin';

This will be a salted value

Thanks,

Aditya

Re: In which file the default password for the admin user is stored ?

New Contributor

@Aditya Sirna

Thank you for your explanation.

Re: In which file the default password for the admin user is stored ?

Super Mentor

@raouia

Ambari apsswords are not stored in a file by default. It uses DB store by default (if you have not set the LDAP/AD authentication)

ambari=> update ambari.users set user_password='538916f8943ec225d97a9a86a2c6ec0818c1cd400e09e03b660fdaaec4af29ddbb6f2b1033b81b00' where user_name='admin'

.

You can use the above SQL query in abari Database to reset the "admin" user to default password "admin"

Re: In which file the default password for the admin user is stored ?

Super Mentor

@raouia

The above password is stored in ambari DB in encoded form.

However the Encoded String "538916f8943ec225d97a9a86a2c6ec0818c1cd400e09e03b660fdaaec4af29ddbb6f2b1033b81b00" means "admin".

This approach you can use to reset the admin user password.

Re: In which file the default password for the admin user is stored ?

New Contributor

@Jay SenSharma

Thank you for your explanation.

Don't have an account?
Coming from Hortonworks? Activate your account here