You are not logged in.
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
what about "su -"
Zygfryd Homonto
Offline
have you tried not using /var/lib/mpd?
I use ~/.mpd for instance
Offline
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
You will need to change the permissions on those directories. Or just have mpd create the files in your home somewhere.
Offline
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
Show us line 46 of your mpd.conf file
Offline
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
mpd needs to be started as a daemon in your rc.conf.
OR (as root)
# /etc/rc.d/mpd start
Offline
Show us line 46 of your mpd.conf file
user "sko"
Under DAEMON OPTIONS.
Is that bad?
Offline
Nope, if you read the description it clearly tells you it's good This is to prevent mpd running with root privlidges, even when started as root, e.g. at boot time.
Offline
Nope, if you read the description it clearly tells you it's good 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