Skip to main content
Contributor I
Jan 21, 2025 5:40 PM UTC
Answered

configuring a raspberry pi zero 2 w for music library use

I bought a pi zero 2 w and installed samba.  I put my music in the music folder on the SD card with the OS.  The pi zero has a static ip and the smb.conf file has ntlm=yes in the global section.  Sonos accepts the music share but all of the folders are empty (i.e. songs, artists, genres, etc).  Can someone help resolve this?  I have a Sonos one, a move, a beam and a play 1.  They all play nice with the Sonos app but the app doesn't display the music.

This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.
craigskiAnswer
Local Superstar
Jan 21, 2025 6:34 PM UTC

My guess, is you have the correct permissions to the SMB share, but the user you are connecting to doesn’t have access to the files within the share, hence Sonos system can see the ‘share’ but not the ‘files’

8 replies

Prodigy III
Jan 21, 2025 5:56 PM UTC

Have you tried doing a forum search for example smb.conf files? IIRC you need to set the permissions so that any remote access will have read access at minimum - I think the default if you don’t is no permission for anybody to do anything remotely.

Translate
BeMax2025Author
Contributor I
Jan 21, 2025 6:14 PM UTC

Thank you for your reply.  Yes, I set up the pi according to the info on this Github thread: https://github.com/sawyerbfuller/pi-music-server.  That was 5 yrs ago and I'm wondering if the settings need to change.

Translate
craigskiAnswer
Local Superstar
Jan 21, 2025 6:34 PM UTC

My guess, is you have the correct permissions to the SMB share, but the user you are connecting to doesn’t have access to the files within the share, hence Sonos system can see the ‘share’ but not the ‘files’

Translate
BeMax2025Author
Contributor I
Jan 21, 2025 7:11 PM UTC

OK, if I am understanding correctly,  the files in the share need to belong to the pi user?  I don't know Linux well, how would I change that?

Translate
BeMax2025Author
Contributor I
Jan 21, 2025 7:12 PM UTC

Could it be related to directory tree depth?  The music is arranged as artist/album/song.

Translate
jgatie
Jan 21, 2025 7:35 PM UTC

OK, if I am understanding correctly,  the files in the share need to belong to the pi user?  I don't know Linux well, how would I change that?

 

https://www.softwaretestinghelp.com/unix-file-access-permissions/

Translate
BeMax2025Author
Contributor I
Jan 21, 2025 7:37 PM UTC

Thank you, everyone.    I'll look into this and report back.

Translate
BeMax2025Author
Contributor I
Jan 27, 2025 6:03 PM UTC

I have partially solved the problem by changing the permissions on the files.  Now I can see the subdirectories but no files or directories below that.  However, it is not a Sonos problem.   I can't see them when I access the share from windows or Android either.  I'll keep working on it. It's a ownership or permission issue.

Translate