From aa05b0dcbf025507f98c969b6e087469afbdfba0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Tue, 9 Feb 2010 20:39:42 +0000 Subject: [PATCH] * drop down to nobody when up and running. --- webcit/debian/webcit.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webcit/debian/webcit.init b/webcit/debian/webcit.init index 6403d015e..575c3dac2 100644 --- a/webcit/debian/webcit.init +++ b/webcit/debian/webcit.init @@ -26,7 +26,7 @@ SCRIPTNAME=/etc/init.d/webcit SENDCOMMAND=/usr/sbin/sendcommand DEFAULT=/etc/default/webcit LOGDIR=/var/log/webcit/ - +UID=`id -u nobody` # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 @@ -92,7 +92,7 @@ do_start() # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started - if $DAEMON -D$PIDFILE.$1 \ + if $DAEMON -u $UID -D$PIDFILE.$1 \ -p$@ -t$LOGDIR/access.${1}.log $4; then return 0 else -- 2.30.2