Find the answer to your Linux question:
Results 1 to 3 of 3
/etc/exports Code: /home/bludiescript/tv-shows 192.168.1.127(ro) 192.168.1.38(ro) /home/bludiescript/shares 192.168.1.127(rw) 192.168.1.38(rw) portmap Code: ps -ef|grep portmap root 26073 25801 0 15:31 pts/0 00:00:00 grep --colour=auto portmap rpcinfo Code: rpcinfo -p program vers proto ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    27

    nfs mount failure permission denied by server


    /etc/exports
    Code:
    /home/bludiescript/tv-shows 192.168.1.127(ro) 192.168.1.38(ro)
    /home/bludiescript/shares 192.168.1.127(rw) 192.168.1.38(rw)
    portmap
    Code:
    ps -ef|grep portmap
    root     26073 25801  0 15:31 pts/0    00:00:00 grep --colour=auto portmap
    rpcinfo
    Code:
    rpcinfo -p
       program vers proto   port  service
        100000    4   tcp    111  portmapper
        100000    3   tcp    111  portmapper
        100000    2   tcp    111  portmapper
        100000    4   udp    111  portmapper
        100000    3   udp    111  portmapper
        100000    2   udp    111  portmapper
        100024    1   udp  57081  status
        100024    1   tcp  57282  status
        100005    1   udp  59019  mountd
        100005    1   tcp  55508  mountd
        100005    2   udp  60320  mountd
        100005    2   tcp  56712  mountd
        100005    3   udp  49019  mountd
        100005    3   tcp  55189  mountd
        100003    2   tcp   2049  nfs
        100003    3   tcp   2049  nfs
        100003    4   tcp   2049  nfs
        100227    2   tcp   2049  nfs_acl
        100227    3   tcp   2049  nfs_acl
        100003    2   udp   2049  nfs
        100003    3   udp   2049  nfs
        100003    4   udp   2049  nfs
        100227    2   udp   2049  nfs_acl
        100227    3   udp   2049  nfs_acl
        100021    1   udp  44459  nlockmgr
        100021    3   udp  44459  nlockmgr
        100021    4   udp  44459  nlockmgr
        100021    1   tcp  41851  nlockmgr
        100021    3   tcp  41851  nlockmgr
        100021    4   tcp  41851  nlockmgr
    showmount from client
    Code:
    showmount -e 192.168.1.32
    Export list for 192.168.1.32:
    /home/bludiescript/share    192.168.1.127(ro) 
    /home/bludiescript/tv-shows    192.168.1.127(ro)
    mounting nfs share
    Code:
    mount -v 192.168.1.32:/home/bludiescript/tv-shows /home/hiawatha/Desktop/stuff/sabayon_tv-shows
    mount: no type was given - I'll assume nfs because of the colon
    mount.nfs: timeout set for Sat Jul 16 06:47:27 2011
    mount.nfs: trying text-based options 'vers=4,addr=192.168.1.32,clientaddr=192.168.1.5'
    mount.nfs: mount(2): Permission denied
    mount.nfs: access denied by server while mounting 192.168.1.32:/home/bludiescript/tv-shows
    ping to server from client
    Code:
    --- 192.168.1.32 ping statistics ---
    50 packets transmitted, 50 received, 0% packet loss, time 49000ms
    rtt min/avg/max/mdev = 0.111/0.184/0.882/0.138 ms
    var/log/messages shows no relevant information it doesn't even seem to be trying to authenticating a the mount on the server or the client in either of the var/log/messages file.

    i have tried various different ip's and host names such as the host name of the client and 192.168.0.0/8 /24 * etc.. in the exports file with each change i make i then restart nfs with /etc/init.d/nfs restart cmd. i have disabled the firewalls on client and server. anyone have any suggestions any help is greatly appreciated thank you

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,763
    Try:

    Code:
    /home/bludiescript/tv-shows 192.168.1.127(ro,insecure,no_root_squash) 192.168.1.38(ro,insecure,no_root_squash)
    /home/bludiescript/shares 192.168.1.127(rw,insecure,no_root_squash) 192.168.1.38(rw,insecure,no_root_squash)

  3. #3
    Just Joined!
    Join Date
    Jul 2007
    Posts
    27
    thank you for the reply. i actually solved the problem it seems at least for now the solution that i got was useing -o 'vers=3' option in the mount command

    mount -v -o 'vers=3' 192.168.1.32:/home/bludiescript/tv-shows /home/hiawatha/Desktop/stuff/sabayon_tv-shows
    mount: no type was given - I'll assume nfs because of the colon
    mount.nfs: timeout set for Sat Jul 16 15:39:21 2011
    mount.nfs: trying text-based options 'vers=3,addr=192.168.1.32'
    mount.nfs: prog 100003, trying vers=3, prot=6
    mount.nfs: trying 192.168.1.32 prog 100003 vers 3 prot TCP port 2049
    mount.nfs: prog 100005, trying vers=3, prot=17
    mount.nfs: trying 192.168.1.32 prog 100005 vers 3 prot UDP port 56967
    192.168.1.32:/home/bludiescript/tv-shows on /home/hiawatha/Desktop/stuff/sabayon_tv-shows type nfs (rw,vers=3)

    it has read and write access even tho in the exports i specified it to be read only when i edit the fstab ill make sure to add the ro option there as well to see if that will fix the problem. so this problem has been fix but now the issue im currently dealing with is my mac i personally know nothing about macs and this is the problem

    sudo showmount -e 192.168.1.32 it give a rpc authentication failure.

    rpcinfo -p
    rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused

    my logical conclusion is that rpc daemons arnt started and i have no idea how to execute the daemons on mac nor do i even know is they are installed so i posted my inquiry at macfourms and hopefully can get it resolved. again thank you for your help

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •