MKNETID(8)

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

πŸ’– MKNETID(8) β€” the NIS Reference Manual one πŸ’–

okay bestie, welcome to mknetid, a lil program from the NIS Reference Manual (section 8, system admin territory, very grown-up of it ✨).


🌸 NAME 🌸

mknetid β€” generate data for netid map πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

/usr/lib/yp/mknetid [-q] [-h hosts] [-p passwd] [-g group] [-d domain]
                    [-n netid]

/usr/lib/yp/mknetid --version

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: mknetid builds the netid.byname NIS map out of whatever's chillin' in your group(5), passwd(5), hosts(5) and netid files. that's its whole thing. it's giving data-wrangler. 🫢

and the way it checks for multiple entries of netids?? obsessed. it either warns you about the duplicates or just filters them out β€” its choice, its moment. πŸ’…

ngl though, this isn't a program you call yourself. it's only ever called by /var/yp/Makefile when it's rebuilding the NIS map. so if you see it in the wild, that's why. iykyk ✨


✨ OPTIONS ✨

  • -q β€” turns on 'quiet' mode. so when it finds a duplicate netid entry, it will NOT print a warning message. silent. stealth. 🀫
  • -h hosts β€” lets you point at a different hosts file instead of the default /etc/hosts. πŸ’–
  • -p passwd β€” lets you point at a different passwd file instead of the default /etc/passwd. πŸ“
  • -g group β€” lets you point at a different group file instead of the default /etc/group. 🌈
  • -n netid β€” lets you point at a different netid file instead of the default /etc/netid. 🧚
  • -d domain β€” by default mknetid just uses the system domainname. but if it's not set, or you wish to override it (their spelling, not mine, bestie 😭), you gotta use the -d parameter. no way around it. πŸ‘‘
  • --version β€” prints the version number. that's it. that's the whole job. ⭐

πŸ’œ FILES πŸ’œ

  • /etc/group β€” groups file
  • /etc/hosts β€” hosts database
  • /etc/netid β€” netname database
  • /etc/passwd β€” password file

πŸ”₯ SEE ALSO πŸ”₯

passwd(8), group(5), hosts(5), passwd(5)


πŸ‘‘ AUTHOR πŸ‘‘

mknetid was written by Thorsten Kukuk <kukuk@linux-nis.org>. king behaviour, fr fr. 🫢


πŸ’Œ and that's the whole page!! this was the NIS Reference Manual edition, dated 12/31/2020, page MKNETID(8). slay, bye bestie πŸ’–βœ¨πŸŽ€