{{define "content"}} {{template "flash" .}} {{with .Data}} {{if .ApplyErr}}
Samba is not installed — run sudo apt install samba wsdd on the NAS (install.sh does it). Shares can be defined now and are applied once Samba is there.
{{end}}| Name | Path | Access | Who | Connect as | |
|---|---|---|---|---|---|
| {{.Name}}{{if .Comment}} {{.Comment}}{{end}}{{if not .Browseable}} hidden{{end}} | {{.Path}} | {{if .ReadOnly}}read-only{{else}}read/write{{end}} | {{if .Guest}}guest (no password){{else}}{{join .Users ", "}}{{end}} | \\{{$.Data.Host}}\{{.Name}} | edit · |
| No SMB shares yet. | |||||
| {{.}} | |
| No SMB users. Guest shares work without users. |
Windows: \\{{.Host}}\share in Explorer, or map a network drive. macOS: Finder → Go → Connect to Server → smb://{{.Host}}/share. Note: Windows 10/11 Pro/Enterprise refuse guest shares by default (error 0x80070035 «network path not found») — use an SMB user with a password, or allow guest access on the PC (gpedit: Lanman Workstation → Enable insecure guest logons). If a password share still gives 0x80070035, connect explicitly: net use \\{{.Host}}\share /user:<name> * (Windows keeps one login per server — run net use * /delete first).
NFS server is not installed — run sudo apt install nfs-kernel-server on the NAS (install.sh does it).
{{end}}| Path | Clients | Access | Squash | Mount | |
|---|---|---|---|---|---|
| {{.Path}} | {{join .Clients ", "}} | {{if .ReadOnly}}read-only{{else}}read/write{{end}}{{if .Async}} async{{end}} | {{.Squash}} | {{$.Data.Host}}:{{.Path}} | edit · |
| No NFS exports yet. | |||||
Linux: sudo mount -t nfs {{.Host}}:/nas_pool_1_8_gb/documents /mnt/nas; list exports with showmount -e {{.Host}}.