summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-01-11 13:05:44 -0500
committerRob Crittenden <rcritten@redhat.com>2008-01-11 13:05:44 -0500
commitbbe1fdd8e94c524b230c334ff1cf08d535c6ea40 (patch)
treeb0108df3b6d7230c75608e871c92add92eae9ba1
parentb51a147a6bbdfa04eb49676d233725de16c95109 (diff)
downloadfreeipa-bbe1fdd8e94c524b230c334ff1cf08d535c6ea40.tar.gz
freeipa-bbe1fdd8e94c524b230c334ff1cf08d535c6ea40.tar.xz
freeipa-bbe1fdd8e94c524b230c334ff1cf08d535c6ea40.zip
Run ipa-webgui as apache and not as root
-rw-r--r--ipa-server/ipa-gui/ipa-webgui.init4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipa-server/ipa-gui/ipa-webgui.init b/ipa-server/ipa-gui/ipa-webgui.init
index 5bb0a558..4e53edde 100644
--- a/ipa-server/ipa-gui/ipa-webgui.init
+++ b/ipa-server/ipa-gui/ipa-webgui.init
@@ -25,10 +25,12 @@ then
fi
NAME="ipa-webgui"
+PROG="/usr/sbin/ipa-webgui"
+RUNAS="apache"
start() {
echo -n $"Starting $NAME: "
- daemon $NAME
+ daemon --user $RUNAS $PROG
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$NAME || \