Thanks for the links, but so far i was not able to find out how to make the correct permissions just on NFS.
I need to map every user to anonymous UID and GID, including root (root_squash). I have tried all possible combinations but I am not able to achieve to mount NFS as root and write a file with anonymous UID and GID. I can do this on OpenFiler and that way all files created on the volume have only anonymous permission.
Use a unix security style file system on the volume.
The security flavor of none can also be applied to an export. If the client uses this flavor, then all requests get the effective UID of the anonymous user. Also, if a request arrives with a security context which is not present in the export, and none is allowed, then that request is treated as if it arrived with the flavor of none.
You can use anon= to map anonymous to any UID you want.
Use a method of multiprotocol to map all Windows users to anonymous - usermap.cfg or `
wafl.default_unix_user Specifies the UNIX user account to use when an authenticated NT user did not match an entry in the usermap.cfg file. If this option is set to the null string, NT users which are not matched in the usermap.cfg file will not be allowed to log in. The default value for this option is `pcuser'.
The problem with this on the windows side is that it will do this for all cifs shares, not just this share.
You may wish to do this on a vfiler.
I hope this response has been more helpful to you.
3. File is created with root permissions. Not with anonymous user permissions as it suppose to do.
To be able to manage R/W access to any file from CIFS using wafl.default_unix_user, I need to be able to manage the permission from the root user first, because if I create a file as a root, it will have root:root permissions and therefore users accessing the share using CIFS are not able to rewrite or delete the file.