Is it possible to find out which hosts are using a yp server? I want to remove / update an older VM that's acting as a yp-server but it's not clear which clients are out there.
Asked
Active
Viewed 37 times
1 Answers
2
Problem is: ypserv normally only logs errors into the syslog. This isn't helpful for your use case.
Workaround, assuming RHEL/CentOS, other systems should be similar.
- Check if
/etc/ypserv.securenetsexists and is of any help. This can include a line for every host allowed to use NIS. - Put
ypservinto debug mode with the-doption. This should spew out a line for every connection to STDERR. Seeman ypserv. Warning:ypservwill not background itself in this mode. Run it inscreenor similar. - The evil way: Prevent all connections in
/etc/ypserv.securenetsand look into/var/log/messagesto see who wanted to connect :)
Sven
- 98,649
- 14
- 180
- 226
-
Yow. Sounds a bit draconian. I like it. "Pinch the air hose and see who turns blue." – ethrbunny Jan 26 '19 at 12:25
-
1Also see https://serverfault.com/questions/336240/how-can-i-tell-which-clients-are-connecting-to-a-nis-ypserv-master-server?rq=1 – Sven Jan 26 '19 at 12:27