Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
3099 Lượt xem

Hello, i forget my admin odoo14 CE password (installed on a remote ubuntu 20.04) , and can't recover it from UI, How can i set it from SSH Please ? 

I want to connect directly via ssh to the database and reset it ? does it work ? how to do it exactly ? thanks in advance.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

video reference here

 

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

thank you very much !

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello BENKOULAL RAMZI WASSIM,


I hope you find this message well.


Please find below steps to change the Odoo 14 user password in Ubuntu 20.04 from SSH:


1. Open Terminal in your system (Ctrl+Shift+T).

2. SSH into the desired server: ssh your_username@your_system_ip_address (eg, odoo@192.159.2.524).

3. Enter your system password (in this case, the password for the "odoo" system user).

4. Access PostgreSQL: sudo su - postgres.

5. Enter the PostgreSQL password.

6. Enter the desired database: psql db_name.

7. Change the password: UPDATE res_users SET password='your_new_password' WHERE login='admin'; (ensure the password is enclosed in single quotes, eg, UPDATE res_users SET password='odoo' WHERE login='admin'.

8. Commit changes: \q.

9. Restart service: sudo service postgresql restart. (make sure to restart the service).


I hope this information proves helpful to you.

Thanks & Regards,
Email: odoo@aktivsoftware.com     

Skype: kalpeshmaheshwari

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 20
5568
0
thg 2 21
3390
3
thg 9 25
2658
0
thg 8 25
212
1
thg 8 25
2187