You are not logged in.

#1 2006-08-24 13:12:53

detto
Member
Registered: 2006-01-23
Posts: 510

what the .. gmpc root rights?!?! [SOLVED]

errrrrr.... sry but ive got noo damn clue how that is possible:
im running gmpc here as music player (cvs version from AUR), and my whole music is stored in a music directory, sperated further to artists and albums and ALL is set to "root.root" with 644 permission. so only root should have write reads there or?! :?

the strange thing is: when i create a playlist (and i made shure that gmpc runs as my user detto !) i can save it and it gets stored into my music directory :shock: hows that possible that it has write permissions there? :?  sad

Offline

#2 2006-08-24 13:30:22

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: what the .. gmpc root rights?!?! [SOLVED]

You are sure that the directory itself and not only the files inside the directory are having correct permissions?


Haven't been here in a while. Still rocking Arch. smile

Offline

#3 2006-08-24 13:44:33

detto
Member
Registered: 2006-01-23
Posts: 510

Re: what the .. gmpc root rights?!?! [SOLVED]

yep :?

Offline

#4 2006-08-24 17:09:13

sh__
Member
Registered: 2005-07-19
Posts: 272

Re: what the .. gmpc root rights?!?! [SOLVED]

Is mpd running as root? The daemon handles the playlists, so it is possible to save them in a root-owned directory if the client has permissions to do so (check /etc/mpd.conf). The default permissions when no password is set allow saving of playlists.

Offline

#5 2006-08-24 17:24:01

detto
Member
Registered: 2006-01-23
Posts: 510

Re: what the .. gmpc root rights?!?! [SOLVED]

*head against wall* roll

thx sh___ u pointed me in right direction, here the part from mpd.conf

# It is encouraged to run MPD as 
# non-superuser.  If you start mpd as root
# (for example, in an init script), set
# this value, then  mpd will drop root priveleges
# and runs as the user specified.
#
#user         "nobody"

think this will fix it lol

cheers,
detto

Offline

Board footer

Powered by FluxBB