I am trying to NFS export a file on my LM 7.02 system. I have put the
directory in /etc/exports but still can not access the export from my other
linux system. I have:
(bugsbunny = 192.168.2.11)
(elmo = 192.168.2.1)
[root@bugsbunny rc3.d]# cat /etc/exports
/mnt/loop0 192.168.*(ro,no_root_squash) # Linux Mandrake CD 1 iso
/mnt/loop1 192.168.*(ro,no_root_squash)
elmo:~# mount -t nfs bugsbunny:/mnt/loop0 /mnt/nfs
mount: bugsbunny:/mnt/loop0 failed, reason given by server: Permission
denied
[root@bugsbunny rc3.d]# tail -2 /var/log/messages
Jun 7 19:30:01 bugsbunny kernel: SB 4.13 detected OK (220)
Jun 7 19:33:20 bugsbunny mountd[7812]: refused mount request from
elmo.shirley.org for /mnt/loop0 (/): no export entry
Ok, it doesn't work.
I did find out (from the man files) that rpc.mountd does not use the
/etc/exports file, but instead uses /var/lib/nfs/xtab.
"Usually, a file system and the hosts it should be made available to are
listed in the /etc/exports file, and invok-
ing exportfs -a whenever the system is booted. The exportfs(8)
command makes export information available to both
the kernel NFS server module and the rpc.mountd daemon."
But exportfs -a does not work.
[root@bugsbunny rc3.d]# ls -l /var/lib/nfs/
total 16
-rw-r--r-- 1 root root 264 Jun 7 14:09 etab
-rw-r--r-- 1 root root 0 Dec 20 20:35 rmtab
drwx------ 2 root root 4096 Mar 27 02:53 sm/
drwx------ 2 root root 4096 Mar 27 02:53 sm.bak/
-rw------- 1 root root 4 Jun 5 16:02 state
-rw-r--r-- 1 root root 0 Jun 7 14:09 xtab
[root@bugsbunny rc3.d]# exportfs -va
exporting 192.168.*:/mnt/loop1
exporting 192.168.*:/mnt/loop0
[root@bugsbunny rc3.d]# ls -l /var/lib/nfs/
total 16
-rw-r--r-- 1 root root 264 Jun 7 19:39 etab
-rw-r--r-- 1 root root 0 Dec 20 20:35 rmtab
drwx------ 2 root root 4096 Mar 27 02:53 sm/
drwx------ 2 root root 4096 Mar 27 02:53 sm.bak/
-rw------- 1 root root 4 Jun 5 16:02 state
-rw-r--r-- 1 root root 0 Jun 7 19:39 xtab
Notice the before and after the exportfs command the xtab file size is zero.
I think I have done everything correctly but it still does not work. Anyone
have any clues how to get this to work?
Bill
P.S. I have stopped and started /etc/rc.d/rc3.d/S60nfs several times in the
process.