-
Notifications
You must be signed in to change notification settings - Fork 377
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
Copying of data from hard drive permissioning problem #479
Comments
What's the result of the following command: ls -l /Users/annecarlson/Library/Application Support/Postgres/var-10 |
-rwx------@ 1 annecarlson _postgres 6148 Feb 27 2018 .DS_Store |
What about var-10 directory itself? ls -l "/Users/annecarlson/Library/Application Support/Postgres" Where is that _postgres group coming from? Are you using the Postgres.app GUI? |
Looks like you need to chown that dir itself chown -R annecarlson "/Users/annecarlson/Library/Application Support/Postgres" |
(probably need to prefix that with sudo) |
(Postgres.app runs as your user, it doesn't use the _postgres system user.) |
Interesting. Now I get the following log error when I click start |
I assume my permissions are still messed up? I'm the group "_postgres" is incorrect? |
The group shouldn't matter. Postgres.app runs under your user, which I assume is "annecarlson". You can type Some other PostgreSQL installations may create a "postgresql" user, and run the server using that user, but we don't do that because it causes lots of headaches. PostgreSQL needs to be allowed to create a file named "postmaster.pid" inside the data directory. Here's what permissions look like on my Mac: $ whoami
jakob
$ ls -l ~/Library/Application\ Support/Postgres
drwx------ 26 jakob staff 832 Sep 20 16:27 var-11 |
I recently got a new computer, and coppied the application postgres and the
Library/Application\ Support/Postgres/var-10/
directory to my new computer. When I try to start the server I getbin/sh: /Users/annecarlson/Library/Application Support/Postgres/var-10/postgresql.log: Permission denied pg_ctl: could not start server
even after I chmodded the entire directory to 777 permissions. How do I fix this error?
The text was updated successfully, but these errors were encountered: