For When You Can't Have The Real Thing
[ start | index | login ]
start > Linux > ypcat shows results but ypmatch doesn't

ypcat shows results but ypmatch doesn't

Created by dave. Last edited by dave, 5 years and 137 days ago. Viewed 2,422 times. #1
[edit] [rdf]
labels
attachments
(2013-07-29)

Problem

I'm creating a new user in NIS. However I can't use it. For example:

[root@fia home]# ypcat auto.home | grep glean
stimpy:/vol/vol1/home/glean
[root@fia home]# ypmatch glean auto.home
Can't match key glean in map auto.home. Reason: No such key in map

Also possibly relevant:

[root@fia home]# yppasswd glean
Unknown error
yppasswd: unknown user (uid=0).

Solution

I made two changes which might be relevant:

  • add 127.0.0.1 to /var/yp/securenets
255.255.255.255 127.0.0.1
  • turn off file handle caching in /etc/ypserv.conf
# How many map file handles should be cached ?
files: 0

Things are much better behaved now.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt