If you have in the /etc/nsswitch.conf something like this, then it will use nis first since it is stated first, if nis fails it should attempt to use local files.
passwd: nis files
group: nis files
that is if I understand your question correctly...
Then I don't understand the question, because the article states that the ypserv daemon handles client requests for nis maps.
It also states that nicknames are used to describe actual references to nis maps, ypcat -x tells you this.
As an example `ypmatch <user> passwd`, tells nis to look in the passwd map, which is a nickname for passwd.byname.
Well if a program is asking for an ip-adress then the system are using gethostbyname() and that function knows that it should use hosts maps.
And for example when you using passwd to change/set password for a user, the program use getpwname()/setpwnam() function and these functions knows att it should use passwd maps.
The same for the rest of the maps, the functions in the system knows what maps to ask for.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.