mounting NFS share with autofs CentOS

Discussion in 'Server Operation' started by denmaddog, Sep 14, 2012.

  1. denmaddog

    denmaddog New Member

    I have set up NFS export on one CentOS server like this:
    cat /etc/exports
    /shared 192.168.122.0/24(rw,no_root_squash)
    nfs and rpcbind services are started

    On client side I can mount this share manualy with:
    mount -t nfs 192.168.122.136:/shared /shared
    When mounted like this I can write to that mount, but when setting autofs to mount this share when I try to write to /shared folder I got:

    [root@master shared]# touch testy
    touch: cannot touch `testy': Permission denied
    [root@master shared]#

    on client I have:
    cat /etc/auto.master
    /shared /etc/auto.misc

    cat /etc/auto.misc
    shared -rw 192.168.122.136:/shared


    Please help, I have to resolve this in order to take RHCE exam :)


    Zeljko
     

Share This Page