You are not logged in.

#1 2008-09-26 16:29:46

johnmeikle
Member
From: Scotland
Registered: 2008-09-21
Posts: 7

MPD problem

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

#2 2008-09-26 16:59:29

zyghom
Member
From: Poland/currently Africa
Registered: 2006-05-11
Posts: 432
Website

Re: MPD problem

around week ago there was a topic just about your problem wink


Zygfryd Homonto

Offline

#3 2008-09-28 09:05:10

iggy
Member
From: Germany, L.E. - Leipzig
Registered: 2004-10-17
Posts: 367

Re: MPD problem

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 smile

Offline

#4 2008-09-28 12:21:14

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

Re: MPD problem

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

#5 2008-09-30 20:59:12

sqrg
Member
Registered: 2008-09-30
Posts: 2

Re: MPD problem

johnmeikle wrote:

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 big_smile

Offline

#6 2008-09-30 23:57:49

AD28
Member
Registered: 2008-09-16
Posts: 161

Re: MPD problem

What is the output of this?

ls -l /var/lib/mpd /var/log/mpd /var/run/mpd

These posts might apply to you.

Offline

Board footer

Powered by FluxBB