NFS Share: Can read/write from OS X, not from Ubuntu AutoFS

Status
Not open for further replies.

hungarianhc

Patron
Joined
Mar 11, 2014
Messages
234
Hi All!

I'm far from an NFS expert, and I'm more of an intermediate when it comes to *nix permissions... I think I'm doing something wrong here, but I could use some guidance. I set up an NFS share for Resilio Sync, which is running in an Ubuntu VM. The Ubuntu VM is connecting to the NFS share via an autofs mount. It mounts in Ubuntu just fine, but it's only allowing read access. I'm specifying the mount point as follows in my auto.nfs file:

sync-folders -fstype=nfs,rw 192.168.X.X:/mnt/Storage/Sync-Folders

It's of course possible (likely?) that I have something configured incorrectly on my FreeNAS server, but I was surprised to be able to write just fine when I connect from OS X, specified as follows:

I specify it on OS X like this: nfs://192.168.X.X/mnt/Storage/Sync-Folders

It connects with no issue, and I'm able to view files AND write new ones.

If anyone could steer me in the right direction, I'd be very appreciative! Thanks!
 

Nick2253

Wizard
Joined
Apr 21, 2014
Messages
1,633
Can you share a screenshot of your NFS settings on FreeNAS?

The first thing that jumps out to me is possible permission issues, but I hate starting with that one, because I find that it's very difficult to troubleshoot remotely.
 

hungarianhc

Patron
Joined
Mar 11, 2014
Messages
234
Thanks for the offer for help. I've attached both my NFS share screenshot as well as the data set settings.
 

Attachments

  • Screen Shot 2018-01-12 at 11.05.50 AM.png
    Screen Shot 2018-01-12 at 11.05.50 AM.png
    60.2 KB · Views: 421
  • Screen Shot 2018-01-12 at 11.07.06 AM.png
    Screen Shot 2018-01-12 at 11.07.06 AM.png
    53.7 KB · Views: 373

Nick2253

Wizard
Joined
Apr 21, 2014
Messages
1,633
Everything looks right. I would recommend adding specific authorized hosts, but that shouldn't be your problem since you can connect to the shares. Can you check the permissions on the mounts from both the OSX and Ubuntu boxes? ls -la I'm wondering if OSX is doing something slightly different than Ubuntu, and I wonder if that has anything to do with OSX's BSD origins vs Linux.
 

hungarianhc

Patron
Joined
Mar 11, 2014
Messages
234
Screenshot from Ubuntu
 

Attachments

  • Screen Shot 2018-01-12 at 11.17.08 AM.png
    Screen Shot 2018-01-12 at 11.17.08 AM.png
    26.6 KB · Views: 519

Nick2253

Wizard
Joined
Apr 21, 2014
Messages
1,633
Permission look ok. If you do a touch /mnt/nfs/sync-folders/test.file, what happens?
 

hungarianhc

Patron
Joined
Mar 11, 2014
Messages
234
Okay... I think I fixed it. Here's what I did. These files are files that I have sync'd across multiple macs and my FreeNAS. I went into the permissions and I re-set them recursively. Interestingly enough, ubuntu still shows them as owned by Root, but after doing that, I can now write files directly to the share in Ubuntu. So it was definitely a permissions issue...
 

Nick2253

Wizard
Joined
Apr 21, 2014
Messages
1,633
I'm glad that fixed it! I would check your sync programs, and make sure they're using the correct permissions when writing the data.
 
Status
Not open for further replies.
Top