Months ago, I installed an Odoo server and it worked perfectly !
Problem is that I forgot the identification (email/pass) for the admin, wich is real bad.
After uninstalling the server and reinstalling it I found out that the database was not wiped. So it didn't change at all !
Please, can anyone help me finding the admin's email and password ?
I'm not very familiar with progresql but res_users displays empty passwords:
You may change admin password using progresql from the terminal. You just need to do like these
odoo#odedra:~$ psql testing_db
psql (9.1.14)
Type "help" for help.
testing_db=# UPDATE res_users SET password='new_password' WHERE login = 'admin';
UPDATE 1
where testing_db is database name.
Now login with new password and change user details whatever you want.
You need to generate password with pbkdf2_sha512 hashing algorithm. Then update the record id = 1 with password_crypt field not password.
For example:
Generating hash from python code:
from passlib.context import CryptContext
print CryptContext(['pbkdf2_sha512']).encrypt('<PASSOWORD>')
Then:
update res_users set password='' ,password_crypt='<HASH>' where id = <ID>;
Replace , with the generated output from the script and designated id.
Related
I freshly installed Grafana and I cannot login at http://localhost:3000/login
All documentation shows that the default user/password should be admin/admin but I'm locked out.
If I go to check into the file C:\Program Files\GrafanaLabs\grafana\defaults.ini the values are set to:
[security]
# disable creation of admin user on first start of grafana
disable_initial_admin_creation = false
# default admin user, created on startup
admin_user = admin
# default admin password, can be changed before first start of grafana, or in profile settings
admin_password = admin
# used for signing
secret_key = SW2YcwTIb9zpOOhoPsMm
# current key provider used for envelope encryption, default to static value specified by secret_key
encryption_provider = secretKey
If I try to retrieve the password through the e-mail I receive no e-mail.
What am I doing wrong?
The problem come from the grafana.db file. This is where your password is stored.
In your local machine, install the sqlite3 package
sudo apt-get install sqlite3
Login into your sql database
sudo sqlite3 /var/lib/grafana/grafana.db
Reset the admin password using SQL update (the new password will be admin)
sqlite> update user set password = '59acf18b94d7eb0694c61e60ce44c110c7a683ac6a8f09580d626f90f4a242000746579358d77dd9e570e83fa24faa88a8a6', salt = 'F3FAxVm33R' where login = 'admin';
sqlite> .exit
Now, you could log in your Grafana web interface using username: admin and password: admin
Why is the login with admin:admin despite the configuration not working?
One possibility here is that you had Grafana installed previously (and when using it with the admin account already had to change the default password set in the config). In that case, you did not freshly install Grafana but instead upgraded it. That preserves the database including users and passwords, therefore you will have to use the password you set for that account.
Why are you not getting a reset password email?
I can think of two possibilities here: One is that Email is not configured in the Grafana config file and therefore no emails can be sent. The second one is that you did not set the email address for the account in question (afaik defaults to "admin#localhost") and therefore you don't get any emails. Of course it is possible that both is the case.
How can you solve this?
By either resetting the admin password (that will allow you to keep your existing data) or by removing Grafana and all files completely and making a fresh install.
After had installed the boost learning theme in Moodle , i faced invalid login please try again
Could be any number of reasons, to work around it:
If you have access to the database, then you can try to reset the password using SQL:
UPDATE mdl_user
SET password = md5('yournewpassword')
WHERE username = 'yourusername'
Or if you have command line access, then you can use this:
php admin/cli/reset_password.php --help
I have installed Foreman via foreman-installer (that pack included Postgres DB 9.5). Now i want to create new user + new database for Zabbix, however it seems that i am doing something wrong. The image shows what commands i typed. The new user is created succesfully but i can't login as it to database. Could someone help me and explain where is the problem?
EDIT: I've added option that was suggested in another thread (WITH LOGIN) but it didn't help me:
I believe the answer is here.
In summary, "peer authentication" means postgres checked the username of the UNIX user (which is not zabbix), and ignored your -U option. Instead, you want to use "password authentication", which you can configure in your pg_hba.conf file. Check the link for instructions how to do that.
Recently we have installed Moodle on our website http://domain.com/test. When we go to admin URl i.e. http://domain.com/test/login it is getting Login page. We have created an admin access and using the same details to login. It is not able to logged in and not showing any error. It remains the Same Login page.
Can Anybody help to fix this issue.
Thanks in Advance.
Regards,
Subbareddy
It might have been a change to the salt setting in the config.php
You can easily reset the password though, either from the command line
cd test
php admin/cli/reset_password.php
Or if you are using myqsql or postgresql
UPDATE mdl_user
SET password = md5('newpassword')
WHERE username = 'admin';
I am working on an open source application that has PostgreSQL as its default DBMS. Now when I install it on my system, its configuration is so that PostgreSQL also gets installed with it.
My problem is with getting access to the installed PostgreSQL database. The database that gets created during installation is named iviewdb.
I read at many forums that the default superuser is postgres, but when I try to get access to the database using this username through a command prompt, it prompts me for password that I don't have.
I wanted to know from where in the PostgreSQL installation directory
the default username and password with the port number to access the database is stored. I have even tried changing the pg_hba.conf file, but that creates a problem with the application and it won't start then.
How can I find the password for this database? I am working in a Windows environment.
The password isn't stored in an easily recoverable manner, and if you change the password, the application may not be able to access the database properly. You may find the password in the application settings or documentation, though.
If you decide to risk changing the postgres user's password, stop the application and PostgreSQL service, and then edit pg_hba.conf. Add (or change if it already exists) a line (if it doesn't exist, add it before any other "host...." lines):
host all all 127.0.0.1/32 trust
And restart the PostgreSQL service. That should give you access from localhost, where you could change the postgres user's password, or add yourself another user with the permissions you want. Then set the pg_hba.conf file back the way it was and restart.
I've encountered this similar problem, and I noticed that the default being set for PostgreSQL upon installation in my case is as follows:
username = postgres
password = ' '