Results 1 to 10 of 11

Thread: Trying to set up nfs server with netgroups in LDAP

Threaded View

  1. #1
    Join Date
    Oct 2012

    Trying to set up nfs server with netgroups in LDAP


    I am trying to set up the following configuration on Ubuntu 10.04.2.
    My nfs server has the following share in /etc/exports:

    /export/mail @mail(rw,secure,no_root_squash,sync,no_subtree_check)
    nfsserver$ grep netgroup /etc/nsswitch.conf 
    netgroup:   files ldap
    nfsserver$ grep netgroup /etc/ldap.conf
    nss_base_netgroup ou=Netgroup,dc=xxx,dc=xxx
    nfsserver$ getent netgroup mail
    mail                  (backup01, ,
    Now when I try to mount this from client host I am getting:
    mount.nfs: access denied by server while mounting nfsserver:/export/mail
    At the same time nfs server reports the following error message:

    mountd[14460]: refused mount request from for /export/mail (/): not exported
    I am only able to mount this when I put local netgroup definitions, getent netgroup mail > /etc/netgroup solves this problem however I would rather like to store my netgroups in LDAP.

    Does anyone have any ideas? Seems that netgroups in LDAP are not working here. Is there anything I missed?
    Last edited by sandyd; October 26th, 2012 at 05:15 PM. Reason: code tags


Posting Permissions

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