YPSERV.CONF(5)
π ypserv.conf β the vibe guide π
okay bestie, listen up: this is the manual page for YPSERV.CONF(5) from the NIS Reference Manual, and it's literally the config file glow-up for ypserv and rpc.ypxfrd. it's giving "small file, big responsibilities". let's get into it π«Ά
β¨ NAME β¨
ypserv.conf β configuration file for ypserv and rpc.ypxfrd
πΈ DESCRIPTION πΈ
ypserv.conf is an ASCII file, and it's holding two whole jobs at once: it's got some options for ypserv, and it's also got a list of rules for special host and map access, for both ypserv and rpc.ypxfrd. the way this file gets read by ypserv and rpc.ypxfrd at startup, or when they receive a SIGHUP signal? iconic behaviour tbh.
one entry per line, no exceptions. if the line is an option line, the format is:
option: argument
and the line for an access rule has the format:
host:domain:map:security
all rules are tried one by one. and if no match is found, access to a map is allowed. periodt.
π the options that exist π
files: 30β this one says how many database files should be cached byypserv. if you set0, caching is disabled. heads up though: decreasing this number is only possible ifypservis restarted. no sneaky live edits πtrusted_master: serverβ if you set this on a slave server, new maps from the hostserverwill be accepted as master. the default is that no trusted master is set, and new maps will not be accepted. it's giving trust issues, and honestly, valid.
example:
trusted_master: ypmaster.example.org
slp: [yes|<no>|domain]β if this option is enabled and SLP support is compiled in, the NIS server registers itself on a SLP server. if the variable is set todomain, an attributedomainwith a comma seperated list of supported domainnames is set. else, that attribute will not be set. the default is"no"(disabled).xfr_check_port: [<yes>|no]β with this option enabled, the NIS master server have to run on a port< 1024. the default is"yes"(enabled).
π¦ the access rule fields, explained π¦
hostβ IPv4 only address. wildcards are allowed. but bestieβ¦ these rules are ignored for IPv6, which means it's better to not use this option at all anymore. lowkey deprecated energy π
examples:
131.234. = 131.234.0.0/255.255.0.0
131.234.214.0/255.255.254.0
domainβ specifies the domain for which this rule should be applied. an asterix as a wildcard is allowed. yes, it's spelled asterix, that's what the page says, we don't edit β¨mapβ name of the map, or asterisk for all maps.securityβ one ofnone,port,deny:noneβ always allow access. generous queen πportβ allow access if from port< 1024. otherwise, do not allow access.denyβ deny access to this map. not me being the bouncer π
π FILES π
/etc/ypserv.conf
π SEE ALSO π
β οΈ WARNINGS β οΈ
the access rules for special maps are no real improvement in security, but they make the life a little bit harder for a potential hacker. so like, it's a speed bump, not a fortress, okay?
Solaris clients don't use privileged ports. all security options which depend on privileged ports cause big problems on Solaris clients. this one is not a drill π¨
π AUTHOR π
Thorsten Kukuk <kukuk@thkukuk.de>
and that's the whole page, bestie!! this was the NIS Reference Manual version dated 03/04/2016, and you just ate the entire YPSERV.CONF(5) page, no crumbs left ππ slay, go configure something. mwah π
π¦ where this page comes from
- debian bookworm: ypserv 4.2-1+b2 Β· GPL-2.0-only
- debian trixie: ypserv 4.2-2+b2 Β· GPL-2.0-only
- ubuntu jammy: ypserv 4.1-2 Β· GPL-2.0-only
- ubuntu noble: ypserv 4.2-2build2 Β· GPL-2.0-only
- ubuntu questing: ypserv 4.2-2build2
- ubuntu resolute: ypserv 4.2-3 Β· GPL-2.0-only
- ubuntu stonking: ypserv 4.2-3build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms