So I would like NFSv4 to serve user home directories across the
network for all workstations, but I would like it to protect using
user password
Eg. on workstation I want to do:
sudo mount -t nfs -o nfsv4 nfs4-server:/home/user1 /home/user1
and then I want to be asked for password of
I think you can stick it just before return 0 in /etc/rc.d/nfsd.
(I'd probably just go with the sysctl vfs.newnfs.server_min_nfsvers=4
line in this case, since you want it unconditionally?)
Or, if you don't want to build a kernel with options NFSD, I think
you can get nfsd.ko loaded early by