You are not logged in.
Pages: 1
I'm trying to setup MPD by following the tutorial on the Arch Linux wiki. But I'm running into permission problems, I want to use MPD with my user non-root user but to create the MPD database I need to be root. Using the root user or sudo doesn't work because MPD uses the username specified in the configuration file which in my case is my user (the non-root user). How can I accomplish this? I can't change the user in the configuration file because then it wont put my non-root users music into the database. The submission in the wiki is not very clear may I say.
Offline
around week ago there was a topic just about your problem
Zygfryd Homonto
Offline
try starting mpd by hand:
$ sudo mpd
it will output an error message. i think it could be some directory problems.
ciao iggy
sorry for my bad english
Offline
a) use absolute paths in config (pointing to a directory where your user has access to)
here is how i have done it:
music_directory "/mnt/media/_music"
playlist_directory "/mnt/media/_music/.mpd/playlists"
db_file "/mnt/media/_music/.mpd/mpd.db"
log_file "/mnt/media/_music/.mpd/mpd.log"
error_file "/mnt/media/_music/.mpd/mpd.error"
pid_file "/mnt/media/_music/.mpd/mpd.pid"
state_file "/mnt/media/_music/.mpd/mpdstate"
b) set the user in mpd.conf to your user (or whoever has access to that folder)
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
But I'm running into permission problems,
what permission problems are those? any output when you start mpd, that say: permission denied?
Please post them here
Offline
What is the output of this?
ls -l /var/lib/mpd /var/log/mpd /var/run/mpd
These posts might apply to you.
Offline
Pages: 1