FATAL: could not access private key file “/etc/ssl/private/ssl-cert-snakeoil.key”: Permission denied

前端 未结 6 2659
长情又很酷
长情又很酷 2021-02-20 02:37

I believe I ended up mixing up permissions at /etc/ssl directories tree as the last modification was made on 18th November and a day after I could not get my PostgreSQL to work.

6条回答
  •  天命终不由人
    2021-02-20 03:02

    Check the output of

    $ sudo -u postgres
    $ cd /etc/ssl/private
    $ ls
    

    If the response is "Permission denied" do

    $ chown postgres:ssl-cert /etc/ssl/private/
    $ chown postgres:postgres /etc/ssl/private/ssl-cert-snakeoil.key
    

提交回复
热议问题