| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Work with all your cloud files (Drive, Dropbox, and Slack and Gmail attachments) and documents (Google Docs, Sheets, and Notion) in one place. Try Dokkio (from the makers of PBworks) for free. Now available on the web, Mac, Windows, and as a Chrome extension!

View
 

Prevent overwrite of exports file, enable no_root_squash

Page history last edited by Ben M. 11 years, 9 months ago

This workaround applies only to software version 1.1.11.32736.  Please verify your software version under "Device Settings" before you continue!

 

The NFS configuration file is /etc/exports.  With the EMC software, this file is actually a symlink to /mnt/soho_storage/config/exports.  When you change the configuration of your NFS shares through the EMC interface, this file is overwritten. 

 

In some circumstances, it's desirable to manually edit /etc/exports.  For example, you may wish to enable the no_root_squash option.  For security reasons, by default, a remote root user gets "squashed" to access the share instead as nobody.  The no_root_squash option grants root access to any remote root user.  (Use only on a completely trusted network!)

 

Unfortunately, after each reboot, the /etc/exports file is deleted and replaced by a symlink to the EMC-generated file.  I created a script to prevent changes from being lost.  Simply paste the following into a shell, and the necessary scripts will be created.  Then you can edit /etc/exports without losing your changes.

 

To apply any changes to /etc/exports, execute the command:

  exportfs -arv

(a = all directories, r = reexport, v=verbose)

 

Warning: Use this at your own risk.  There could be bugs.  I take no responsibility whatsoever.  (If you discover a bug, then please fix it!)

 

 

To install the scripts, open a shell and paste the contents of this file.

 

 

Comments (0)

You don't have permission to comment on this page.