Skip to content

How to change the gid and uid of user account postgres? #206

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

Closed
viciss opened this issue Oct 21, 2016 · 0 comments
Closed

How to change the gid and uid of user account postgres? #206

viciss opened this issue Oct 21, 2016 · 0 comments

Comments

@viciss
Copy link

viciss commented Oct 21, 2016

Hi,
Currently we are using postgres image in our Kubernetes environment, and we use nfs as our data volume solution, that is to say, /var/lib/postgresql/data in postgres image will be mounted to a share folder on nfs server finally, let's say /var/vols/data on nfs server.
The problem is in nfs server configuration, administrator sets the anongid and anonuid to an id that is different with postgres account in docker image, for example, 1999, while the gid and uid of postgres account is 999, and then we got this error:
chown: changing ownership of ‘/var/lib/postgresql/data’: Operation not permitted

Any suggested solutions to solve this problem?
Thanks,
Viciss

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

No branches or pull requests

1 participant