You are not logged in.
Pages: 1
Hi, im trying to install mpd but im finding it harder than i thought, so i was hoping someone could share his wisdom with me.
I been following the wiki alternative setup but after creating all the files i try to start mpd and get the following error:
mpd /home/ekenbrand/.mpd/mpd.conf
daemon: cannot setgid to 92: Operation not permitted
If i try it using sudo i get this other message:
music directory is not a directory: "/home/ekenbrand/musica"
playlist directory is not a directory: "/home/ekenbrand/.mpd/playlists"
Failed to load database: Failed to open database file "/home/ekenbrand/.mpd/mpd.db": Permission denied
database: Couldn't stat parent directory of db file "/home/ekenbrand/.mpd/mpd.db": Permission denied
Heres some info
sudo cat /etc/group | grep 92
audio::92:mpd,ekenbrand
groups ekenbrand
lp wheel video audio optical storage power sudo users
ls -al .mpd/
total 20
drwxr-xr-x 3 ekenbrand audio 4096 Mar 24 06:21 .
drwx------ 40 ekenbrand users 4096 Mar 24 06:21 ..
-rw-r--r-- 1 ekenbrand audio 7200 Mar 24 06:21 mpd.conf
-rw-r--r-- 1 ekenbrand audio 0 Mar 24 06:02 mpd.db
-rw-r--r-- 1 ekenbrand audio 0 Mar 24 04:47 mpd.log
-rw-r--r-- 1 ekenbrand audio 0 Mar 24 04:47 mpd.pid
-rw-r--r-- 1 ekenbrand audio 0 Mar 24 04:47 mpdstate
drwxr-xr-x 2 ekenbrand audio 4096 Mar 24 04:05 playlists
mpd.conf
music_directory "/home/ekenbrand/musica"
playlist_directory "/home/ekenbrand/.mpd/playlists"
db_file "/home/ekenbrand/.mpd/mpd.db"
log_file "/home/ekenbrand/.mpd/mpd.log"
pid_file "/home/ekenbrand/.mpd/mpd.pid"
state_file "/home/ekenbrand/.mpd/mpdstate"
user "mpd"
group "audio"
I must say i've tried disabling mpd group, changed folder group and permissions, the same errors appear. I have also tried doing a clean install and searched the wiki but had no luck.
Thanks in advance for your help
Last edited by ekenbrand (2011-03-24 23:25:45)
Offline
try this:
rm -vrf ~/.mpd
mkdir -p ~/.mpd/playlists
music_directory "/home/ekenbrand/musica"
playlist_directory "/home/ekenbrand/.mpd/playlists"
db_file "/home/ekenbrand/.mpd/mpd.db"
log_file "/home/ekenbrand/.mpd/mpd.log"
pid_file "/home/ekenbrand/.mpd/mpd.pid"
state_file "/home/ekenbrand/.mpd/mpd.state"
user "ekenbrand"
group "users"
into ~/.mpd.conf
mpd ~/.mpd.conf
Last edited by JokerBoy (2011-03-24 09:56:44)
Arch64/DWM || My Dropbox referral link
Offline
I think JokerBoy has your solution. When I do the alternate setup I make the user myself and not mpd. This resolves the permission issues you are seeing when trying to access local files and directories.
I laugh, yet the joke is on me
Offline
Great, it worked thanks!
Offline
Pages: 1