You are not logged in.
Pages: 1
Hi
I just tried to install mpd but when I get to the point where I should make mpd --create-db I get:
failed to stat music directory "/home/user/music" (config line 1): Permission denied
Here my mpd.conf:
music_directory "/home/kag/music"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/db"
log_file "/var/log/mpd/mpd.log"
error_file "/var/log/mpd/mpd.error"
pid_file "/var/run/mpd/mpd.pid"
state_file "/var/lib/mpd/mpdstate"
user "mpd"
I guess I simply overlooked smth. but just can't get it working.
Thanks
Who we are is but a stepping stone to what we can become.
Offline
Sounds like a user permissions issue with your music_directory. I believe it must be world-readable if you're using this kind of setup.
thayer williams ~ cinderwick.ca
Offline
the user "mpd" doesnt have permission to view that folder
Offline
But music has permissions 755 so everyone should be able to read it.
Who we are is but a stepping stone to what we can become.
Offline
your ~ is probably 700 meaning mpd cannot traverse it to get to ~/music
i find running mpd as myself is an easier setup. if you go that way though, redefine all the log/pid/db file locations to be inside ~/.mpd/ so you don't have premission problems the other way.
//github/
Offline
I'm also running mpd as user...it's just simpler...
Instead of /etc/mpd.conf just make a ~/.mpdconf and mpd will read that.
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
Running as a user here as well, here is my .mpdconf if it helps:
port "6600"
music_directory "~/music"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/mpd.db"
log_file "~/.mpd/mpd.log"
error_file "~/.mpd/mpd.error"
mixer_type "alsa"
mixer_device "default"
mixer_control "PCM"
#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.
Offline
as mentioned before the parent directory needs proper permissions too... in your case that is /home/kag
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
Ok, first of all thanks for the quick response.
I tried to run it as user and now the mpd --create-db worked but when I start sonata it doesn't show any files.
Who we are is but a stepping stone to what we can become.
Offline
Have a look at the library tab, you must add songs into your playlist.
Public Key 0x24685E35 available from any key server you trust.
IRC: ssimon/Nesrecar
Offline
Sorry I didn't write this, but I actually meant the library.
Who we are is but a stepping stone to what we can become.
Offline
I bind my music dir to /var/lib/mpd and run MPD as its own user. Permission problem solved .
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Pages: 1