Advertisement
Guest User

pg_hba.conf

a guest
Mar 10th, 2014
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. vi /etc/postgresql/9.1/main/pg_hba.conf
  2. #
  3. # Database and user names containing spaces, commas, quotes and other
  4. # special characters must be quoted. Quoting one of the keywords
  5. # "all", "sameuser", "samerole" or "replication" makes the name lose
  6. # its special character, and just match a database or username with
  7. # that name.
  8. #
  9. # This file is read on server startup and when the postmaster receives
  10. # a SIGHUP signal. If you edit the file on a running system, you have
  11. # to SIGHUP the postmaster for the changes to take effect. You can
  12. # use "pg_ctl reload" to do that.
  13.  
  14. # Put your actual configuration here
  15. # ----------------------------------
  16. #
  17. # If you want to allow non-local connections, you need to add more
  18. # "host" records. In that case you will also need to make PostgreSQL
  19. # listen on a non-local interface via the listen_addresses
  20. # configuration parameter, or via the -i or -h command line switches.
  21.  
  22.  
  23.  
  24.  
  25. # DO NOT DISABLE!
  26. # If you change this first entry you will need to make sure that the
  27. # database superuser can access the database using some other method.
  28. # Noninteractive access to all databases is required during automatic
  29. # maintenance (custom daily cronjobs, replication, and similar tasks).
  30. #
  31. # Database administrative login by Unix domain socket
  32. local all postgres peer
  33.  
  34. # TYPE DATABASE USER ADDRESS METHOD
  35.  
  36. # "local" is for Unix domain socket connections only
  37. local all all peer
  38. # IPv4 local connections:
  39. host all all 127.0.0.1/32 md5
  40. # IPv6 local connections:
  41. host all all ::1/128 md5
  42. # Allow replication connections from localhost, by a user with the
  43. # replication privilege.
  44. #local replication postgres peer
  45. #host replication postgres 127.0.0.1/32 md5
  46. #host replication postgres ::1/128 md5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement