1.\" $NetBSD: nicknames.5,v 1.2 2009/06/21 14:56:49 wiz Exp $ 2.\" 3.\" 4.\" Copyright (c) 2003 The NetBSD Foundation 5.\" All rights reserved. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions 9.\" are met: 10.\" 1. Redistributions of source code must retain the above copyright 11.\" notice, this list of conditions and the following disclaimer. 12.\" 2. Redistributions in binary form must reproduce the above copyright 13.\" notice, this list of conditions and the following disclaimer in the 14.\" documentation and/or other materials provided with the distribution. 15.\" 3. The name of the author may not be used to endorse or promote 16.\" products derived from this software without specific prior written 17.\" permission. 18.\" 19.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 20.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE 23.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" SUCH DAMAGE. 30.\" 31.Dd August 28, 2003 32.Dt NICKNAMES 5 33.Os 34.Sh NAME 35.Nm nicknames 36.Nd map nickname translation file for NIS (YP) 37.Sh DESCRIPTION 38The 39.Xr ypcat 1 , 40.Xr ypmatch 1 , 41and 42.Xr ypwhich 1 43commands reference NIS (YP) maps as specified by the user. 44Occasionally it is desirable to use a shorthand reference for a 45longer map name, hence the 46.Nm 47file, kept in 48.Dq /var/yp/nicknames. 49.Pp 50The format of the file is 51.Pp 52.Dl nickname map 53.Pp 54one pair per line. 55The default installed nickname map is as follows: 56.Pp 57.Bl -tag -width protocols -offset indent -compact 58.It passwd 59passwd.byname 60.It group 61group.byname 62.It networks 63networks.byaddr 64.It hosts 65hosts.byname 66.It protocols 67protocols.bynumber 68.It services 69services.byname 70.It aliases 71aliases.byname 72.It ethers 73ethers.byname 74.It master.passwd 75master.passwd.byname 76.El 77.Pp 78A blank or incomplete 79.Nm 80file will affect any scripts which use nicknames for map lookup, 81whereas if the file is simply missing, the default compiled-in list 82will be used. 83.Sh SEE ALSO 84.Xr ypcat 1 , 85.Xr ypmatch 1 , 86.Xr ypwhich 1 87.Sh HISTORY 88The 89.Nm 90file first appeared in Solaris 2.4. 91