Use this when NAS users get access denied or too much access.
Permissions · NAS
NAS permissions combine share-level access with file-system permissions: NTFS-style ACLs for SMB, POSIX mode bits or NFSv4 ACLs for NFS. The effective access is the most restrictive combination.
1. Permissions combine share-level and filesystem-level rules.
2. Grant to groups.
3. Effective access = most restrictive of share + NTFS (SMB).
4. NFS uses UID/GID or Kerberos identities.
5. Audit regularly.
user → groups → share rules → filesystem ACL
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
icacls \\nas01\share\folder
nfs4_getfacl /mnt/share/folder
ls -l /mnt/share
Step 2 Common mistakes Narrow the fault
- Everyone Full Control on the share with weak NTFS ACLs (or the reverse confusion).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Share access and file permissions both apply.
- SMB uses ACLs; NFS uses mode bits or NFSv4 ACLs.
- Mixed-mode shares need consistent identity mapping.
getfacl <path>— POSIX ACLsicacls <path>— NTFS ACLsGet-SmbShareAccess <share>— share permissions
ReferenceHow it works1 section · depth on demand
How it works
Access to a NAS share is checked in layers: the protocol (SMB share permissions or NFS export rules by client IP), then the file system ACLs (NTFS-style ACLs or POSIX mode bits/NFSv4 ACLs), using the identity from AD/LDAP. Mixed SMB/NFS shares need consistent identity mapping (UID/GID ↔ SID), or the same user gets different rights depending on protocol.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
NAS permissions have two layers: who may mount, and what they may do
For NFS, the export table decides which clients may access an export, and how their identities are mapped. The file system's own permissions (mode bits, ACLs) then decide access to each file.
Export options from exports(5)
| Option | Meaning |
|---|---|
ro (default) / rw | Read-only or read-write for that client |
root_squash (default) | Client root (uid/gid 0) mapped to the anonymous ID |
no_root_squash | Client root stays root on the export |
all_squash | Every user mapped to the anonymous ID |
anonuid / anongid | The anonymous IDs (default 65534) |
sec=sys\|krb5\|krb5i\|krb5p | Security flavour; sys trusts client-supplied UIDs |
# cat /etc/exports
/srv/projects 10.0.40.0/24(rw,sync,root_squash,sec=krb5p)
/srv/pub *(ro,all_squash)
/srv/backup backup01.example.com(rw,sync,no_root_squash)
# exportfs -ra && exportfs -v
The trust problem with sec=sys
With sec=sys the server believes the UID the client sends. Anyone who is root on an allowed client can become any user except root (which is squashed). Limit sys exports to trusted hosts and networks, or use Kerberos (krb5p also encrypts traffic).
File-level permissions
| Situation | Requirement |
|---|---|
| Users on several clients | The same UID/GID everywhere (LDAP/AD or SSSD) |
NFSv4 names shown as nobody | ID-mapping domain mismatch between client and server |
| Mixed SMB and NFS access to one share | Plan ACL handling; SMB ACLs and POSIX modes don't map one-to-one |
Use no_root_squash only where it is needed, for example a backup host or a hypervisor storing VM disks.
Documented example, not captured output.
Permission layers
| Layer | Example |
|---|---|
| Share permissions (SMB) | Read/Change/Full |
| File system ACLs | NTFS/NFSv4 ACLs, POSIX mode |
| Export options (NFS) | Allowed hosts, ro/rw, root_squash |
Effective access is the most restrictive combination.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in NAS → Permissions. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.snia.org/education/what-is-network-attached-storage · confidence 94%