Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7639443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:25:11+00:00 2026-05-31T08:25:11+00:00

I wanted to change the shared_buffers parameter in my postgresql.conf file. The problem is

  • 0

I wanted to change the “shared_buffers” parameter in my postgresql.conf file.

The problem is that I used the sudo command and it gave the ownership to the root.

-rw-rw-rw-   1 root root  13661 Mar 14 15:36 postgresql.conf

Then I used the following command to get back the ownership to postmaster :

sudo chown postgres:postgres /var/lib/pgsql/data/postgresql.conf

So I tried the command :

postgres -D /var/lib/pgsql/data

I was badly surprised to still get the following error message

postgres cannot access the server configuration file "/var/lib/pgsql/data/postgresql.conf": Permission denied

below id the result of the “ls” command in the directory realted to postgreSQL :

sudo ls -l /var/lib/pgsql/data/
total 208
drwx------  19 postgres postgres   4096 Mar 13 17:23 base
drwx------   2 postgres postgres   4096 Mar 14 14:30 global
drwx------   2 postgres postgres   4096 Mar  5 14:26 pg_clog
-rw-------   1 postgres postgres   3365 Mar  1  2006 pg_hba.conf
-rw-------   1 postgres postgres   3182 Mar  1  2006 pg_hba.conf.old
-rw-------   1 postgres postgres   1460 Feb 24  2006 pg_ident.conf
drwx------   2 postgres postgres 139264 Mar 14 00:00 pg_log
drwx------   4 postgres postgres   4096 Feb 24  2006 pg_multixact
drwx------   2 postgres postgres   4096 Mar 14 10:42 pg_subtrans
drwx------   2 postgres postgres   4096 Feb 24  2006 pg_tblspc
drwx------   2 postgres postgres   4096 Feb 24  2006 pg_twophase
-rw-------   1 postgres postgres      4 Feb 24  2006 PG_VERSION
drwx------   3 postgres postgres   4096 Mar 14 14:30 pg_xlog
-rw-rw-rw-   1 postgres postgres  13661 Mar 14 15:36 postgresql.conf
-rw-------   1 postgres postgres     49 Jan  2 17:15 postmaster.opts

If someone have an idea of could be the way to fix this problem.

Thanks in advance.

Fred

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T08:25:12+00:00Added an answer on May 31, 2026 at 8:25 am

    Check how is SELinux running:

    # sestatus
    

    If it is in enforcing mode check the log:

    # less /var/log/audit/audit.log
    

    If you find SELinux blocking then temporarily disable SELinux just to confirm it is the culprit:

    # setenforce 0
    

    Now try to start the server. If it works then reenable SELinux:

    # setenforce 1
    

    Search for how to restore SELinux settings for that file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanted to change from normal mysql query to PDO but since that time
I wanted to change the values of an INI file but these seem to
I wanted to change the file permission when I use git, but the chmod
I wanted to change the resolution of a image,this image I am getting from
I have a ListView inside of an Update Panel and wanted to change the
I have a JSP which has jQuery and wanted to change the action message
i 'm trying the hibernate tutorials from their main site and wanted to change
I'm working on a quick setup program in Visual Studio and wanted to change
I wanted to see what happened if you change the reference of an object
I wanted to change the look and feel of my share point server 2010

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.