Skip to main content
Answer

configuring a raspberry pi zero 2 w for music library use

  • January 21, 2025
  • 8 replies
  • 262 views

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.

Best answer by craigski

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’

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.

8 replies

Forum|alt.badge.img+13
  • Prodigy III
  • January 21, 2025

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.


  • Author
  • Contributor I
  • January 21, 2025

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.


Forum|alt.badge.img+17
  • Local Superstar
  • Answer
  • January 21, 2025

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’


  • Author
  • Contributor I
  • January 21, 2025

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?


  • Author
  • Contributor I
  • January 21, 2025

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


jgatie
  • January 21, 2025

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/


  • Author
  • Contributor I
  • January 21, 2025

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


  • Author
  • Contributor I
  • January 27, 2025

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.