1.\" $NetBSD: mknetid.8,v 1.14 2014/03/18 18:20:48 riastradh Exp $ 2.\" 3.\" Copyright (c) 1996 Mats O Jansson <moj@stacken.kth.se> 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 16.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 19.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" 27.Dd February 26, 2005 28.Dt MKNETID 8 29.Os 30.Sh NAME 31.Nm mknetid 32.Nd a NIS filter program 33.Sh SYNOPSIS 34.Nm 35.Op Fl q 36.Op Fl d Ar domain 37.Op Fl g Ar groupfile 38.Op Fl h Ar hostfile 39.Op Fl m Ar netidfile 40.Op Fl p Ar passwdfile 41.Sh DESCRIPTION 42.Nm 43is used to create a map named 44.Pa netid.byname . 45The map consists of information from 46.Xr passwd 5 , 47.Xr group 5 48and 49.Xr hosts 5 50eventually concatenated with a 51.Xr netid 5 52file. 53.Pp 54The options are as follows: 55.Bl -tag -width "-p passwdfile" 56.It Fl d Ar domain 57.Tn NIS 58domain to use instead of the default domain. 59.It Fl g Ar groupfile 60Alternate 61.Xr group 5 62file. 63Default is 64.Pa /etc/group . 65.It Fl h Ar hostfile 66Alternate 67.Xr hosts 5 68file. 69Default is 70.Pa /etc/hosts . 71.It Fl m Ar netidfile 72Alternate 73.Xr netid 5 74file. 75Default is 76.Pa /etc/netid . 77.It Fl p Ar passwdfile 78Alternate 79.Xr passwd 5 80file. 81Default is 82.Pa /etc/passwd . 83.It Fl q 84Keep quiet about multiple occurrences of a uid; ignore all but the first. 85.El 86.Sh FILES 87.Bl -tag -width "/etc/passwd" -compact 88.It Pa /etc/group 89.It Pa /etc/hosts 90.It Pa /etc/netid 91.It Pa /etc/passwd 92.El 93.Sh SEE ALSO 94.Xr domainname 1 , 95.Xr group 5 , 96.Xr hosts 5 , 97.Xr netid 5 , 98.Xr passwd 5 , 99.Xr nis 8 100.Sh AUTHORS 101.An Mats O Jansson Aq Mt moj@stacken.kth.se 102