Permissions & thttpd Server
Hope someone can help with this problem. Firstly a little background to the setup.
I'm running thttpd on a NAS drive (Buffalo Linkstation). I have a small website running on this which works well. I have recently purchased a Philips Streamium MCi-250 which allows streaming of music wirelessly via my home network. I have found a script which works well with the Linkstation and utilises the thttpd server to stream the music. The problem I have is setting the permissions so that the music files are accessible over the web. The music has already been transferred to the Linkstation using windows, hence the permissions problems.
When trying to access a track, I get a 403 Forbidden error. I then figured out that it was the linux permissions which were wrong. The problem is changing the permissions for all the tracks and directories. I have discovered that the directories (Artist Name & Album Name) need different permissions to the actual tracks within these folders. The permissions for the directories, to make them accessible, appear to be:
This is achieved using chmod 777. However the permissions for the individual tracks are:
This is achieved using chmod 666. The problem is I have a large music collection with many directories and sub directories. How do I change the permissions easily to the above so they are accessible over the web? Is there another way round this.
Thanks for any help you can provide as I'm tearing my hair out over this!