freepopsd can be launched as a service in /etc/init.d. The command line supports the argument -s user.group to drop root privileges. For example, that can be added to freepops ebuild (mimic hal ebuild) : pkg_preinst() { enewgroup freepopsd || die "Problem adding freepopsd group" enewuser freepopsd -1 /bin/false /dev/null freepopsd || die "Problem adding freepopsd user" } Add to start() function in /etc/init.d/freepopsd : if [ ${DAEMON_USER} ] && [ ${DAEMON_GROUP} ]; then ARGS="${ARGS} -s ${DAEMON_USER}.${DAEMON_GROUP}" fi Add to /etc/conf.d/freepopsd : # User and group to make freepopsd drop root privileges DAEMON_USER="freepopsd" DAEMON_GROUP="freepopsd" Reproducible: Always Steps to Reproduce:
cant it just run as 'nobody' ?
Meanwhile, I run it as: # freepopsd -s michael.users
0.0.27-r1 has the default init script run under the nobody user