aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-02-16 19:18:34 +0000
committerBill Nottingham <notting@redhat.com>2001-02-16 19:18:34 +0000
commitd62ddfd7777bb0e15c9a5841bd86c0df28026c60 (patch)
tree81f7ace1cc32025366909666c29655196d58433f /rc.d
parent83f6eaa0e3224b6c84e356faa016022b53058ebd (diff)
downloadinitscripts-d62ddfd7777bb0e15c9a5841bd86c0df28026c60.tar
initscripts-d62ddfd7777bb0e15c9a5841bd86c0df28026c60.tar.gz
initscripts-d62ddfd7777bb0e15c9a5841bd86c0df28026c60.tar.bz2
initscripts-d62ddfd7777bb0e15c9a5841bd86c0df28026c60.tar.xz
initscripts-d62ddfd7777bb0e15c9a5841bd86c0df28026c60.zip
use 'su -' , not just 'su' (#26894)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index b8303f56..ffed07c0 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -132,7 +132,7 @@ daemon() {
if [ -z "$user" ]; then
$nice initlog $INITLOG_ARGS -c "$*$bg"
else
- $nice initlog $INITLOG_ARGS -c "su $user -c \"$*$bg\"" && success $"$base startup" || failure $"$base startup"
+ $nice initlog $INITLOG_ARGS -c "su - $user -c \"$*$bg\"" && success $"$base startup" || failure $"$base startup"
fi
[ $? = 0 ] && success $"$base startup" || failure $"$base startup"
}