Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在PostgreSQL中,如何为用户接受*any*密码";博士后;?_Postgresql_Security_Authentication_Passwords - Fatal编程技术网

在PostgreSQL中,如何为用户接受*any*密码";博士后;?

在PostgreSQL中,如何为用户接受*any*密码";博士后;?,postgresql,security,authentication,passwords,Postgresql,Security,Authentication,Passwords,我同时处理许多项目,有些项目的密码被定义为默认密码,这些密码随项目的不同而不同。我的(Ubuntu)笔记本电脑上安装了postgresql,当然我只在本地使用它进行开发 我知道这很不安全,但我不会远程暴露博士后。因此,为了简化操作,我希望postgresql server接受为postgres用户提供的任何密码。有什么方法可以做到这一点吗?在pg_hba.conf中为所有本地连接设置信任,例如 local all all

我同时处理许多项目,有些项目的密码被定义为默认密码,这些密码随项目的不同而不同。我的(Ubuntu)笔记本电脑上安装了postgresql,当然我只在本地使用它进行开发


我知道这很不安全,但我不会远程暴露博士后。因此,为了简化操作,我希望postgresql server接受为postgres用户提供的任何密码。有什么方法可以做到这一点吗?

在pg_hba.conf中为所有本地连接设置信任,例如

local   all             all                                     trust
编辑后,重新启动postgresql服务


披露:我在pg_hba.conf中为所有本地连接设置信任,例如

local   all             all                                     trust
编辑后,重新启动postgresql服务


披露:我为那些想知道在哪里可以找到自己的
pg_hba.conf
的人工作,运行
psql-U postgres-c'SHOW config_file'
来找到它。那些想知道在哪里可以找到自己的
pg_hba.conf
的人,运行
psql-U postgres-c'SHOW config_file'
来找到它。