Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Gentoo: User
Re: Postgres suddenly can't access files in its /etc directory
 

Index | Next | Previous | View Flat


joost at antarean

Apr 25, 2012, 10:46 PM


Views: 340
Permalink
Re: Postgres suddenly can't access files in its /etc directory [In reply to]

On Mon, April 23, 2012 3:21 pm, napalm [at] squareownz wrote:
> I'm unsure if I should be posting this to the -hardened mailing list as
> I'm using the hardened profile but all of a sudden I'm getting a rather
> strange error when trying to start postgres.
>
> # /etc/init.d/postgresql-9.1 start
> * Caching service dependencies ... [
> ok ]
> * The following file(s) are not readable by 'postgres':
> * /etc/postgresql-9.1/postgresql.conf
> * /etc/postgresql-9.1/pg_ident.conf
> * /etc/postgresql-9.1/pg_hba.conf
> * HINT: Try: 'chmod 644 /etc/postgresql-9.1/*.conf'
> * ERROR: postgresql-9.1 failed to start
>
> That's what I'm getting when I attempt to start it and I don't seem to
> have modified anything.
>
> Looking into the init script I can see it's doing su postgres -c "test -r
> /etc/postgresql-9.1/pg_hba.conf" and the like but the output of:
> su postgres -c "test -r /etc/postgresql-9.1/pg_hba.conf" || echo "fail"
> is fail... so I'm quite at a loss as to what could be going on here. All
> of the files are owned by postgres, have the correct permissions (I ran
> chmod 644 as it hinted) and it should be able to traverse to the directory
> as everything has the execute bit from /etc onwards.
>
> Any tips?

I don't have much experience with Hardenened, but are you certain that any
permissions (including ACLs) are set correctly for PostgreSQL to access
all its files?

Do you have "sec-policy/selinux-postgresql" installed? And did you
re-emerge this after the update?

--
Joost

Subject User Time
Postgres suddenly can't access files in its /etc directory napalm at squareownz Apr 23, 2012, 6:21 AM
    Re: Postgres suddenly can't access files in its /etc directory mikemol at gmail Apr 23, 2012, 6:38 AM
    Re: Postgres suddenly can't access files in its /etc directory michael at orlitzky Apr 23, 2012, 7:43 AM
        Re: Postgres suddenly can't access files in its /etc directory napalm at squareownz Apr 23, 2012, 8:44 AM
            Re: Postgres suddenly can't access files in its /etc directory michael at orlitzky Apr 23, 2012, 8:56 AM
                Re: Postgres suddenly can't access files in its /etc directory napalm at squareownz Apr 23, 2012, 2:18 PM
                    Re: Postgres suddenly can't access files in its /etc directory graham at gmurray Apr 23, 2012, 10:27 PM
                        Re: Postgres suddenly can't access files in its /etc directory napalm at squareownz Apr 24, 2012, 2:31 AM
                            Re: Postgres suddenly can't access files in its /etc directory michael at orlitzky Apr 24, 2012, 6:58 AM
                    Re: Postgres suddenly can't access files in its /etc directory stroller at stellar Apr 24, 2012, 9:28 AM
    Re: Postgres suddenly can't access files in its /etc directory joost at antarean Apr 25, 2012, 10:46 PM
    Re: Postgres suddenly can't access files in its /etc directory napalm at squareownz Apr 26, 2012, 3:01 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.