jasonmc / forked-daapd

A re-write of the firefly media server (mt-daapd). It's released under GPLv2+. Please note that this git repository is a mirror of the official one at git://git.debian.org/~jblache/forked-daapd.git
http://blog.technologeek.org/2009/06/12/217
GNU General Public License v2.0
326 stars 45 forks source link

run server as normal user #86

Open Fabioamd87 opened 12 years ago

Fabioamd87 commented 12 years ago

is possible to run forked-daapd as normal user? I have this error:

fabio@muletto:~$ forked-daapd main: Forked Media Server Version 0.19 taking off main: Initialized with gcrypt 1.5.0 main: Error opening pidfile (/var/run/forked-daapd.pid): Permesso negato main: Could not initialize server main: seteuid() failed: Operazione non permessa main: Exiting.

fenollp commented 12 years ago

Firstly, you must run forked-daapd as root as you seem not to (“Permesso negato”), then forked-daapd will drop privileges.
Secondly, you might already have an instance running (try ps -A | grep daap). Kill it and retry. In /etc/forked-daapd.conf you have an uid to fill with your "normal user" name, default is daapd. You'll have to useradd -M daapd. Regards