Public bug reported: Tested on: Ubuntu 22.04 (x86_64) Package: nfs-kernel-server 1:2.6.1-1ubuntu1
Set config options in /etc/nfs.conf are ignored by rpc.svcgssd (required for krb5 NFSv4). I was trying to set the principal name like: [svcgssd] principal=nfs/myhost.mydomain...@mydomain.de but rpc.svcgssd refused to start. When specified on command line (using the -p option) things started working. After having a look at the code (nfs-utils-2.6.1/utils/gssd/svcgssd.c), the problem seems to be /* We don't need the config anymore */ conf_cleanup(); which is called too early. So at the point where gssd_acquire_cred() is called the variable "principal" does no longer contain the data read from the config file. Moving conf_cleanup() to the end of the code helps. I also tried to get into contact with the nfs-utils developer themselves - but I hope someone at Ubuntu has a better way to contact them. ** Affects: nfs-utils (Ubuntu) Importance: Undecided Status: New ** Tags: nfs-kernel-server nfs-utils nfs.conf -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1977745 Title: nfs-utils/nfs-kernel-server (rpc.svcgssd) ignored /etc/nfs.conf settings To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1977745/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs