On Wed, 2021-02-24 at 02:38 +0800, Ed Greshko wrote:
The other way to disable NFSv4 is to modify /etc/sysconfig/nfs to have the line
# Optional arguments passed to rpc.nfsd. See rpc.nfsd(8) RPCNFSDARGS="--no-nfs-version 4"
You should check that as well.
Bottom line, NFSv4 is set disabled. Those are the 2 ways I know how to do. Maybe there are more?
I checked /etc/sysconfig/nfs and it hadn't any options in RPCNFSDARGS.
I also checked what would happen if I only had version 4, disallowing version 3 on server side. The error message that the client got was different. For version 4 it was "mount(2): Permission denied" and for version 3 it was "portmap query failed: RPC: Program/version mismatch".
I also noticed a log message that comes each time I restart the nfs server, that I have no idea what it is about
polkitd[1513]: Unregistered Authentication Agent for unix- process:23099:167829226 (system bus name :1.6793, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8) (disconnected from bus)
Although there was no process with PID 23099 when I looked.
/Jerome