千家信息网

【GP】postgrepsql权限管理

发表于:2025-01-22 作者:千家信息网编辑
千家信息网最后更新 2025年01月22日,权限控制文件pg_hba.conf[gpadmin@dw-greeplum-1 gpseg-1]$ more pg_hba.conf格式如下# local DATABASE USER METHOD [
千家信息网最后更新 2025年01月22日【GP】postgrepsql权限管理

权限控制文件pg_hba.conf

[gpadmin@dw-greeplum-1 gpseg-1]$ more pg_hba.conf
格式如下
  1. # local DATABASE USER METHOD [OPTIONS] ####本地登
  2. # host DATABASE USER CIDR-ADDRESS METHOD [OPTIONS] ###host登录 -h的方式
  3. # hostssl DATABASE USER CIDR-ADDRESS METHOD [OPTIONS]
  4. # hostnossl DATABASE USER CIDR-ADDRESS METHOD [OPTIONS]
  5. 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需要输入密码


0