chown/chmod on mounted directory: Permission denied
- Dominant language
- Go
- Stars
- 21.9k
- Forks
- 957
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 53
Description
Hey, I really like lima so far and wish I could use it for development, but unfortunately I've come across a workflow-breaking issue.
[My docker image](https://github.com/linuxserver/docker-dokuwiki) copies files into a mounted directory and changes their ownership to the custom user 1000. The copying works just fine, but the chown fails with `Permission denied`.
This issue can be confirmed in a shell; `chmod` fails in the same way.
```
root@wiki:/# chown 1000 /app/
root@wiki:/# chown 1000 /usr/
root@wiki:/# chmod 777 /app/
root@wiki:/# chmod 777 /usr/
root@wiki:/# chown 1000 /config/
chown: changing ownership of '/config/': Permission denied
root@wiki:/# chmod 777 /config/
chmod: changing permissions of '/config/': Permission denied
```
It's the same for a custom mount inside of `$HOME` and a directory in `/tmp/lima`.
The files end up with
`drwxrwxrwx 1 nobody nobody 128 Sep 9 13:17 php`
Manually touched files get
`-rw-r--r-- 1 nobody nobody 0 Sep 9 13:22 test`
I'm on an M1 Macbook Pro with macOS 12 and installed QEMU using the provided shell file. The same setup just works with Docker Desktop.
Contributor guide
Assessment
This issue has not been assessed yet.