'Sets access permissions for given NFS path.
Volume file permissions are set based upon the value of
secure_file_permissions: \'true\' sets secure access permissions and
\'false\' sets more open (insecure) access permissions.
:param path: the volume file path.'

def _set_rw_permissions(self, path):

    if (self.configuration.nas_secure_file_permissions == 'true'):
        permissions = '660'
        LOG.debug('File    path    %(path)s    is    being    set    with    permissions:    %(permissions)s', {'path': path, 'permissions': permissions})
    else:
        permissions = 'ugo+rw'
        LOG.warning('%(path)s    is    being    set    with    open    permissions:    %(perm)s', {'path': path, 'perm': permissions})
    self._execute('chmod', permissions, path, run_as_root=self._execute_as_root)
