Fireplay permission? [SOLVED]

Got problems with your B2 or B3? Share and get helped!
Post Reply
mintz
Posts: 25
Joined: 31 Dec 2012, 08:03

Fireplay permission? [SOLVED]

Post by mintz » 04 Jan 2013, 06:54

I restricted the user access of storage folder for my local users only (chmod 770). Everything works fine but the fireplay media player doesn't find any song at all. I figured out it would be a permission problem so I chmod 775 but still nothing showed up. What am I doing wrong here?

Also, I would like to know which user is running the fireplay flash player . Maybe adding it to the trusted group would help.
Last edited by mintz on 05 Jan 2013, 04:43, edited 1 time in total.

Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: Fireplay permission?

Post by Cheeseboy » 04 Jan 2013, 08:26

Hi Mintz,

Keep the folders at 755 and the files as 644, should be safe
yourusername:users should be the owner of the files in /home/storage/music.
The web interface should be running through apache2 so the user is most likely www-data.
The problem is probably the underlying DAAP streaming service - might have got effed-up by your file permission changes. Try disabling it an then re-enabling it again in the web interface.

Or (presuming a reasonable updated B3):

Code: Select all

$ sudo /etc/init.d/forked-daapd stop
Stopping RSP and DAAP media server: forked-daapd.
$ sudo mv /var/cache/forked-daapd/songs3.db /var/cache/forked-daapd/songs3.db.bak
$ sudo /etc/init.d/forked-daapd start
Starting RSP and DAAP media server:     main: Forked Media Server Version 0.19 taking off
forked-daapd.
$ sudo tailf /var/log/forked-daapd.log
Then watch it rebuilding the DB (could take hours, depending on the size of your collection).
Might be a good idea to restart apache again afterwards, or at least clean out the cache on the browser you used - but just guessing here :-)

mintz
Posts: 25
Joined: 31 Dec 2012, 08:03

Re: Fireplay permission?

Post by mintz » 04 Jan 2013, 09:53

Thanks, bud!
This worked out wonderfully.
I added www-data and mysql to the trusted group because it was complaining about permission (again :D). This way I could still keep the 770 permission and get the music flowing.

Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: Fireplay permission?

Post by Cheeseboy » 04 Jan 2013, 18:20

Glad I could help.
Think only of this:
Both apache2 (which could be susceptible to attacks) and mysql (which has no root password by default) will have full write access to your files...

Sent from my GT-I9305N using Tapatalk 2

mintz
Posts: 25
Joined: 31 Dec 2012, 08:03

Re: Fireplay permission?

Post by mintz » 04 Jan 2013, 19:29

I totally didn't think about it. One wrong mysql query and my whole library would be messed up. I guess I will just made the whole storage folder read-only (chmod 755). The torrent client can own the downloads folder all by itself instead of by group-association.

pompopom
Posts: 50
Joined: 13 Dec 2012, 16:45

Re: Fireplay permission? [SOLVED]

Post by pompopom » 25 Apr 2013, 09:00

in /etc/forked-daapd.conf you see the uid:daapd

folder where songs3.db is located is owned by dnsmasq:root (why that is out of box this way I haven't figured out) at least that's what I noticed yesterday while having same problem. I just changed folder owner to daapd.

Code: Select all

chown daapd:root /var/cache/forked-daapd

Post Reply