yp_mkdb.8 (15424) | yp_mkdb.8 (19155) |
---|---|
1.\" Copyright (c) 1995, 1996 2.\" Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 29 unchanged lines hidden (view full) --- 38.Nd "generate the NIS databases" 39.Sh SYNOPSIS 40.Nm yp_mkdb 41.Fl c 42.Nm yp_mkdb 43.Fl u Ar dbname 44.Nm yp_mkdb 45.Op Fl c | 1.\" Copyright (c) 1995, 1996 2.\" Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 29 unchanged lines hidden (view full) --- 38.Nd "generate the NIS databases" 39.Sh SYNOPSIS 40.Nm yp_mkdb 41.Fl c 42.Nm yp_mkdb 43.Fl u Ar dbname 44.Nm yp_mkdb 45.Op Fl c |
46.Op Fl b 47.Op Fl s |
|
46.Op Fl i Ar inputfile 47.Op Fl o Ar outputfile 48.Op Fl m Ar mastername 49.Ar inputfile 50.Ar dbname 51.Sh DESCRIPTION 52.Nm yp_mkdb 53creates --- 37 unchanged lines hidden (view full) --- 91.Xr ypserv 8 92on the local host. This signal tells the server to close any open 93database descriptors and flush out its database cache. If used alone, 94this flag signals the server and does nothing else. If used as part 95of a database creation command, 96.Nm yp_mkdb 97will send the signal only after the new database has been successfully 98created. | 48.Op Fl i Ar inputfile 49.Op Fl o Ar outputfile 50.Op Fl m Ar mastername 51.Ar inputfile 52.Ar dbname 53.Sh DESCRIPTION 54.Nm yp_mkdb 55creates --- 37 unchanged lines hidden (view full) --- 93.Xr ypserv 8 94on the local host. This signal tells the server to close any open 95database descriptors and flush out its database cache. If used alone, 96this flag signals the server and does nothing else. If used as part 97of a database creation command, 98.Nm yp_mkdb 99will send the signal only after the new database has been successfully 100created. |
101.It Fl b 102This flag causes 103.Nm yp_mkdb 104to add a special entry to the database with a key of 105.Em YP_INTERDOMAIN 106and an empty data field. If this key is present in a map, it alters the 107behavior of the 'match' procedure in 108.Xr ypserv 8 109slightly. If a match query fails (because the server couldn't find 110a record that matched the supplied key), and the 111.Em YP_INTERDOMAIN 112key exists within the queried may, 113.Xr ypserv 8 114will try to match the entry again using a DNS lookup. Note that this 115special behavior only applies to the 116.Em hosts 117maps. Using the 118.Fl b 119flag for other maps has no effect. 120.Pp 121.It Fl s 122This flag is used to add a special entry to the database with a key of 123.Em YP_SECURE 124and an empty data field. If this key is present in a map, 125.Xr ypserv 8 126will deny access to the map to any client that is not using a 127reserved port for its query. This is used mainly for the 128.Em master.passwd 129maps, which should be restricted to privileged access only. 130.Pp |
|
99.It Fl u Ar dbname 100.Pp 101Dump (or 'unwind') an NIS database. This option can be used to 102inspect the contents of an existing NIS database. 103.It Op Fl i Ar inputfile 104.Pp 105When generating an NIS map, encode 106.Nm inputfile | 131.It Fl u Ar dbname 132.Pp 133Dump (or 'unwind') an NIS database. This option can be used to 134inspect the contents of an existing NIS database. 135.It Op Fl i Ar inputfile 136.Pp 137When generating an NIS map, encode 138.Nm inputfile |
107as a special entry in the database with called 108.Nm YP_INPUT_FILE. | 139as a special entry in the database with a key of 140.Em YP_INPUT_FILE. |
109.Pp 110.It Op Fl o Ar outputfile 111.Pp 112When generating an NIS map, encode 113.Nm outputfile | 141.Pp 142.It Op Fl o Ar outputfile 143.Pp 144When generating an NIS map, encode 145.Nm outputfile |
114as a special entry in the database with called 115.Nm YP_OUTPUT_FILE . | 146as a special entry in the database with a key of 147.Em YP_OUTPUT_FILE . |
116.Pp 117.It Op Fl m Ar mastername 118.Pp 119When generating an NIS map encode 120.Nm mastername | 148.Pp 149.It Op Fl m Ar mastername 150.Pp 151When generating an NIS map encode 152.Nm mastername |
121as a special entry in the database with called 122.Nm YP_MASTER_NAME . | 153as a special entry in the database with a key of 154.Em YP_MASTER_NAME . |
123This entry in the database is frequently used by various NIS utilities 124to determine the name of an NIS master server for a domain. By default, 125.Nm yp_mkdb 126assumes that the local host is the NIS master; the 127.Ar m 128option is used to override this default. 129.Sh FILES 130.Bl -tag -width Pa -compact 131.It Pa /var/yp/Makefile 132The Makefile that calls 133.Nm yp_mkdb 134to build the NIS databases. 135.Sh SEE ALSO 136.Xr ypserv 8 , 137.Xr db 3 138.Sh AUTHOR 139Bill Paul <wpaul@ctr.columbia.edu> | 155This entry in the database is frequently used by various NIS utilities 156to determine the name of an NIS master server for a domain. By default, 157.Nm yp_mkdb 158assumes that the local host is the NIS master; the 159.Ar m 160option is used to override this default. 161.Sh FILES 162.Bl -tag -width Pa -compact 163.It Pa /var/yp/Makefile 164The Makefile that calls 165.Nm yp_mkdb 166to build the NIS databases. 167.Sh SEE ALSO 168.Xr ypserv 8 , 169.Xr db 3 170.Sh AUTHOR 171Bill Paul <wpaul@ctr.columbia.edu> |