Question
When a client is included in multiple share permissions, what is the priority of its share authentication?
For example, if a NFS share of a file system is exported and two NFS share permissions are configured:
- Use network group my_netgroup:rw (read-write) to configure. This network group contains the client whose IP address is A.A.A.A.
- Use IP network A.A.0.0:ro (read-only) to configure.
When a client with IP address A.A.A.A mounts the NFS share, what is its permission?
Answer
Its permission is allocated based on the following priority from high to low: host name > IP address > IP network > wildcard > network group > * (anonymous). In the previous example, the share permission of the client matches that of IP network A.A.0.0:rowhich is read-only. Therefore, the client has the read-only permission. In addition, if multiple permissions of the same priority are matched, use the latest permission that is configured.
