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

Posted on 2012-09-05
Medium Priority
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

IT Department earned 0 total points
ID: 38371530
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: https://discussions.apple.com/message/5312379?searchText=NFS%20Share%20wont%20connect#5312379

-- 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.


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
This is a tech scam I recently helped my parents through.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

621 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