/etc/export changes

Simply install any My Cloud OS5 NAS app, then edit it’s start.sh script, and append code to make the necessary changes during the startup process.

App Path:

  • /shares/Volume_1/Nas_Prog/[APP_NAME]/start.sh

If the NFS share settings are changed via the dashboard, the app will need to be turned “OFF” then “ON” again to reapply the changes.

Example 1:

  • sed -i 's/anonuid=501/anonuid=1001/g' /etc/exports;
  • sed -i 's/anongid=1000/anongid=1002/g' /etc/exports;

Example 2:

  • sed -i 's/rw,all_squash/ro,all_squash/g' /etc/exports;

Finally, to “refresh” the exports, the following command must be executed.

Refresh Exports:

  • exportfs -ra;
1 Like