NFS Exports in Ubuntu via Webmin reverting to NFS Version 3 (or lower)

Posted on 2012-09-05
Last Modified: 2012-09-06

I have 3 disks inside Ubuntu that I am trying to share an entire disk via NFS for MacOS X Clients.

I have installed nfs-kernel-server and am trying to setup NFS Exports via Webmin

The problem is I create an export
NFS Version 4
Directory to export: /export/sdd1
Active Yes
Export to: IPv4 Network: /
Sec Level: None
Read Only: No
Disable subtree checking: Yes
Immediately Sync all writes: default
trust remote users: everyone except root
treat untrusted users as: default
clients must be on secure port: no
hide the filesystem?: no

I hit save and apply

NFS Export Screen(You will see above that it is set as 3 even though I have chosen 4 so many times)

When I head back to the export, NFS Version is now set to 3. I have rebooted the server with no joy.

Then what I am doing at the MacOS X End (Mountain Lion 10.8.1 by the way)

showmount -e
sudo mkdir /ubuntu
sudo mount -t nfs /ubuntu

I then cd /ubuntu and it returns:
-bash: cd: /ubuntu: Permission denied

Terminal in MacOS
I then head to the finder, find the in the shared and see the sdd1 folder with a red icon which clearly means no access.

The folder is blank.

The Icon
I have attached as many screenshots as possible.

Question by:IT Department
    1 Comment

    Accepted Solution

    After some internet trawling, I found the way to resolve this issue.

    Firstly head straight to keychain access and search for "network"
    If you find any usernames saved for the NFS share you are trying to access, delete them!

    Secondly on the Linux server head and do the following.

    Stolen from Apple Discussions:

    -- on Ubuntu --
    1. edit /etc/exports (sudo vim /etc/exports) and add this line(s)
    where "/folder" is a folder you want to mount from your Mac
    "" is an IP address you allow to connect to your share from
    "anonuid=xxx,anongid=xxx" is UID and GID of user on Ubuntu you want to be used as owner of files you want to create on mounted share (if you ommit this you will have read-only access to the share folder)
    2. export your shares - sudo exportfs -a
    -- on your Mac --
    Use Connect to Server (Commant+K) menu and write nfs://server-name-or-ip/folder
    Voila! You have to have rw access to shared folder on your server.

    P.S. check man exports to find some additional info to set IP ranges you want to allow to connect from.

    Then as you are probably like me and aren't very good with CLI, download NFS Manager for MacOS and mount the NFS Share.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
    iCloud Drive was introduced after iOS 8 was launched last year. This drive is Apple’s online storage device that lets users sync their files and access them from all their Apple devices.   There is a lot of data that is not automatically backed up…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now