0

We have a NIS server with 4 NIS clients. I would to create local accounts on the NIS client in case the NIS server is offline. Our network is not stable and too many times the NIS server is offline. Thank you for your help.

/etc/nsswitch.conf

passwd: compat

group: compat

shadow: compat

gshadow: files

hosts: files mdns4_minimal [NOTFOUND=return] dns

networks: files

protocols: db files

services: db files

ethers: db files

rpc: db files

netgroup: nis

Legio06
  • 11

1 Answers1

0

OK, this should work for you (make a backup of /etc/nsswitch.conf). Change the passwd: and group: entries like this:

passwd: nis [NOTFOUND=return] files
group:  nis [NOTFOUND=return] files

Add a user that's in the NIS database, then shutdown the NIS client and test. This should force NIS to be the first lookup, then fallback to local /etc/passwd if it's not found. Gotta admit, though - it's been decades since I've used NIS.

ajgringo619
  • 1,243