Nice one. Many thanks for sharing. I've been trying to configure user mappings properly but all information I had found was fragmented and incomplete until I found your video that covered not only one but two end to end, full solutions. Bravo!
Great explanation for user mapping. However, you mention this is with a share drive mounted from PM NAS. I found that things get a bit messy when mounting an SMB drive. Adding "option rw' in the mount seems to help but curious whether you've explored this scenario?
Hi There; Thanks for this amazing tutorial.I run a LXC container .file server container .I establish samba connections and I achieve to read and write on the shared directories inside the container but I can't write, only read on a bind mount directory of the host that I also try to share .Do you have an idea about I 'm missing .Rgds
You're right, but this is just an example of a single container. In case of a HA setup you'd normally use something LDAP based like FreeIPA to manage users anyway, wouldn't you?
Thank you. Very nice tutorial. Too bad I didn't find it before since I messed a lot around this topic. I wanted to do the same thing as your last solution (having the same user on the host and on the container) and I finished with something similar. I also had another issue : In my case the mounted "directory" I want to share was a ZFS dataset zfs create cyclades/partages (cyclades is the zfs pool) and mp0: /cyclades/partages,mp=/partages in the container conf file. Everything worked with all the idmap, subuid, .... chown and chmod stuff as you explained in your video with one exception: If I create a zfs sub-dataset of partages (eg zfs create cyclades/partages/test) the rigths were not propagated and cannot be set with chown/chmod. The solution I found is to add the following properties to the dataset partages: zfs set acltype=posixacl cyclades/partages zfs set aclmode=passthrough cyclades/partages zfs set aclinherit=passthrough cyclades/partages destroy the dataset zfs destroy cyclades/partages/test reboot the container Now if I recreate the test dataset zfs create cyclades/partages/test Everything is OK Best regards
Nice one. Many thanks for sharing. I've been trying to configure user mappings properly but all information I had found was fragmented and incomplete until I found your video that covered not only one but two end to end, full solutions. Bravo!
I'm glad to know that this vid helps people! :) Thanks for your feedback!
Please keep doing such grate crash courses
That was a complicated one, very well explained! Thanks for taking the time to guide us through!
Glad you liked it, it is in fact one of the most complicated videos I've ever made. :)
Great explanation for user mapping. However, you mention this is with a share drive mounted from PM NAS. I found that things get a bit messy when mounting an SMB drive. Adding "option rw' in the mount seems to help but curious whether you've explored this scenario?
Very interesting video!!!! And good workaround!
Is this valid for proxmox 7.3 as well?
Many thanks for sharing your knowledge and experience.
Hi There; Thanks for this amazing tutorial.I run a LXC container .file server container .I establish samba connections and I achieve to read and write on the shared directories inside the container but I can't write, only read on a bind mount directory of the host that I also try to share .Do you have an idea about I 'm missing .Rgds
Great, Thanks for sharing.❤
Thanks for watching!
Thank You. Very usefull.
Seems a little bit too much work in HA setup with multiple host to create PAM users on all hosts!
You're right, but this is just an example of a single container. In case of a HA setup you'd normally use something LDAP based like FreeIPA to manage users anyway, wouldn't you?
Thank you. Very nice tutorial.
Too bad I didn't find it before since I messed a lot around this topic.
I wanted to do the same thing as your last solution (having the same user on the host and on the container) and I finished with something similar.
I also had another issue :
In my case the mounted "directory" I want to share was a ZFS dataset
zfs create cyclades/partages (cyclades is the zfs pool) and
mp0: /cyclades/partages,mp=/partages in the container conf file.
Everything worked with all the idmap, subuid, .... chown and chmod stuff as you explained in your video with one exception:
If I create a zfs sub-dataset of partages (eg zfs create cyclades/partages/test)
the rigths were not propagated and cannot be set with chown/chmod.
The solution I found is to add the following properties to the dataset partages:
zfs set acltype=posixacl cyclades/partages
zfs set aclmode=passthrough cyclades/partages
zfs set aclinherit=passthrough cyclades/partages
destroy the dataset
zfs destroy cyclades/partages/test
reboot the container
Now if I recreate the test dataset
zfs create cyclades/partages/test
Everything is OK
Best regards