[
rbd-ypcat 3K ]
Sorry for the repeat post, but I got no useful information the first time
around so I'm trying again.
Is there anyone out there who is successfully using a RedHat 5.1 system
as an NIS client (or who has tried and failed)? If so, I'd greatly appreciate
answers to the following questions:
(1) Does ypcat work, e.g., 'ypcat hosts', or do you get a message about an
internal NIS error just like I do?
(2) Have you had any success with using an NIS netgroup name in your /etc/exports
file to control remote mount access to your local filesystems?
Following is the full text of my original post:
##############################
I am having difficulty getting my RedHat 5.1 system (kernel 2.0.34) to work as
a fully functional NIS client. Some NIS things work on the system (ulua) but
others do not, in particular
ulua# ypcat hosts
No such map hosts.byaddr. Reason: Internal NIS error
However, the following *does* work:
ulua# ypmatch ulua hosts
128.171.159.128 ulua ulua.soest.hawaii.edu
Go figure. I can't use ypcat to look at any maps whatsoever, but I do get the
following, for whatever it's worth:
ulua# ypcat -x
Use "passwd" for "passwd.byname"
Use "group" for "group.byname"
Use "networks" for "networks.byaddr"
Use "hosts" for "hosts.byaddr"
Use "protocols" for "protocols.bynumber"
Use "services" for "services.byname"
Use "aliases" for "mail.aliases"
Use "ethers" for "ethers.byname"
Use of the real map name instead of the alias makes no difference, however:
ulua# ypcat hosts.byaddr
No such map hosts.byaddr. Reason: Internal NIS error
A different error message is generated if I try to access a map which *really*
does not exist, so ypcat isn't entirely stupid:
ulua# ypcat nosuchmap
No such map nosuchmap. Reason: No such map in server's domain
My current yp (NIS) package revs are as follows:
ulua# rpm -q -a | grep yp
yp-tools-1.4.1-2
ypbind-3.3-7
ypserv-1.3.1-2
If the only symptom of my problem was a broken ypcat I could probably get by,
but there are two other problems which may be related. First, I can remotely
log in to this system with an NIS userID (or log in on one of the virtual
terminal consoles), but I *can't* use an NIS userID to log in on the CDE
console. (I've had this problem on another RedHat system, and it would sure
be great if somebody could fix this!) Second, netgroup names in /etc/exports
don't work, e.g.,
ulua# cat /etc/exports
If a system which is a member of the machines netgroup tries to mount /export/ulua,
it gets the message:
planet10% cd /home/ulua
/home/ulua - Permission denied
On ulua, /var/log/messages contains the error message
Aug 18 17:48:49 ulua mountd[314]: Unauthorized access by NFS client 128.171.159.88.
Aug 18 17:48:49 ulua mountd[314]: Blocked attempt of 128.171.159.88 to mount /export/ulua
If I change /etc/exports to read as follows, however, the mount is allowed:
ulua# cat /etc/exports
I suspect that this fails because whatever bug is preventing ypcat from working
is also preventing the machines netgroup map entry from being read.
As far as I can tell my system is configured properly:
ulua# domainname
soest
ulua# nisdomainname
soest
ulua# cat /etc/yp.conf
# /etc/yp.conf - ypbind configuration file
# Valid entries are
#domain NISDOMAIN server HOSTNAME
#domain NISDOMAIN broadcast
#ypserver HOSTNAME
domain soest broadcast
Any suggestions would be greatly appreciated!
-------------------------------
Roger Davis
University of Hawaii/SOEST