I am trying to export home directories from my NAS to ubuntu clients - the server is a TrueNAS Scale, which is Debian based. Kerberos works, so users get the proper tickets to authenticate to the server.
My main goal is that users can mount their home dirs off the server.
I have a share called home on the server with one directory per user. The home directory is owned by root, and the subdirectories are owned by the users. However, if I don't use maproot nor mapall, even if I manage to mount the share, the user can't write anything to his folder if mounting /home/folder.
If I use maproot=root, the user mounts it, but everything he writes is saved as root. I am lost here, but it seems there might be a problem with the id mapping. The uid/gid of the files are the same across server and client, the right names showing, etc. This makes me believe that the mapping is correct - however, when using maproot=root, why I end up having access to folders that don't belong to me, and why everything I create with that user is owned by root?
How I can properly export this so that I get root squashed, as well as that the users only get access to their own directories?
The problem was that
/etc/idmapd.conf
didn't have aLocal-Realms
configured, which was necessary since the domain of the client isn't the same as the server.