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

Hi,

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
Choose:
NFS Version 4
Directory to export: /export/sdd1
Active Yes
Export to: IPv4 Network: 192.168.1.0 / 255.255.255.0
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)

Terminal:
showmount -e 192.168.1.82
sudo mkdir /ubuntu
sudo mount -t nfs 192.168.1.82:/export/sdd1 /ubuntu

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

Terminal in MacOS
I then head to the finder, find the 192.168.1.82 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.

Cheers
IT DepartmentAsked:
Who is Participating?
 
IT DepartmentAuthor Commented:
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)
/folder 0.0.0.0(rw,sync,all_squash,insecure,anonuid=xxx,anongid=xxx)
--
where "/folder" is a folder you want to mount from your Mac
"0.0.0.0" 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.

FIXED!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.