From nobody Wed Dec 24 16:30:57 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dby6p2DMTz6LF0k for ; Wed, 24 Dec 2025 16:30:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dby6n6w8Lz3w9y for ; Wed, 24 Dec 2025 16:30:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766593858; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ThY2dqZ7dcSnDoWRv02Zv935w2GDepl1+gogBbW8aek=; b=gpeJSF5l07jENfIWEdAaS6w1msTE7RFKq602fk1aAXttTiaTYMEOJgr+hB1ttpc21q+WHd EH9HvUfnq3eX3dXUFW1afE86FJbIWoxtBF0UeU2RwJtbtjC7SVs5QjSRAGm85naVa6S3IY /NyZgqRO8qq9b5lc7GJMekSEcRBKB7BwavPGbnAoZm0zAZ9HT77rf41Ehf4ApxnCFv2X9V qKCeHybK0OBodbPSORXolwms4Jg1ax2svQdyDtEhf2xkfC3R6uQt6a6YMO4TLF/PhaA8jc Ob2uyDMcKum+6JTpoRVcJtst/inbbboSXfzUwWcDg468o/0QSivlH8vorarsEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766593858; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ThY2dqZ7dcSnDoWRv02Zv935w2GDepl1+gogBbW8aek=; b=TgiTs794iAuZvo1mGSwyOXRHipj8KEX5C0sK87KRlwHHUQjy/SiEAGyFb9YcvMqZWvIKRx CFJteMpZVXLW+5j8seVyvPzJdcsr1GHX4Yl3B+KUkRfybg3X48zimL6/qzbWwUFJMB7ZNW GErY4Kju2gyWIcCpWcA8tUKMoU69r2GYg9RRn+27lm9I7H78MkjkXSFQqKtaYdkdYffB5u Bc1tU61S+VZQk6c7fP5tmW+GTN6YbFGiRq8qmYUBHqPa4QRocg0kKDahot4pRzXYL694sn UixPPO5aocNOsp3JCs82bJsA2XtK+QQu5+D2geSTCptAByeyURgOoZWI4QAAdw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766593858; a=rsa-sha256; cv=none; b=fTtdcAHBhDj7/MH0/wEB04jojGTAzDCbflsAxCYcy8/TmpE/R0zW9RN0uoxvhUpGYcSySK Y1qwbT/0VLtHRPfLtw01hAi9S0V7m0WSYwqg5dXG/Kn/HRJeChq0v7DcY3hvbnBrruBEMX hprjtbGx9vLXzUnS+DptnWw2c8v8Hw+kAbnQVsd7UtOkLZVrBpO8AplOR8GEYjfwzIcK2i KpuPXiqPv01naIdMlZn3YjUdT/px0vXeZGsehDoSaPt1NP7NbfFO+EjpsMdTBYh8X2Zjow 8BqSER+GCNnykP0TXRWuXEFZUq38It1IYK7AJT2eazei5xOlJmAy/XOGJ5YhLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dby6n6Sdvzq5H for ; Wed, 24 Dec 2025 16:30:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id dd78 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 24 Dec 2025 16:30:57 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Rick Macklem Subject: git: 4f184fd35d81 - main - nfsd.8: Add a short paragraph w.r.t. NFSv3 vs NFSv4 setup List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rmacklem X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4f184fd35d81bbd85284d47d2a65aeece67e87d4 Auto-Submitted: auto-generated Date: Wed, 24 Dec 2025 16:30:57 +0000 Message-Id: <694c1541.dd78.7e393209@gitrepo.freebsd.org> The branch main has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=4f184fd35d81bbd85284d47d2a65aeece67e87d4 commit 4f184fd35d81bbd85284d47d2a65aeece67e87d4 Author: Rick Macklem AuthorDate: 2025-12-24 16:29:29 +0000 Commit: Rick Macklem CommitDate: 2025-12-24 16:29:29 +0000 nfsd.8: Add a short paragraph w.r.t. NFSv3 vs NFSv4 setup The nfsd can be configured to support NFSv3, NFSv4 or both of them. This patch adds a short paragraph to nfsd.8 to explain this. This is a content change. Reviewed by: kib, zaiee (manpages) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54279 --- usr.sbin/nfsd/nfsd.8 | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/usr.sbin/nfsd/nfsd.8 b/usr.sbin/nfsd/nfsd.8 index 2e5724dbce33..79085d33230c 100644 --- a/usr.sbin/nfsd/nfsd.8 +++ b/usr.sbin/nfsd/nfsd.8 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd May 30, 2025 +.Dd December 23, 2025 .Dt NFSD 8 .Os .Sh NAME @@ -46,7 +46,7 @@ NFS server .Sh DESCRIPTION The .Nm -utility runs on a server machine to service NFS requests from client machines. +utility runs on a server machine to service NFSv4 and/or NFSv3 requests from client machines. At least one .Nm must be running for a machine to operate as a server. @@ -54,6 +54,62 @@ must be running for a machine to operate as a server. Unless otherwise specified, eight servers per CPU for UDP transport are started. .Pp +The +.Nm +server may be configured to serve NFSv3, NFSv4 or both of them. +When +.Bd +nfs_server_enable="YES" +.Ed +is set in +.Xr rc.conf 5 , +.Nm +is configured for NFSv3 only, by default. +To configure the +.Nm +to serve NFSv4, you must also: +.sp +.Bl -bullet -compact +.It +Add a +.Dq V4: +line to +.Xr exports 5 . +(This is needed as well as either the ZFS sharenfs property +or an exports line for each exported file system.) +.It +Either choose to do uids in +.Dq strings , +which is probably +the easiest unless you are doing +.Xr kerberos 7 +mounts or +run +.Xr nfsuserd 8 +.Pq choose one, not both of these . +Setting the sysctls MIBs +.Va vfs.nfs.enable_uidtostring +and +.Va vfs.nfsd.enable_stringtouid +to one and not running the nfsuserd chooses uids in +.Dq strings . +.It +Set +.Bd +nfsv4_server_enable="YES" +.Ed +in +.Xr rc.conf 5 +or set +.Bd +nfsv4_server_only="YES" +.Ed +in +.Xr rc.conf 5 +if you do not want NFSv3 to be served. +.El +.sp +.Pp When .Nm is run in an appropriately configured vnet jail, the server is restricted @@ -336,7 +392,9 @@ just do a .Xr pnfs 4 , .Xr pnfsserver 4 , .Xr exports 5 , +.Xr rc.conf 5 , .Xr stablerestart 5 , +.Xr kerberos 7 , .Xr gssd 8 , .Xr ipfw 8 , .Xr jail 8 ,