How do i modify the pg_hba.conf file for postgres?

postgresql

#1

how do i modify the pg_hba.conf file for postgres? i can’t find the file.


#2

After the text that looks like ubuntu@[UNIQUEUSERNAMEHERE]$
, type:

sudo vim etc/postgresql/9.3/main/pg_hba.conf

You need to be at root, ie not in some other folder. cd .. is the command to go up a level in the directory. Go until you cannot go any further up (typing cd .. until you cannot go any further.)