geepeegee;505386 Wrote: 
> 
> I have my mp3 files in my Music folder but I have subdirectories
> according to artists (then other subfolders for each album by that
> artist.) My problem is that sqeeezeserver does not recognise the mp3s
> files in the subfolders. If I copy some directly into the root of Music
> then it does. I dont really want to have to move all of the files out of
> the directories into the root as this would be a tedious job. I suspect
> it might be to do with permissions but am not sufficiently Ubuntu savy
> to sort this out.
> 

It is most likely permissions as you guessed.

What are the permissions on the mp3's that don't get found?  And on the
directories?

In short, the SBS 'user' needs to be able to read and 'x' directories
(not write), and needs to be able to read (not write or execute) data
(aka music and album covers) files.

Easiest solution for me:

I use 'umask 022' on my account.  No idea how to set that from a
GUI.  But that means 'strip the 2 bit, aka 'w' from group/other when you
create a file, leave the other bits alone'.

Ie, new files are created as 644, and directories as 755 or rw-r--r--
and rwxr-xr-x.   Exactly what I want.

A couple uses of the find command:
find /home/bem/music -type d -exec chmod 755 {} \;
find /home/bem/music -type f -exec chmod 644 {} \;

Those take everything in my music directory (and below) it, and change
the permissions to allow 'group' and 'other' to read it, and 'execute'
it if its a directory.

Now, SBS can read it (since it's "other").

Not a million percent secure: other users on my machine could also read
the files, but it's simple and works.  (And since those 'others' could
also play the same files through the SB, it's not like I care if my wife
can read my music files or see my cover art...)

And, no you don't want to dump them all in the same directory... that
tends to make machines pokey slow when they open a directory with
thousands of entries.


-- 
snarlydwarf
------------------------------------------------------------------------
snarlydwarf's Profile: http://forums.slimdevices.com/member.php?userid=1179
View this thread: http://forums.slimdevices.com/showthread.php?t=73880

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to