Skip to content

Better default data directory permission #210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2018

Conversation

mkotsbak
Copy link
Contributor

@mkotsbak mkotsbak commented May 3, 2018

Postgresql won't start without directory permission 0700.

Postgresql won't start without directory permission 0700.
@mkotsbak mkotsbak changed the title Better data directory permission Better default data directory permission May 3, 2018
@noelmcloughlin
Copy link
Contributor

Maybe already solved in #202 - instead the README & pillar.example may need update.

@mkotsbak
Copy link
Contributor Author

mkotsbak commented May 4, 2018

Not sure if the current default let Postgres start before? Else it does not make much sense to have that default. I was able to fix it by specifying another permission yes.

Copy link
Contributor

@noelmcloughlin noelmcloughlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it maybe better default. I'll approve but wait for someone else to review. @vutny please.

2018-04-10 15:33:30 MDT [51099-1] FATAL:  data directory "/var/lib/postgresql/9.5/main" has group or world access
2018-04-10 15:33:30 MDT [51099-2] DETAIL:  Permissions should be u=rwx (0700).

Copy link
Contributor

@vutny vutny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like fresh PG builds have been more hardened about local FS privileges. So let's do this.

@noelmcloughlin noelmcloughlin merged commit 89fa6e8 into saltstack-formulas:master May 4, 2018
@noelmcloughlin
Copy link
Contributor

Thanks @mkotsbak and @vutny

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants