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

  • Buried in cloud files? We can help with Spring cleaning!

    Whether you use Dropbox, Drive, G-Suite, OneDrive, Gmail, Slack, Notion, or all of the above, Dokkio will organize your files for you. Try Dokkio (from the makers of PBworks) for free today.

  • Dokkio (from the makers of PBworks) was #2 on Product Hunt! Check out what people are saying by clicking here.

View
 

Prevent overwrite of exports file, enable no_root_squash

This version was saved 12 years, 4 months ago View current version     Page history
Saved by Ben M.
on February 16, 2010 at 1:49:33 am
 

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.

 

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!)

 

# Script is coming

# very soon!

Comments (0)

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