You are not logged in.

#1 2010-02-06 15:23:20

Dethredic
Member
Registered: 2009-01-24
Posts: 361
Website

MPD, no read permissions

Ok, so I have read the wiki and tried both setups, , but both aren't working.
Firstly I have run this:
chmod a+x /home/phil
chmod -R a+X /home/phil/music


1st method:

[phil@fml ~]$ ls -l ~/.mpd
total 168
drwxrwxr-x 2 phil users   4096 Feb  6 09:27 config
-rwxrwxr-x 1 phil users      0 Feb  6 09:24 db
-rwxrwxr-x 1 phil users 123656 Jan 22 16:32 mpd.db
-rwxrwxr-x 1 phil users   4367 Aug  9 21:22 mpd.error
-rwxrwxr-x 1 phil users      0 Feb  6 09:23 mpd.log
-rwxrwxr-x 1 phil users      0 Feb  6 09:23 mpd.pid
-rwxrwxr-x 1 phil users  31246 Feb  5 23:39 mpdstate
-rwxrwxr-x 1 phil users      0 Feb  6 09:23 playlists
[phil@fml ~]$ cat ~/.mpd/config/mpd.conf 
music_directory        "/home/phil/music"
playlist_directory "/home/phil/.mpd/playlists"
db_file "/home/phil/.mpd/mpd.db"
log_file "/home/phil/.mpd/mpd.log"
pid_file "/home/phil/.mpd/mpd.pid"
state_file "/home/phil/.mpd/mpdstate"
user "mpd"
#bind_to_address        "any"
#bind_to_address        "~/.mpd/socket"
#port                "6600"
[phil@fml ~]$ mpd /home/phil/.mpd/config
output: No "audio_output" defined in config file
output: Attempt to detect audio output device
output: Attempting to detect a alsa audio device
output: Successfully detected a alsa audio device
[phil@fml ~]$

while starting that last command, in the Sonata window I see "No read permissions". I also tried the other method from the wiki and that didn't help either.
Any ideas?

Last edited by Dethredic (2010-02-06 15:24:36)

Offline

#2 2010-02-06 15:26:20

Themaister
Member
From: Trondheim, Norway
Registered: 2008-07-21
Posts: 652
Website

Re: MPD, no read permissions

Tried adding mpd: ALL to /etc/hosts.allow?

Offline

#3 2010-02-06 15:32:55

Dethredic
Member
Registered: 2009-01-24
Posts: 361
Website

Re: MPD, no read permissions

didn't help.

Offline

#4 2010-02-06 16:43:06

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: MPD, no read permissions

Its probably talking about the media files in /home/phil/music. (and the directory itself) they need to be readable by user mpd.


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#5 2010-02-06 17:35:57

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,799
Website

Re: MPD, no read permissions

i recommend running mpd as yourself before you add +x on your ~/; alternatively, you could bind mount ~/Music to something the user mpd has access to.

Offline

#6 2010-02-06 19:19:44

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: MPD, no read permissions

Try this:
1. change the user in your .mpd,

sudo chown -R mpd:mpd ~/.mpd

2. change your config file, and comment the line: user "mpd".
3. change the owner of the file config.

sudo chown user:user mpd.conf

4. change the permissions:

chmod 700 mpd.conf

5. for the last, run it.

mpd /home/phil/.mpd/config/mpd.conf

I got the same problem, and i solved doing this.
Good luck!

Last edited by n0dix (2010-02-06 19:20:10)

Offline

Board footer

Powered by FluxBB