YPINIT(8)

πŸ“¦
version 4.2 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– YPINIT(8) β€” NIS Reference Manual πŸ’–

okay bestie, sit down, hydrate, and let me tell you about ypinit β€” the NIS database install & build program. yes it's an 8th-section sysadmin thing, yes it's giving main-character root energy, no you cannot skip it. 🫢


✨ NAME ✨

ypinit β€” NIS database install and build program. that's it, that's the name, she's simple and she's iconic. πŸ’…


🌸 SYNOPSIS 🌸

/usr/lib/yp/ypinit [-m] [-s master_name]

look at her. three whole pieces of syntax. a queen of restraint. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: ypinit builds the domain subdirectory of /var/yp for the current default domain. and THEN β€” because she's not done, she never is β€” after building that domain subdirectory, ypinit builds a complete set of administrative maps for your system and drops them right into that directory. ✨

and here's the thing you actually need to remember: the first map created by ypinit -m is the ypservers map. like, that's the moment. that's the birth. πŸŽ€

you should run it as root on the hosts, which should be the master ypserver. and fr fr β€” you should have only one master server per NIS domain. one. uno. Π½Π΅ Π΄Π²Π°. don't be chaotic about this. πŸ’€

all databases are built from scratch, either from information available to the program at runtime, or from the ASCII data base files in /etc. those files are listed below under FILES, bestie, go look, they're right there. 🌈

an NIS database on a slave server is set up by copying an existing database from a running server. and the master_name argument? it should be the hostname of an NIS server β€” either the master server for all the maps, or a server on which the data base is up-to-date and stable. yes, "stable" is doing a lot of work in that sentence. we love a stable server. 🧚


πŸ’… OPTIONS πŸ’…

  • -m β€” if the local host is the NIS master. that's the whole thing. that's your "i am the main character" flag. πŸ‘‘
  • -s β€” set up a slave server with the database from master_name. note the little master_name β€” she needs a friend to copy from. 🫢

πŸ“ FILES πŸ“

these are the ASCII data base files in /etc that the databases get built from, and i need you to look at this list like it's a tracklist on an album you're obsessed with:

  • /etc/passwd
  • /etc/group
  • /etc/hosts
  • /etc/networks
  • /etc/services
  • /etc/protocols
  • /etc/netgroup
  • /etc/rpc

no skips. all bangers. 🎧✨


πŸ”₯ SEE ALSO πŸ”₯

go read these next, bestie, i'm literally begging:


πŸ’€ BUGS πŸ’€

there is no good error handling at the moment.

and i'm not softening that one, because that's the actual text and it's the actual truth. if something goes wrong she is not going to hold your hand about it. dramatic? maybe. accurate? absolutely. 😭


πŸ‘‘ AUTHOR πŸ‘‘

Thorsten Kukuk <kukuk@linux-nis.org> β€” the icon, the legend, the moment. 🌟


aaaand that's the whole page, you ate it, you're done, go build some maps. πŸŽ€ this was the NIS Reference Manual, dated 12/31/2020, and it covers YPINIT(8). mwah. πŸ’–