Use this when creating or reviewing a NAS share definition.
Share
A share is a folder published over the network by a NAS or file server, with a name, protocol (SMB or NFS), access list and options such as read-only, snapshots visibility or access-based enumeration.
1. A share/export is a directory published over NFS or SMB.
2. Name and document purpose and owner.
3. Least-privilege access.
4. Snapshots per share.
5. Remove unused shares.
directory → export/share → clients
Context & applicabilityCommon mistakes · platform/version boundaries
- Share permissions and NTFS/POSIX permissions both restrictive, giving confusing access results (effective access = the most restrictive).
- "Everyone: Full Control" on the share with weak file permissions underneath.
- NFS exports with
no_root_squashto whole subnets. - Mixed SMB/NFS access to the same data without a consistent identity mapping.
Operational reference
Fast context before you go deeper.
Get-SmbShareAccess -Name DataEvidence · 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.
- Name, protocol, access list and options define a share.
- Read-only and snapshot visibility are share options.
- Document who owns each share.
showmount -e <server>— NFS sharesnet view \<server> / Get-SmbShare— SMB sharesdf -h <mount>— usage
ReferenceHow it works1 section · depth on demand
Share protocols and permissions
| Protocol | Clients | Permissions |
|---|---|---|
| SMB 3 | Windows, macOS, Linux | Share + NTFS/ACL permissions, AD authentication |
| NFS v3 | Linux/Unix, ESXi | Host-based exports, UID/GID |
| NFS v4.1/4.2 | Linux, ESXi | Kerberos (krb5p) possible, ACLs |
Check access from the client: smbclient -L //nas -U user, showmount -e nas, mount -t nfs4 nas:/export /mnt. Disable SMBv1 and anonymous NFS exports (root_squash).
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
On a NAS or file server, a share is the named entry point clients connect to (\\fs01\Projects for SMB, nas01:/export/projects for NFS). Multi-protocol NAS systems can expose the same directory over SMB and NFS, which requires a consistent identity and permission model:
| Security style | Permissions decided by | Fits |
|---|---|---|
| NTFS | Windows ACLs | Mostly Windows clients |
| UNIX | Mode bits / NFSv4 ACLs | Mostly Linux clients |
| Mixed | Last client that set them | Rarely a good idea |
Map Windows users to UNIX identities (name mapping, LDAP/AD with RFC2307 attributes) before going multi-protocol, otherwise users see Access denied on one protocol only.
ReferenceConfiguration & state1 section · depth on demand
Commands
New-SmbShare -Name Data -Path D:\Data -FullAccess "CORP\DL_Data_Admin" -ChangeAccess "CORP\DL_Data_Modify"
Get-SmbShareAccess -Name Data
exportfs -v # Linux NFS
showmount -e nfs01
Documented example, not captured output.
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 → Share. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.snia.org/education/what-is-network-attached-storage · confidence 94%