Can I limit a host to an NFS subdirectory?

Discussion about using NAS on Linux and Unix OS.
Post Reply
Dondochaka
New here
Posts: 2
Joined: Fri Mar 05, 2021 8:16 am

Can I limit a host to an NFS subdirectory?

Post by Dondochaka »

It doesn't seem so, in the GUI. But maybe there's a way?
grouillier
Starting out
Posts: 35
Joined: Mon Apr 19, 2021 11:47 am

Re: Can I limit a host to an NFS subdirectory?

Post by grouillier »

Yes. In Control Panel, under Shared Folders, for the folder of interest, click the 2nd icon under Action, "Edit Shared Folder Permission". In the resulting dialog, change "Select permission type:" to "NFS host access". You can now restrict each share by host. Note you can use masks in the Host/IP/Network column, e.g., 192.168.1.0/24.

If you meant you want to limit access to only the subdirectory of an existing share, I don't think the GUI provides a way to do that. However, you can try creating another share starting at that subdirectory, and then apply the same logic above. Deny access to that host from the parent share, and only allow it access to this subdirectory share. Hope this helps.
TS-230, TS-253A, both with latest stable QTS
Post Reply

Return to “Linux & Unix (NFS)”