First a bit of information about my configuration:
- Ubuntu 15.10
- ZFS pool created
- LXC containers stored in pool/lxc
- Dataset created in
pool/mydataset
owned byuser1
Now I need one of the containers to access the files/folders in pool/mydataset
. I tried the following:
- Created a user
user1
inside the container Edited
pool/lxc/mycontainer/config
and added:lxc.mount.entry = /pool/mydataset mnt/mydataset none rw,bind 0 0
When I start the container the dataset is mounted, but ls -la /mnt/mydataset
in the container shows nobody:nogroup
instead of user1:user1
, which means all files are read-only.
Any idea how to get the correct permissions in the mounted directory?