diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-01-11 13:05:44 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-01-11 13:05:44 -0500 |
commit | bbe1fdd8e94c524b230c334ff1cf08d535c6ea40 (patch) | |
tree | b0108df3b6d7230c75608e871c92add92eae9ba1 /ipa-server/ipa-gui | |
parent | b51a147a6bbdfa04eb49676d233725de16c95109 (diff) | |
download | freeipa-bbe1fdd8e94c524b230c334ff1cf08d535c6ea40.tar.gz freeipa-bbe1fdd8e94c524b230c334ff1cf08d535c6ea40.tar.xz freeipa-bbe1fdd8e94c524b230c334ff1cf08d535c6ea40.zip |
Run ipa-webgui as apache and not as root
Diffstat (limited to 'ipa-server/ipa-gui')
-rw-r--r-- | ipa-server/ipa-gui/ipa-webgui.init | 4 |
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 5bb0a5581..4e53edde2 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 || \ |