Allow Connection to NAS
First, you need to browse available shared folders in [Control Panel] → [File Sharing/Privilege] → [Shared Folder]. Use [Add] button to create or select the folder you want to share via NFS.
Then click [NFS] button to bring up Config NFS Share dialog. Use [Add] tab to create a new exports or [Edit] button to edit existing export. You cannot change Host Name once created.
For example, if you want all IP between 192.168.1.1 to 192.168.1.254 with the same permission, use 192.168.1.1/24. Another is all IP between 192.168.1.5 to 192.168.1.6 with the same permission, use 192.168.1.5/29. Netmask on Computer Hope is a very detail explain and IP Calculator by Krischan Jodies may calculate for you.
For OSX, choose AIX in OS Support. This will generate insecure as a parameter in exports which is a NFS configuration files. According to Using Linux NFS with Other OSes on nfs.sourceforge.net, insecure will enable listening to ports higher than 1024. Because non-root users can bind ports above 1024, it’s less secured.
Here is an example configuration to export /NAS_Public on 192.168.2.* for OSX:
drwxr-xr-x+ 2 1000 users 4096 Apr 2 00:25 Linux drwxrwxrwx+ 2 nobody nogroup 4096 Apr 1 22:34 Mac
File Permission and Squash Option
Because I want to have full access on files and folders on ThecusOS 6, I have to edit /etc/exports and change no_root_squash into all_squash.
Use exportfs -ra to reload export configuration as explained in Fix NFS privileges on Synology NAS on Linux and Unit tips. It’s the same to Synology DiskStation Manager. But you will have no right to remove anything created with no_root_squash, you may only read them.
drwxr-xr-x+ 2 nobody nogroup 4096 Apr 2 00:33 Linux drwxr-xr-x+ 2 nobody nogroup 4096 Apr 2 00:33 Mac
Mount the Right Path
When your are in Config NFS Share dialog, you will see hint showing you how to mount the selected folder. Use NFS3 Mount point with Finder. You will see warning “You do not have permission to access this server.” if you use NFS4 Mount point.
How to Access a Shared Folder Locally with NFS on Thecus is a good step-by-step guide.
Here is an example to mount a shared folder NAS_Public at 192.168.1.116:
- About.com: Linux / Unix Command: exports
- Apple: OS X
- Apple: OS X Man Pages: EXPORTS(5)
- Apple: Support: Mac Basics: The Finder organizes all of your files
- Christian Schneider: HOWTO setup a small server: NFS Server (Network File System)
- Computer Hope: Netmask
- Facebook: QNAP Geek
- Krischan Jodies: IP Calculator
- Linux and Unix tips: Fix NFS privileges on Synology NAS
- nfs.sourceforge.net: 3. Setting Up an NFS Server
- nfs.sourceforge.net: 8. Using Linux NFS with Other OSes
- QNAP: QTS
- StackExchange: Unix & Linux: How to configure a fixed user ID on an NFS server?
- Synology: DiskStation Manager
- Tech Republic: Mounting NFS volumes in OS X
- Thecus: How to Access a Shared Folder Locally with NFS
- ThecusOS 6
- You Mac / Linux Guy: Automount NFS in OS X
- Wiki: Internet Protocol
- Wiki: Lightweight Directory Access Protocol
- Wiki: Network File System
- 鳥哥的 Linux 私房菜： 第十三章、檔案伺服器之一：NFS 伺服器
- 鳥哥的 Linux 私房菜： 何為同一網段之 IP ，及 netmask 的定義與切割子網的方法說明