I'm trying to setup a Raspberry PI NAS to work with SONOS. However, I am hitting a few issues and could do with some assistance.
Problem:
-The path to the share is correct.
- Can be seen on the network and connected to by my mac.
- While trying to add a share I get 'Access to the shared folder "NAS share //IP-OF-PI/share" is denied - check the username and/or password'
Parameters:
- Raspberry PI 3B running Raspian
- 2TB USB hard drive formatted as FAT 32 with existing media on it.
- All required ports open.
- All devices on the same subnet as the PI NAS.
Potential causes:
- Issues with preexisting FAT 32 volumes being managed by the PI
- Issues with SMB v1
- Issues with smb.conf (below)
[global]
workgroup = SIMPLE
[share]
comment = Share for mounted HDD
path = /mnt/share/
read only = No
guest only = Yes
guest ok = Yes
public = Yes
writeable = Yes
browsable = Yes
create mask = 0777
directory mask = 0777
Requests:
- A working smb.conf file used on a Pi NAS thats successfully connecting to SONOS.
Best answer by Stanley_4
[global]
# enable v1 authentication for Sonos access
ntlm auth=yes
[music]
Comment = Pi shared folder
Path = /mnt/ssd-music
Browseable = yes
Writeable = Yes
only guest = no
create mask = 0555
directory mask = 0555
Public = yes
Guest ok = yes
Only other change I made to the default PI setup was a permanent mount for the SSD instead of letting the auto-mounter deal with it as that can become confused when other devices are added or removed from the Pi. I used the UUID mounting option and had a problem getting the right UUID which is wat the # commented notes are for. The /dev/sda1 permanent mount also works but again can become confused if you add devices to the Pi.
#/dev/sda1 /mnt/ssd-music xfs defaults,auto,users,rw 0 0
#PARTUUID="54285699-bf0c-4f92-b846-082114177b6b" is the whole drive
#PARTUUID="d450bd65-603d-4e13-8b32-41ed9ea3e354" is sda1
PARTUUID="d450bd65-603d-4e13-8b32-41ed9ea3e354" /mnt/ssd-music xfs defaults,auto,users,rw 0 0
# If UID mount fails this will work until you can fix it
#/dev/sda1 /mnt/ssd-music xfs defaults,auto,users,rw 0 0