SMB Shares
Export ZFS filesystems as SMB shares for Windows, macOS, and Linux clients. MayaNAS supports SMB with optional Active Directory integration and share-level ACLs.
Access
Section titled “Access”Navigate to SMB Shares in the Web UI sidebar.
Create an SMB Share
Section titled “Create an SMB Share”- Click New
- Select a ZFS filesystem
- Configure share options:
| Field | Description | Default |
|---|---|---|
| Volume | ZFS filesystem to share | — |
| Share Name | Name visible to SMB clients | Volume name |
| Options | SMB share options | — |
- Click Create
Manage Shares
Section titled “Manage Shares”Bind (Export)
Section titled “Bind (Export)”Select an inactive share and click Bind to start serving it via SMB.
Unbind (Unexport)
Section titled “Unbind (Unexport)”Select an active share and click Unbind to stop serving.
Security (ACLs)
Section titled “Security (ACLs)”For online shares, click Security to configure share-level ACLs:
- Select the share (must be online)
- Click Security
- Configure ACL entries (users/groups and permissions)
- Click Apply
Delete
Section titled “Delete”Select a share and click Delete to remove the mapping.
Connect from Clients
Section titled “Connect from Clients”Windows
Section titled “Windows”# Map network drivenet use Z: \\<VIP>\sharename
# With credentialsnet use Z: \\<VIP>\sharename /user:DOMAIN\usernameOr use File Explorer: \\<VIP>\sharename
# Mount with CIFSsudo mount -t cifs //<VIP>/sharename /mnt/share \ -o username=user,password=pass
# With Kerberos (AD-joined client)sudo mount -t cifs //<VIP>/sharename /mnt/share \ -o sec=krb5Finder: Go > Connect to Server then enter smb://<VIP>/sharename
Active Directory + Native Windows ACLs
Section titled “Active Directory + Native Windows ACLs”When MayaNAS is joined to Active Directory (see Active Directory & Kerberos), SMB shares get the full Windows enterprise feature set:
- Native NTFS ACLs via vfs_zfsacl — full NTFS round-trip fidelity. NFSv4 ACLs are the authoritative ACL store, so Windows clients see real Windows ACLs, not lossy POSIX-to-NTFS translations
- Windows Previous Versions via vfs_shadow_copy2 — ZFS snapshots appear in the Properties → Previous Versions tab in Windows Explorer. Users restore prior file versions themselves, no admin tickets
- Samba security = ADS — Samba is configured in AD-joined mode with winbind for SID-to-UID mapping
- Domain user authentication — AD users authenticate transparently with their domain credentials
- Kerberos SSO — domain-joined Windows clients use existing Kerberos tickets (no password prompt)
- Group-based access control — AD security groups enforce share permissions
- Cross-protocol identity — same user, same permissions, accessible via SMB or NFS (Kerberos krb5/krb5i/krb5p). SSSD handles NSS/PAM, winbind handles SMB SID mapping — no ID-mapping spreadsheets to maintain
Standalone Windows mode (without AD)
Section titled “Standalone Windows mode (without AD)”For environments without Active Directory, MayaNAS supports a standalone Windows ACL profile:
- vfs_zfsacl + vfs_shadow_copy2 still work
- Local users (created via User Management) carry NTFS ACLs
- Same Windows-fidelity ACL story without a domain controller
Local Users for SMB
Section titled “Local Users for SMB”If not using Active Directory, create local SMB users via User Management:
- Navigate to User Management
- Click Add User
- Enable the Samba authentication checkbox
- Set a password
The user can then authenticate to SMB shares with these credentials. See User Management for details.
# Create an SMB sharemayacli create mapping volume=tank/shared controller=smb
# Export (bind) a sharemayacli bind mapping volume=tank/shared
# Unexport (unbind)mayacli unbind mapping volume=tank/shared
# Show all SMB mappingsmayacli show mapping controller=smb
# Delete a share mappingmayacli delete mapping volume=tank/shared controller=smb
# Create a local SMB usermayacli create creds smbuser type=user samba=yes password=secret123
# Create an SMB user (prompt for password)mayacli create creds smbuser type=user samba=yes passwordSee CLI Guide for the full command reference.