Accessing NFS Shares

knightjp

Dabbler
Joined
Jun 9, 2020
Messages
17
I'm not sure what I am missing here. This is how I setup the FreeNAS box to share these folders. SMB works fine. I am just not able to access the same folders using NFS.
This is how I setup the shares.
Screen Shot 2020-08-18 at 12.33.29 AM.png


These are the shares I set up.
Screen Shot 2020-08-18 at 12.33.42 AM.png


I started the NFS service.
Screen Shot 2020-08-18 at 12.33.53 AM.png


Not sure what options I need over here. Mine is just a standard home network so I left everything as default.
Screen Shot 2020-08-18 at 12.34.03 AM.png


But when trying to access the Server from any capable device... I get the same error..
Screen Shot 2020-08-18 at 12.32.45 AM.png


What am I missing? I followed the instructions as dictated here.
https://www.ixsystems.com/documentation/freenas/11.3-RELEASE/sharing.html#unix-nfs-shares
 

Attachments

  • Screen Shot 2020-08-18 at 12.34.03 AM.png
    Screen Shot 2020-08-18 at 12.34.03 AM.png
    61.9 KB · Views: 345

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
What are the permissions on your shared folders?
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
Could you post the /etc/exports file of your NAS?
Could you also try to mount the share by command line instead of a GUI tool?
The GUI screenshot does help in case something went wrong on the client side.
 

knightjp

Dabbler
Joined
Jun 9, 2020
Messages
17
Could you post the /etc/exports file of your NAS?
Could you also try to mount the share by command line instead of a GUI tool?
The GUI screenshot does help in case something went wrong on the client side.
Here you go.

Screen Shot 2020-08-18 at 3.01.08 PM.png
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
Could you also try to mount the share by command line instead of a GUI tool?
Please?

Your exports file looks OK so far. But please also post the permissions of that folder. I see you like your screenshots, but could you please post
the output of ls -ld /mnt/Movies/Movies and getfacl /mnt/Movies/Movies

And please don't post screenshots, copy and paste the content and put in [code][/code] tags.

It's probably a permission issue. For test purposes add root as a maproot user to your share. This way the client mounting has
root rights to that share. Otherwise root on the client will have the rights of user "nobody" on the server.
If that works, it's a permission issue. Fix the permissions and remove the maproot.
 

knightjp

Dabbler
Joined
Jun 9, 2020
Messages
17
Please?

Your exports file looks OK so far. But please also post the permissions of that folder. I see you like your screenshots, but could you please post
the output of ls -ld /mnt/Movies/Movies and getfacl /mnt/Movies/Movies

And please don't post screenshots, copy and paste the content and put in [code][/code] tags.

Understood. Here are the outputs as requested.
ls -ld /mnt/Movies/Movies
d---rwx---+ 5 root Pereira 6 Jun 20 18:05 /mnt/Movies/Movies

getfacl /mnt/Movies/Movies
# file: /mnt/Movies/Movies # owner: root # group: Pereira group:Pereira:rwxpDdaARWcCos:fd-----:allow everyone@:--------------:fd-----:allow
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
So only the Pereira group has access to that share, not root. Does that groups (or GID) even exist on the client?
You still haven't posted the mount command of the client.

So fix the permission. Try my maproot suggestion.
 

knightjp

Dabbler
Joined
Jun 9, 2020
Messages
17
So only the Pereira group has access to that share, not root. Does that groups (or GID) even exist on the client?
You still haven't posted the mount command of the client.

So fix the permission. Try my maproot suggestion.
The GID does not exist on the client as it is a MacOS system.
I was hoping that it would request me for the credentials

This is what happens when I use the "mount" command.
Code:
sudo mount -t nfs -o resvport,rw 192.168.1.10:/mnt/Movies/Movies /Users/julx/shares


Code:
mount_nfs: can't mount /mnt/Movies/Movies from 192.168.1.10 onto /Users/julx/shares: RPC prog. not avail
mount: /Users/julx/shares failed with 74
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
NFS does not work that way. You don't need a password.
The general permission to mount depends on user root being able to access the share.
After that the permissions are done by UID/GID matching.
I don't know about MacOS, e.g. if there are some special things on the client side.

I'd suggest giving root and "everyone" at least "r" and "x" permissions for that folder.
 

knightjp

Dabbler
Joined
Jun 9, 2020
Messages
17
NFS does not work that way. You don't need a password.
The general permission to mount depends on user root being able to access the share.
After that the permissions are done by UID/GID matching.
I don't know about MacOS, e.g. if there are some special things on the client side.

I'd suggest giving root and "everyone" at least "r" and "x" permissions for that folder.
Thanks for the suggestion.
I have done set up the folder permissions like this..
Screen Shot 2020-08-18 at 7.17.05 PM.png
 
Top