You are not logged in.

#1 2010-09-16 18:42:27

jazen
Member
Registered: 2009-10-30
Posts: 19

[SOLVED] mpd Permission woes

After spending 2 hours trying to configure mpd, I'm livid.

I've gotten various errors and tried various "solutions" found online to no avail (and i even lost my sudo root priviledges for a while). I've configured mpd according to the arch wiki guide and things just aren't working.

when I try and launch mpd via

$ mpd /etc/mpd.conf

I get

daemon: cannot setgid for user "mpd": Operation not permitted
Aborted

Here's how I have my /etc/mpd.conf set up

# My parameters
music_directory        "/home/jazen/my Music/Music"
playlist_directory       "/var/lib/mpd/playlists"
db_file                      "/var/lib/mpd/mpd.db"
log_file                     "/var/log/mpd/mpd.0.log"
pid_file                     "/var/run/mpd/mpd.pid"
state_file                  "/var/lib/mpd/mpdstate"
user                         "mpd"

Last edited by jazen (2010-09-17 09:12:02)

Offline

#2 2010-09-16 18:56:35

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [SOLVED] mpd Permission woes

I've never looked at that wiki page and have ran MPD just fine by only changing the path to my music directory. Might be worth a try?


ᶘ ᵒᴥᵒᶅ

Offline

#3 2010-09-16 18:59:46

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] mpd Permission woes

Also, mpd is not the only option to play music. Look into other players if mpd is giving you the hissy fit


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#4 2010-09-16 19:02:46

jazen
Member
Registered: 2009-10-30
Posts: 19

Re: [SOLVED] mpd Permission woes

I wanted to get mpd working since I wanted a challenge, but I guess I'll just give it up (usually hate leaving things incomplete) I guess I'll just instal audacious

Offline

#5 2010-09-16 19:03:13

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: [SOLVED] mpd Permission woes

Using "/home/jazen/my Music/Music" with the space in there works?  I would think that you would have to make it "/home/jazen/my\ Music/Music".  Plus, I run mpd as my username, not as mpd (which is why you are getting that error).  Other than that I also have playlist, log, and db_file in .mpd within my home directory.

Last edited by lifeafter2am (2010-09-16 19:04:15)


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

#6 2010-09-16 19:09:15

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [SOLVED] mpd Permission woes

lifeafter2am wrote:

I would think that you would have to make it "/home/jazen/my\ Music/Music".

No that shouldn't be necessary if the string is between quotes, it is interpreted literally then.


ᶘ ᵒᴥᵒᶅ

Offline

#7 2010-09-16 19:22:26

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

Re: [SOLVED] mpd Permission woes

Um...

jazen wrote:

$ mpd /etc/mpd.conf

mpds output wrote:

daemon: cannot setgid for user "mpd": Operation not permitted
Aborted

so... did you try it as root?

Offline

#8 2010-09-16 19:31:13

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: [SOLVED] mpd Permission woes

Try MPD as your own user.  You do not really need to run it as a system daemon unless you are planning on making it a dedicated service on a server machine.

Here is my MPD configuration.
"$HOME/.config/mpd/mpd.conf"

#
music_directory "~/Music/Library"
playlist_directory "~/Music/Playlists"
db_file "~/.config/mpd/mpd.db"
log_file "~/.config/mpd/mpd.log"
pid_file "~/.config/mpd/mpd.pid"
state_file "~/.config/mpd/mpdstate"

save_absolute_paths_in_playlists "yes"
zeroconf_enabled  "no"
gapless_mp3_playback   "yes"
#replaygain   "track"
#replaygain_preamp  "0"
volume_normalization  "yes"
audio_buffer_size  "4096"
#buffer_before_play  "20%"
max_playlist_length  "300000"
#max_command_list_size  "2048"
max_output_buffer_size  "16384"

input {
  plugin "curl"
}

audio_output {
  type  "alsa"
  name  "ALSA"
  device  "equal"
  use_mmap "yes"
}

audio_output {
 type "httpd"
 name "mpd-httpd@incubine"
 encoder "vorbis"
 port "7002"
 quality "3.0"
 format "44100:16:2"
}

audio_output {
  type "fifo"
  name "FIFO"
  path "/tmp/mpd.fifo"
  format "44100:16:2"
}

Last edited by Wintervenom (2010-09-16 19:32:59)

Offline

#9 2010-09-16 19:53:55

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] mpd Permission woes

Your issue is described in the troubleshooting section of the mpd article on the wiki:
http://wiki.archlinux.org/index.php/Mpd … _permitted

Also, as others have suggested, running mpd from your ~ simplifies things considerably.

You might want to change your title to something more accurate, like 'Permissions issue with mpd' Your current one is both vague and inaccurate...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2010-09-17 05:40:22

psyodin
Member
From: rocky mountains USA
Registered: 2008-11-13
Posts: 30

Re: [SOLVED] mpd Permission woes

As stated earlier setting up MPD in ~/ can help with some installs

this thread has always worked for me: http://crunchbanglinux.org/forums/topic/4686/howto-mpd/

of course adapting it to arch from ubuntu

have a nice day

Last edited by psyodin (2010-09-17 05:41:34)


download>install>configure>enjoy, arch tastes good

Offline

#11 2010-09-17 07:53:43

jazen
Member
Registered: 2009-10-30
Posts: 19

Re: [SOLVED] mpd Permission woes

Thanks for the advice everyone. I decided to do what Wintervenom did by putting all the files in ~/.config/mpd/ and its working now. And I also adjusted the title. Sorry for the vague title at first.

Offline

Board footer

Powered by FluxBB