O'Reilly logo

Solaris™ Operating Environment Boot Camp by Dominic Butler, David Rhodes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required