权限控制文件pg_hba.conf
[gpadmin@dw-greeplum-1 gpseg-1]$ more pg_hba.conf
格式如下
-
# local DATABASE USER METHOD [OPTIONS] ####本地登
-
# host DATABASE USER CIDR-ADDRESS METHOD [OPTIONS] ###host登录 -h的方式
-
# hostssl DATABASE USER CIDR-ADDRESS METHOD [OPTIONS]
-
# hostnossl DATABASE USER CIDR-ADDRESS METHOD [OPTIONS]
-
host replication gpadmin 10.0.3.15/32 trust
local all gpadmin ident
host all gpadmin 127.0.0.1/28 trust
host all gpadmin 192.168.6.119/32 trust
host all gpadmin 10.0.3.15/32 trust
host all gpadmin ::1/128 trust
host all gpadmin fe80::a00:27ff:fe2b:8253/128 trust
host all gpadmin fe80::a00:27ff:fe36:96e4/128 trust ####trust信任,不需要输入密码了
local replication gpadmin ident
host replication gpadmin samenet trust
host all all 0.0.0.0/0 md5 ###md5需要输入密码
新闻标题:【GP】postgrepsql权限管理
当前地址:
http://njwzjz.com/article/jjpsdo.html