Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

postgres users can login with any or no password

#Find the right pg_hba.conf file.

sudo -u postgres psql
openproject_dev=# SHOW hba_file ;
              hba_file               
-------------------------------------
 /usr/local/var/postgres/pg_hba.conf
(1 row)

# Edit the file to force password login ... Leave admin (superuser) as trust. I used md5 instead of password .. password worked as well.
sudo nano /usr/local/var/postgres/pg_hba.conf

# "local" is for Unix domain socket connections only
local   all             admin                                   trust
local   all             all                                     md5
# IPv4 local connections:
host    all             admin           127.0.0.1/32            trust
host    all             all             127.0.0.1/32            md5
# IPv6 local connections:
host    all             admin           ::1/128                 trust
host    all             all             ::1/128                 md5
Comment

PREVIOUS NEXT
Code Example
Shell :: can i install linux on an external hard drive 
Shell :: update metasploit 
Shell :: yarn remove 
Shell :: debian without gui 
Shell :: ubuntu find folder through terminal 
Shell :: ubuntu no internet connection 
Shell :: cambiar nombre branch git 
Shell :: speedtest mac terminal 
Shell :: github add image to readme.md 
Shell :: bash count lines 
Shell :: git log show only merge commits 
Shell :: cli kill what is listening on port 
Shell :: install lutris ubuntu 
Shell :: delete git stash list 
Shell :: mongodb install kali linux 
Shell :: kill process on linux 
Shell :: linux rename files add prefix 
Shell :: windows change hostname 
Shell :: how to open sublime in linux 
Shell :: sed remove first line 
Shell :: centos 7 openldap install 
Shell :: create new repo 
Shell :: download nodejs debian linux 
Shell :: pm2 status 
Shell :: install kazam screencaster ubuntu 
Shell :: android sdk ubuntu 
Shell :: docker install python 
Shell :: ionic change app icon 
Shell :: bash get environment variable 
Shell :: find all .desktop files linux 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =