xref: /titanic_50/usr/src/cmd/netfiles/nsswitch.nis (revision 1bc9f3f58793fef9170c3afd7d01d0b5882c48e9)
17c478bd9Sstevel@tonic-gate# CDDL HEADER START
27c478bd9Sstevel@tonic-gate#
37c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
4*1bc9f3f5SMilan Jurik# Common Development and Distribution License (the "License").
5*1bc9f3f5SMilan Jurik# You may not use this file except in compliance with the License.
67c478bd9Sstevel@tonic-gate#
77c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
87c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
97c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
107c478bd9Sstevel@tonic-gate# and limitations under the License.
117c478bd9Sstevel@tonic-gate#
127c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
137c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
147c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
157c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
167c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
177c478bd9Sstevel@tonic-gate#
187c478bd9Sstevel@tonic-gate# CDDL HEADER END
197c478bd9Sstevel@tonic-gate#
20*1bc9f3f5SMilan Jurik# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
217c478bd9Sstevel@tonic-gate#
227c478bd9Sstevel@tonic-gate
237c478bd9Sstevel@tonic-gate#
247c478bd9Sstevel@tonic-gate# /etc/nsswitch.nis:
257c478bd9Sstevel@tonic-gate#
267c478bd9Sstevel@tonic-gate# An example file that could be copied over to /etc/nsswitch.conf; it
277c478bd9Sstevel@tonic-gate# uses NIS (YP) in conjunction with files.
287c478bd9Sstevel@tonic-gate#
297c478bd9Sstevel@tonic-gate# "hosts:" and "services:" in this file are used only if the
307c478bd9Sstevel@tonic-gate# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gate# NIS service requires that svc:/network/nis/client:default be enabled
337c478bd9Sstevel@tonic-gate# and online.
347c478bd9Sstevel@tonic-gate
357c478bd9Sstevel@tonic-gate# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
367c478bd9Sstevel@tonic-gatepasswd:     files nis
377c478bd9Sstevel@tonic-gategroup:      files nis
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gate# consult /etc "files" only if nis is down.
40*1bc9f3f5SMilan Jurikhosts:      files nis
417c478bd9Sstevel@tonic-gate
427c478bd9Sstevel@tonic-gate# Note that IPv4 addresses are searched for in all of the ipnodes databases
437c478bd9Sstevel@tonic-gate# before searching the hosts databases.
44*1bc9f3f5SMilan Jurikipnodes:    files nis
457c478bd9Sstevel@tonic-gate
46*1bc9f3f5SMilan Juriknetworks:   files nis
47*1bc9f3f5SMilan Jurikprotocols:  files nis
48*1bc9f3f5SMilan Jurikrpc:        files nis
49*1bc9f3f5SMilan Jurikethers:     files nis
50*1bc9f3f5SMilan Juriknetmasks:   files nis
51*1bc9f3f5SMilan Jurikbootparams: files nis
52*1bc9f3f5SMilan Jurikpublickey:  files nis
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gatenetgroup:   nis
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gateautomount:  files nis
577c478bd9Sstevel@tonic-gatealiases:    files nis
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gate# for efficient getservbyname() avoid nis
607c478bd9Sstevel@tonic-gateservices:   files nis
617c478bd9Sstevel@tonic-gateprinters:	user files nis
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gateauth_attr:  files nis
647c478bd9Sstevel@tonic-gateprof_attr:  files nis
657c478bd9Sstevel@tonic-gateproject:    files nis
66