What can I do to access mounted shared folders via NFS and set up permission?

What can I do to access mounted shared folders via NFS and set up permission?

Purpose

This article explains what to do if you have a valid Synology NAS account and password, but are unable to access mounted shared folders via NFS on your Linux computer.

Resolution

Depending on your needs, do either of the following:

Allow access to all users

If you are giving all users the same permission, refer to this article to set up NFS rule for each file/folder and select Map all user to admin for Squash.

When you set up NFS permission with this Squash option, all users will be treated as "administrator" on the Synology NAS and have access to all files/folders. When users create files/folders, the creator of the file/folder is listed as "admin".

Give different access permission to different users

If you want to give different access permission to different users, do any of the following:

  • Use SMB to access Synology NAS. Refer to this article.
  • Join all computers and your Synology NAS to the same LDAP server. Set LDAP account permission for each files/folders on Synology NAS1 so that different users (LDAP account) can access files/folders by the corresponding permissions. Then, refer to this article to set up NFS rule for each file/folder and select No mapping for Squash.

Notes:

  1. To avoid UID number conflicts between DSM users and LDAP users, we recommend using UID numbers greater than or equal to 1,000,000 for LDAP users.
Purpose
Resolution
Allow access to all users
Give different access permission to different users
Further reading