OpenBSD manual page server

Manual Page Search Parameters

MKNETID(8) System Manager's Manual MKNETID(8)

mknetidgenerate a YP map of group and domain memberships

mknetid [-q] [-d domain] [-g groupfile] [-h hostfile] [-m netidfile] [-P master.passwdfile] [-p passwdfile]

The mknetid utility combines information from the passwd(5), group(5), hosts(5), and netid(5) files, printing it in netid(5) format to the standard output. If the passwd(5) file is not available, the master.passwd(5) file is used instead. The netid(5) file is optional and does not need to exist.

The most common application is to pass the output to makedbm(8) in order to create a netid.byname map for the yp(8) subsystem.

The options are as follows:

domain
Use domain instead of the default domainname(1).
groupfile
Use groupfile instead of /etc/group.
hostfile
Use hostfile instead of /etc/hosts.
netidfile
Use netidfile instead of /etc/netid.
master.passwdfile
Use master.passwdfile instead of /etc/master.passwd.
passwdfile
Use passwdfile instead of /etc/passwd.
Keep quiet about multiple occurrences of a user ID. Ignore all but the first.

/etc/passwd
 
/etc/master.passwd
 
/etc/group
 
/etc/hosts
 
/etc/netid
 

domainname(1), group(5), hosts(5), netid(5), passwd(5), Makefile.yp(8)

Mats O Jansson <moj@stacken.kth.se>

July 16, 2013 OpenBSD-5.8