Setting a password for the postgres user on Linux
6 August, 2020 by
Setting a password for the postgres user on Linux
Kinsoft Indonesia, Kikin Kusumah

On Linux systems, there is no default password set.

To set the default password:

  1. Run the psql command from the postgres user account:

    sudo -u postgres psql postgres
    
  2. Set the password:

    \password postgres
    
  3. Enter a password.

    1. Close psql.

      \q
      
Setting a password for the postgres user on Linux
Kinsoft Indonesia, Kikin Kusumah
6 August, 2020
Share this post
Archive