Okay, first off, I know NIS is a turd, but it's what we've got until we do a major migration next year.
Today we had a NIS server outage which predictably prevents user logins. What surprised me was that I was unable to login in as root to any of the impacted machines.
This is our standard /etc/nsswitch.conf
passwd: files nis
shadow: files nis
group: files nis
#hosts: db files nisplus nis dns
hosts: files db
bootparams: nisplus [NOTFOUND=return] files
ethers: files
netmasks: files
networks: files
protocols: files nis
rpc: files
services: files nis
netgroup: files nis nisplus
My understanding is that the system should consult local files then NIS, but this was not what was occurring. Am I missing a setting somewhere that would allow root login regardless of nis state?
The answer to this is that you can't fix it. I checked and as commenters alluded to: the RPC has to hang first; so you could adjust that timing, but you will be waiting no matter what.