nis nfs netgroup problem

Rudy Gevaert rgevaert at elis.ugent.be
Mon Nov 29 15:34:48 CET 2004


Hi Frank,

I changed my setup this week, so I could exclude a gateway/firewall problem.

Now my NIS server is running on the machine testbak.gevaert
The NFS server is running ont he machine gateway.gevaert


On Mon, Nov 29, 2004 at 09:46:49AM +0100, Frank Lenaerts wrote:

> What's the output of a showmount -e gateway.gevaert?

testbak:/var/yp# showmount -e gateway.gevaert
Export list for gateway.gevaert:
/home             @testbakken
/ed/nfsroot       10.0.0.0/255.255.255.0
/ed/debmirror     10.0.0.0/255.255.255.0
/ed/fai_configdir 10.0.0.0/255.255.255.0

> Looks ok but I've never seen "fully qualified" hostnames in NIS
> context. AFAIK, NIS is "flat" i.e. does not use scoping as in DNS.
> 
> Could you replace testbakken (testbak.gevaert,,) with testbakken
> (testbak,,) and retry it?

Ok, I did so:

(on the nis server:)
testbak:~# cat /etc/netgroup 
lappie   (duvel,,)
testbak (testbak,,)
gateway (gateway,,)
ant01  (ant01,,)
ant02  (ant02,,)
ant03  (ant03,,)
testbakken gateway testbak
ants ant01 ant02 ant03
faiclients ants testbakken gateway


(on the gateway:)
gevaert:~# cat /etc/nsswitch.conf
passwd:         nis compat
group:          nis compat
shadow:         nis compat
hosts:          files dns
networks:       files
protocols:      db files
services:       db files
ethers:         db files
rpc:            db files
netgroup:       nis


(on the nis server:)
testbak:~# cat /etc/nsswitch.conf
passwd:         compat
group:          compat
shadow:         compat
hosts:          files dns
networks:       files
protocols:      db files
services:       db files
ethers:         db files
rpc:            db files
netgroup:       nis



Using the program "netgroup" (out of package ng-utils):

testbak:~# netgroup -h testbakken
testbak
gateway

gevaert:~# netgroup -h testbakken
testbak
gateway


(Export file on the NFS server (gateway.gevaert))
gevaert:~# cat /etc/exports
/ed/debmirror       10.0.0.0/255.255.255.0(ro,sync)
/ed/fai_configdir 10.0.0.0/255.255.255.0(async,ro)
/ed/nfsroot 10.0.0.0/255.255.255.0(async,ro,no_root_squash)
/home @testbakken(rw,sync)
#/home  10.0.0.0/255.255.255.0(async,rw)

This is the same showmount outputs (see before)


Running:
testbak:~# mount gateway.gevaert:/home /mnt/
mount: gateway.gevaert:/home failed, reason given by server: Permission denied


Gives in the NFS server's syslog:
Nov 29 15:28:01 gevaert rpc.mountd: refused mount request from 10.0.0.250 for /home (/): no export entry

I'm puzzled...

Thanks in advance!
Echt waar

Rudy



More information about the linux-fai mailing list