NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

how to export NFS volume to a client and owned by an ordinary user with root_squash

heightsnj
4,472 Views

clus::vserver export-policy rule> create -vserver clus-dev-1 -policyname exp_policy -ruleindex 1 -anon 1234 -clientmatch test.com  -rorule sys -rwrule sys -superuser none

 

1234 is the id for the ordinary user.

 

 

As the result, the FS is still owned by root:root, and the root has no permission to create anything. how do I make it to be owned by the user? Thanks!

3 REPLIES 3

aborzenkov
4,450 Views

volume modify -user 1234

heightsnj
4,437 Views

Thanks, it works!

 

If I want to set root-squash, I can use -superuser none, root privilege will then be restricted. After I (root) mount, it is still owned by root, and 755, Which is fine.

 

but,  it seems nobody then could create any files.   what should I do to allow users to be able to rw? do I have to mount it with mode 777, only then others are able to rw?

mark_flint
4,345 Views

I'd have thought you'd need to create another rule, with a root-enabled export to an administration box, mount the area on that box with the root enabled export, chown the area 1234.root, and then the 755 permissions will allow the owner to create files, and everyone else to read and execute. 

Public