Name Service Switch File

This is called /etc/nsswitch.conf, and is used to control which name service will be used to access a particular type of data. We've briefly come across it in some other chapters, but we'll take a closer look at it here.

If we look at the file we're using for our currently configured name service—“local files”—we would see something similar to that shown below:

 tin# cat /etc/nsswitch.conf # # An example file that could be copied over to # /etc/nsswitch.conf; it does not use any naming service. # passwd: files group: files hosts: files ipnodes: files networks: files protocols: files rpc: files ethers: files netmasks: files bootparams: files publickey: files netgroup: files automount: files aliases: files services: files ...

Get Solaris™ Operating Environment Boot Camp now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.