NFSUSERD(8)
π NFSUSERD(8) β the nfsuserd page, bestie edition π
okay so this is nfsuserd from the System Manager's Manual, and honestly? she's doing a LOT. let's get into it β¨
πΈ NAME πΈ
nfsuserd β loads user and group info into the kernel for NFSv4 services, plus she supports manage-gids for literally all NFS versions. multi-talented queen π
β¨ SYNOPSIS β¨
nfsuserd [-domain domain_name] [-usertimeout minutes]
[-usermax max_cache_size] [-verbose] [-force] [-manage-gids]
[num_servers]
π DESCRIPTION π
so what does she actually do? nfsuserd loads user and group information into the kernel for NFSv4. that's the whole vibe.
for Kerberized NFSv4 mounts? she must be running on both the client(s) AND the server or things will not work. no cap. π€
for non-Kerberized NFSv4 mounts, this daemon still has to be running β unless all the client(s) plus the server are configured to put uid/gid numbers in the owner and owner_group strings. like, that's the only escape hatch, bestie.
she also provides support for manage-gids, and must be running on the server if that's being used for any version of NFS. any. version. π«Ά
π what happens on startup π
upon startup she loads the machine's DNS domain name, plus the timeout and the cache size limit, into the kernel. then she preloads the cache with group and user information, up to the cache size limit, and forks off num_servers (default 4) children β those children are the servers that service requests from the kernel for cache misses π₯
the master is there for the sole purpose of terminating the servers. that's it. that's her job. iconic honestly.
to stop thenfsuserd, send aSIGUSR1to the master π
π the options (yes, all of them) π
the following options are available:
-domain domain_nameβ lets you override the default DNS domain name, which is normally acquired by taking either the suffix on the machine's hostname or, if that name is not a fully qualified host name, the canonical name as reported bygetaddrinfo(3). override queen π-usertimeout minutesβ overrides the default timeout for cache entries, in minutes. the longer the timeout, the better the performance, BUT the longer it takes for replaced entries to be seen. so if your user/group database management system almost never re-uses the same names or id numbers, a large timeout is the move. default is1minute β±οΈ-usermax max_cache_sizeβ overrides the default upper bound on the cache size. bigger cache = more kernel memory used, but better performance. if your system can afford the memory use, make this the sum of the number of entries in your group and password databases. default is200entries π-verboseβ when set, the server logs a bunch of information tosyslog. she's a talker π¬-forceβ this flag option must be set to restart the daemon after it has gone away abnormally and refuses to start, because it thinksnfsuserdis already running. she's being dramatic, force her π-manage-gidsβ this flag enablesmanage-gidsfor the NFS servernfsd(8). when this is enabled, all NFS requests usingAUTH_SYSauthentication take theuidfrom the RPC request and use the group list for thatuidprovided bygetgrouplist(3)on the server, instead of the list of groups provided in the RPC authenticator. the whole point? avoiding the16group limit forAUTH_SYS. slay πnum_serversβ specifies how many servers to create (max20). the default of4may be sufficient. you should run enough servers so thatps(1)shows almost no running time for one or two of the servers after the system has been running for a long period. running too few will have a major performance impact, whereas running too many will only tie up some resources, such as a process table entry and swap space. balance, bestie βοΈ
π¦ SEE ALSO π¦
getgrent(3), getgrouplist(3), getpwent(3), nfsv4(4), group(5), passwd(5), nfsd(8)
β HISTORY β
the nfsuserd utility was introduced with the NFSv4 experimental subsystem in 2009. vintage. she's been doing this π
π BUGS π
the nfsuserd use getgrent(3), getgrouplist(3) and getpwent(3) library calls to resolve requests, and will hang if the servers handling those requests fail and the library functions don't return. π see group(5) and passwd(5) for more info on how the databases are accessed.
and that's the whole page, bestie β you ate that reading session fr fr π this one's from Debian, dated April 22, 2023, and it's the NFSUSERD(8) manpage, signing off π«Άβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2009 Rick Macklem, University of Guelph
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms