Odoo Help


2 回答
app ポルトガル
2015/11/10 13:10

On Linux, Postgres can actually do a password-less login, using something called the Ident protocol.

Essentially, since Odoo and Postgres are running on the same machine, Postgres can ask the Operating System (the Linux kernel) the name of the system user that the Odoo process is running on, and check if the name matches the database user name. If they do, the login is automatic.

This is actually more secure than password based login, since there's no password to steal; on the other hand, it means you should run Odoo on its own Linux user, to avoid giving access to other programs.

To manually login as "postgres", you can login to the system user called "postgres" with the following command:

sudo su postgres

Then you can connect to any database on the system (try using "psql [database]").

Paulo Matos‏ アンゴラ
2015/11/10 12:35

Dear Hesham,

You actually need to create a user on postgresql in order to be used by Odoo other than "postgres".

On windows install, this is usually created during Odoo installation and all process is automated (setup will request a username and password for postgres and setup everything for you).

On linux, you have to create a user which Odoo will use to connect to postgresql, with a password.This is the safer approach.

This information is later added to an Odoo config file, on specific variables (db_user=xxxxx / db_password = xxxxxx).

Please refer to the following Odoo install tutorial for more information: http://www.theopensourcerer.com/2014/09/how-to-install-openerp-odoo-8-on-ubuntu-server-14-04-lts/



Keep Informed
0 フォロワー
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now