You are not logged in.

#1 2008-09-15 14:45:34

Skofo
Member
Registered: 2008-08-21
Posts: 36

[100% solved!]Cannot create MPD database

Followed all of the initial steps on the Mpd ArchWiki page, but I'm stuck on the step to create a database..

[sko@OGC ~]$ mpd --create-db
cannot init supplementary groups of user "sko" at line 46: Operation not permitted
Can't create db file in "/var/lib/mpd": Permission denied
[sko@OGC ~]$ su
Password: 
bash-3.2# mpd --create-db
Can't create db file in "/var/lib/mpd": Permission denied

Any help is appreciated!

I think it might have something to do with the groups I'm in, so I'll just leave this right here:

[sko@OGC ~]$ cat /etc/group
root::0:root
bin::1:root,bin,daemon
daemon::2:root,bin,daemon
sys::3:root,bin
adm::4:root,daemon
tty::5:
disk::6:root
lp::7:daemon
mem::8:
kmem::9:
wheel::10:root
ftp::11:
mail::12:
uucp::14:
log::19:root
smmsp::25:
games::50:sko
network:x:90:
video:x:91:
audio::92:sko,mpd
optical::93:hal
floppy:x:94:hal
storage:x:95:hal
power:x:98:
nobody::99:
users::100:
locate:x:21:
dbus:x:81:
hal:x:82:
avahi:x:84:
mpd:x:45:

Last edited by Skofo (2008-09-17 00:51:32)

Offline

#2 2008-09-15 18:15:22

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

Re: [100% solved!]Cannot create MPD database

what about "su -"


Zygfryd Homonto

Offline

#3 2008-09-15 18:16:39

NoOneImportant
Member
From: Deep Southern California
Registered: 2007-02-13
Posts: 178

Re: [100% solved!]Cannot create MPD database

have you tried not using /var/lib/mpd?

I use ~/.mpd for instance

Offline

#4 2008-09-15 18:29:13

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [100% solved!]Cannot create MPD database

Why don't you specify a location for you mpd database in ~/.mpdconf (i.e. somewhere in your home folder)?


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#5 2008-09-16 00:04:35

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [100% solved!]Cannot create MPD database

You will need to change the permissions on those directories. Or just have mpd create the files in your home somewhere.


neutral

Offline

#6 2008-09-16 03:33:00

Skofo
Member
Registered: 2008-08-21
Posts: 36

Re: [100% solved!]Cannot create MPD database

That appears to have worked!
I still get an odd error, though. Should I be worried?

[sko@OGC ~]$ mpd --create-db
cannot init supplementary groups of user "sko" at line 46: Operation not permitted
added Gargaj_-_Rude_Awakening_-_Chaos_Theory_soundtrack.mp3

And nothing is showing up in Sonata--oh wait, there it is. Thanks a bunch, guys!

Offline

#7 2008-09-16 05:26:41

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [100% solved!]Cannot create MPD database

Show us line 46 of your mpd.conf file


neutral

Offline

#8 2008-09-16 10:37:57

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: [100% solved!]Cannot create MPD database

Skofo wrote:

That appears to have worked!
I still get an odd error, though. Should I be worried?

[sko@OGC ~]$ mpd --create-db
cannot init supplementary groups of user "sko" at line 46: Operation not permitted
added Gargaj_-_Rude_Awakening_-_Chaos_Theory_soundtrack.mp3

And nothing is showing up in Sonata--oh wait, there it is. Thanks a bunch, guys!

That's probably because you're running the command as a regular user, not root. You didn't tell us how you start your mpd in the first place? Starting mpd as root is ok if you have set it to run as: user "user", which you've done in line 46 of the config.

Offline

#9 2008-09-16 13:09:29

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [100% solved!]Cannot create MPD database

mpd needs to be started as a daemon in your rc.conf.
OR (as root)
# /etc/rc.d/mpd start


neutral

Offline

#10 2008-09-16 15:28:07

Skofo
Member
Registered: 2008-08-21
Posts: 36

Re: [100% solved!]Cannot create MPD database

sand_man wrote:

Show us line 46 of your mpd.conf file

user   "sko"

Under DAEMON OPTIONS.
Is that bad?

Offline

#11 2008-09-16 22:03:39

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: [100% solved!]Cannot create MPD database

Nope, if you read the description it clearly tells you it's good wink This is to prevent mpd running with root privlidges, even when started as root, e.g. at boot time.

Offline

#12 2008-09-17 00:50:34

Skofo
Member
Registered: 2008-08-21
Posts: 36

Re: [100% solved!]Cannot create MPD database

sm4tik wrote:

Nope, if you read the description it clearly tells you it's good wink This is to prevent mpd running with root privlidges, even when started as root, e.g. at boot time.

Ahh.
Thanks so much! All of you!

Last edited by Skofo (2008-09-17 00:51:03)

Offline

Board footer

Powered by FluxBB