Networking Forums

Networking Forums > Computer Networking > Linux Networking > nfs mount problems

Reply
Thread Tools Display Modes

nfs mount problems

 
 
p cooper
Guest
Posts: n/a

 
      09-29-2005, 08:37 PM

server
grenada / # cat /etc/exports |grep -v '#'
/var/www 192.168.0.0/24(rw)
grenada / #

client
dads / # mount -t nfs 192.168.0.1:/var/www /mnt/GRENADA
mounts it
but
dads apache2 # mount -t nfs grenada:/var/www /mnt/GRENADA
mount: grenada:/var/www failed, reason given by server: Permission denied
dads apache2 #

even though
dads apache2 # ping grenada
PING grenada.home.nw(192.168.0.1) 56(84) bytes of data.
64 bytes from vexim (192.168.0.1): icmp_seq=1 ttl=64 time=0.506 ms
64 bytes from vexim (192.168.0.1): icmp_seq=2 ttl=64 time=0.494 ms
64 bytes from vexim (192.168.0.1): icmp_seq=3 ttl=64 time=0.484 ms

--- grenada.home.nw ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 0.484/0.494/0.506/0.027 ms
dads apache2 #

if the server /etc/exports is

grenada / # cat /etc/exports |grep -v '#'
/tmp 192.168.0.0/24(rw)
/home 192.168.0.0/24(rw)
grenada / #

home mounts but tmp doesnt
Code:
dads apache2 # mount -t nfs 192.168.0.1:/home    /mnt/GRENADA
dads apache2 # umount /mnt/GRENADA/
dads apache2 # mount -t nfs 192.168.0.1:/tmp    /mnt/GRENADA
mount: 192.168.0.1:/tmp failed, reason given by server: Permission denied
dads apache2 #
with the file persmissions

grenada / # ls -la |grep tmp
drwxrwxrwt   4 root root   940 Sep 28 11:15 tmp
grenada / # ls -la |grep home
drwxr-xr-x   5 root root  4096 Aug 26 09:19 home
grenada / #
why doesnt DNS lookup work within nfs ?
why cant I mount the /tmp directory ?
 
Reply With Quote
 
 
 
 
holiday
Guest
Posts: n/a

 
      09-29-2005, 09:50 PM
One possibility:

Are the user.group ids equal. Unless you have NIS or some
authentication service in place, the user and group _numbers_ must be
the same on both machines.

 
Reply With Quote
 
krsyoung
Guest
Posts: n/a

 
      09-30-2005, 12:55 AM
Hey,

What is the actual output of exportfs? Also, not that this fixes the
problem, or by the looks of it would, have you tried to relax your nfs
permissions to * temporarily? (or even 192.*)

Also curious, what OS versions are you running?

 
Reply With Quote
 
p cooper
Guest
Posts: n/a

 
      09-30-2005, 07:53 AM
OS =gentoo ( both machines)

server

grenada ~ # cat /etc/passwd |grep paul
paul:x:1009:100::/home/paul:/bin/bash
grenada ~ # cat /etc/passwd |grep root
root:x:0:0:root:/root:/bin/bash
operator:x:11:0perator:/root:/bin/bash

grenada ~ # exportfs -ra
exportfs: /etc/exports [9]: No 'sync' or 'async' option specified for export
"*:/tmp".
Assuming default behaviour ('sync').
NOTE: this default has changed from previous versions
exportfs: /etc/exports [11]: No 'sync' or 'async' option specified for
export "*:/home".
Assuming default behaviour ('sync').
NOTE: this default has changed from previous versions
grenada ~ # exportfs
/home <world>
/tmp <world>
grenada ~ #

client
# cat /etc/passwd |grep paul
paul:x:1009:100aul:/home/paul:/bin/bash
# cat /etc/passwd |grep root
root:x:0:0:root:/root:/bin/bash
operator:x:11:0perator:/root:/bin/bash
#

and then

dads zope-2.7.7 # mount -t nfs 192.168.0.1:/home /mnt/GRENADA
dads zope-2.7.7 # umoount /mnt/GRENADA/
bash: umoount: command not found
dads zope-2.7.7 # umount /mnt/GRENADA/
dads zope-2.7.7 # mount -t nfs 192.168.0.1:/home /mnt/GRENADA
dads zope-2.7.7 # umount /mnt/GRENADA/
dads zope-2.7.7 # mount -t nfs 192.168.0.1:/tmp /mnt/GRENADA
mount: 192.168.0.1:/tmp failed, reason given by server: Permission denied
dads zope-2.7.7 # mount -t nfs grenada:/home /mnt/GRENADA
mount: grenada:/home failed, reason given by server: Permission denied
dads zope-2.7.7 #

I still cant work out what gong on

 
Reply With Quote
 
krsyoung
Guest
Posts: n/a

 
      09-30-2005, 01:00 PM
The reply orders are a little messy...

Have a look in /var/log if you haven't aready and check for some better
indication on the server as to why it is rejecting access to the
clients. So you can mount /home, but then you try /tmp and after that
/home stops working? There has got to be something in the logs...

By any chance are you running your own DNS server?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mount mount file system using nfs Jim Anderson Linux Networking 2 07-16-2008 09:19 PM
HELP with autofs and NIS: How to override mount options on all mount points? theosib@gmail.com Linux Networking 0 03-04-2006 09:12 PM
Problems with Samba, can't see or mount shares Mark Landreville Linux Networking 0 11-11-2004 05:27 AM
NFS mount won't mount at boot, but mount -a works fine. BT Linux Networking 2 09-23-2004 09:37 PM
mount -t smbfs problems J. Shrimp, Jr. Linux Networking 2 11-21-2003 10:39 AM



1 2 3 4 5 6 7 8 9 10 11