nfsconf(8)
π nfsconf(8) β System Manager's Manual π
okay bestie, gather round, because this one is actually a little gem. we're talking about nfsconf, the little tool that goes and queries all your various NFS configuration settings for you. it lives in the System Manager's Manual section (section 8, iykyk), and it's about to become your new fave. π
β¨ NAME β¨
nfsconf β Query various NFS configuration settings
like, it asks the config files questions. and they answer. slay.
π¦ SYNOPSIS π¦
nfsconf --dump [-v|--verbose] [-f|--file infile.conf] [outfile]
nfsconf --entry [--arg subsection] section tag
nfsconf --get [-v|--verbose] [-f|--file infile.conf] [-a|--arg
subsection] section tag
nfsconf --isset [-v|--verbose] [-f|--file infile.conf] [-a|--arg
subsection] section tag
nfsconf --set [-v|--verbose] [-m|--modified Modified by text] [-f|--file
infile.conf] [-a|--arg subsection] section tag value
nfsconf --unset [-v|--verbose] [-f|--file infile.conf] [-a|--arg
subsection] section tag
no cap, that's the whole vibe right there. pick a mode, hand it a section and a tag, and off you go. π
πΈ DESCRIPTION πΈ
the nfsconf command is your bestie for testing for and retrieving configuration settings from a whole range of nfs-utils configuration files. it's giving "personal assistant for your conf files." π«Ά
Modes
here's the menu of modes, and honestly? iconic lineup:
-d,--dumpβ outputs an alphabetically sorted dump of the current configuration in conf file format. it also accepts an optional filename to write the output into. cute AND organized.-e,--entryβ retrieves the config entry itself rather than its current expanded value. so you get the raw thing, not the glow-up. π-i,--issetβ tests whether a specific tag actually has a value set. yes/no energy.-g,--getβ outputs the current value of the specified tag. gimme the tea β-s,--setβ updates or adds a tag and value to the config file in a specified section, and it will create the tag, the section, and the file if necessary. main character energy fr. if the section is defined as'#'then a comment gets appended to the file. and if a comment is set with a tag name, then any existing tagged comment with a matching name gets replaced.-u,--unsetβ removes the specified tag and its value from the config file. bye bye π
π OPTIONS π
Options valid in all modes
these ones work everywhere, no matter which mode you picked. universal queens π
-v,--verboseβ increases verbosity and prints debugging information. turn it up when you need the deets.-f,--fileinfile β selects a different config file to operate upon. the default is/etc/nfs.conf.
Options only valid in --entry and --get and --isset modes.
these three modes get a lil something extra:
-a,--argsubsection β selects a specific sub-section. so specific. so precise. β¨
Options only valid in --set mode.
and --set gets its own special treat:
-m,--modified"Modified by nfsconf"β sets the text on the Modified date comment in the file. set it to empty to remove it entirely. π
π EXIT STATUS π
--isset mode
in this mode, the command returns success (0) if the selected tag has a value. any other exit code means the value is not set, or that some other error has occurred. it's a vibe check and the vibe is binary. π
all other modes
success is indicated by an exit status of zero. any other status means an error. error messages get output on stderr, and cranking up the verbosity will give you more detailed explanations, if any are available. so if something's weird, add -v and let it spill. π
π₯ EXAMPLES π₯
okay this is the fun part, let's see her in action:
nfsconf -v --dump --file /tmp/testconf.conf sorted.conf
Check a new config file for syntax errors and output a sorted version for ease of comparison with existing settings.
literally a syntax-error detector and a sorter in one move. obsessed.
if ! nfsconf --isset gssd preferred-realm ; then echo 'No preferred
realm configured for gss'; fi
The tool allows for easy testing of configuration values from shell scripts. here we test if a specific value has been set.
shell script girlies, this one's for you π«Ά
nfsconf --file /etc/nfsmount.conf --get --arg /home MountPoint
background
Show default value forbackgroundoption for NFS mounts of the/homepath.
so specific. we love a targeted query. π
nfsconf --file /etc/nfs.conf --set nfsd debug 1
Enable debugging in nfsd
one line. debugging on. periodt. π
π§ FILES π§
/etc/nfs.conf
(the default file, the home base, the main character file π )
β SEE ALSO β
nfsd(8), exportfs(8), idmapd(8), statd(8)
go read those too bestie, they're all in the same friend group. πΈ
π AUTHOR π
Justin Mitchell <jumitche@redhat.com>
that's the whole page, no notes, no cap. go forth and configure. π β¨
okay byeee, this was the nfsconf(8) page from 2 May 2018, part of the System Manager's Manual (version nfsconf(8), obviously π). mwah, love u, go read your config files ππ¦
π¦ where this page comes from
- alpine 3.22: nfs-utils-doc 2.6.4-r4 Β· GPL-2.0-only
- alpine 3.23: nfs-utils-doc 2.6.4-r6 Β· GPL-2.0-only
- alpine 3.24: nfs-utils-doc 2.6.4-r6 Β· GPL-2.0-only
- arch rolling: nfs-utils 3.1.1-1 Β· GPL-2.0-or-later
- centos-stream 10: nfs-utils 1:2.8.3-9.el10 Β· MIT and GPLv2 and GPLv2+ and BSD
- centos-stream 10: nfs-utils-coreos 1:2.8.3-9.el10 Β· MIT and GPLv2 and GPLv2+ and BSD
- centos-stream 10: nfsv4-client-utils 1:2.8.3-9.el10 Β· MIT and GPLv2 and GPLv2+ and BSD
- centos-stream 9: nfs-utils 1:2.5.4-45.el9 Β· MIT and GPLv2 and GPLv2+ and BSD
- centos-stream 9: nfs-utils-coreos 1:2.5.4-45.el9 Β· MIT and GPLv2 and GPLv2+ and BSD
- centos-stream 9: nfsv4-client-utils 1:2.5.4-45.el9 Β· MIT and GPLv2 and GPLv2+ and BSD
- debian bookworm: nfs-common 1:2.6.2-4+deb12u1
- debian trixie: nfs-common 1:2.8.3-1
- fedora 43: nfs-utils 1:2.8.4-0.fc43 Β· LicenseRef-Callaway-MIT AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-BSD
- fedora 43: nfs-utils 1:2.8.7-6.fc43 Β· LicenseRef-Callaway-MIT AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-BSD
- fedora 43: nfs-utils-coreos 1:2.8.4-0.fc43 Β· LicenseRef-Callaway-MIT AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-BSD
- fedora 43: nfs-utils-coreos 1:2.8.7-6.fc43 Β· LicenseRef-Callaway-MIT AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-BSD
- fedora 43: nfsv4-client-utils 1:2.8.4-0.fc43 Β· LicenseRef-Callaway-MIT AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-BSD
- fedora 43: nfsv4-client-utils 1:2.8.7-6.fc43 Β· LicenseRef-Callaway-MIT AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-BSD
- fedora 44: nfs-common-utils 1:2.8.7-0.fc44 Β· GPL-2.0-only AND GPL-2.0-or-later AND BSD-3-Clause AND BSD-2-Clause AND (HPND-export-US-modify AND HPND-sell-variant) AND (GPL-2.0-only WITH Linux-syscall-note OR BSD-3-Clause)
- fedora 44: nfs-common-utils 1:2.8.7-7.fc44 Β· GPL-2.0-only AND GPL-2.0-or-later AND BSD-3-Clause AND BSD-2-Clause AND (HPND-export-US-modify AND HPND-sell-variant) AND (GPL-2.0-only WITH Linux-syscall-note OR BSD-3-Clause)
- nixos 26.05: nfs-utils 2.9.1
- nixpkgs unstable: nfs-utils 3.1.1
- opensuse-leap 16.0: nfs-client 2.8.2-160000.4.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: nfs-client 2.8.2-160000.4.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: nfs-client 2.8.2-160000.4.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: nfs-client 2.8.2-160000.4.1 Β· GPL-2.0-or-later
- ubuntu jammy: nfs-common 1:2.6.1-1ubuntu1
- ubuntu jammy: nfs-common 1:2.6.1-1ubuntu1.2
- ubuntu noble: nfs-common 1:2.6.4-3ubuntu5
- ubuntu noble: nfs-common 1:2.6.4-3ubuntu5.1
- ubuntu questing: nfs-common 1:2.8.3-1ubuntu3
- ubuntu resolute: nfs-common 1:2.8.5-1ubuntu1
- ubuntu stonking: nfs-common 1:2.9.1-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms