Skip to content

Instantly share code, notes, and snippets.

@katagaki
Created December 18, 2024 02:47
Show Gist options
  • Save katagaki/dd612bbc407f9f9f8378bdc62029d346 to your computer and use it in GitHub Desktop.
Save katagaki/dd612bbc407f9f9f8378bdc62029d346 to your computer and use it in GitHub Desktop.
Fix `chown: /var/lib/postgresql/data/pgdata: Permission denied`
echo From https://medium.com/dandelion-tutorials/how-to-fix-chown-permission-denied-issue-when-using-colima-on-mac-os-x-d925e420c875
colima stop
cd ~/.colima/_lima/_config
mv {dir}/override.yaml override.yaml
colima delete
colima start --mount-type 9p
mountType: 9p
mounts:
- location: "/Users/{username}"
writable: true
9p:
securityModel: mapped-xattr
cache: mmap
- location: "~"
writable: true
9p:
securityModel: mapped-xattr
cache: mmap
- location: /tmp/colima
writable: true
9p:
securityModel: mapped-xattr
cache: mmap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment