Score:0

Setup kerberos with nfsv4 for no_root_squash mounts

aq flag

I am very new to kerberos and nfs. Kindly help to know if this is feasible. The NFS server is Truenas scale and client is ubuntu 22.04 desktop.

  1. nfs v4 is enabled in Truenas server and exports /export/home as no_root_squash and sec=krb5

  2. The requirement is to mount /export/home to /mnt/home of the ubuntu client through fstab. The permission are as per filesystem permission settings. Without sec=krb5 this is working. But no_root_squash has all its security implications. I would like to minimise it by making sure that only those hosts with kerberos keytabs should be able to mount from the Truenas server.

  3. I do not want a user level kerberos principal based auth, rather only host based. This is assuming that the users within the host is trustable.

  4. the kerberos server is on another vm.

I tried by creating host principals for truenas, and client in kerberos server VM. The respective keytabs are scp to truenas and ubuntu client respectively and rkt/wkt is used to update the keytabs into /etc/krb5.keytabs of ubuntu client and GUI is used in case of Truenas.

But the nfs.mount says operation not permitted!!!

Any guidance on how to do this on Truenas scale server and ubuntu client is appreciated.. Also guidance on how to debug this is also very helpful.

-regards tachy

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.